SCIENTIFIC-LINUX-USERS Archives

December 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"petr s." <[log in to unmask]>
Reply To:
petr s.
Date:
Tue, 18 Dec 2012 12:06:10 +0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (59 lines)
18.12.2012 5:20, jdow пишет:
> On 2012/12/17 06:55, sam_pb wrote:
>> Good $(date) !
>>
>> I have a server SL 6.0 (Carbon) x86 installation is up-to-date.
>>
>> When I need edit any config file, i run (for example):
>> $ sudo vim /etc/rc.local
>>
>> But, a strange things is happening after an update about 1.5 - 2 
>> months ago:
>> 1). I ran
>> sudo vim /etc/rc.local
>> 2). press CTRL+Z for backgound vim(or sudo?) and i get return code = 148
>> 3). do some other things in my terminal
>> 4). trying to resume the vim process and get failed:
>> $ fg
>> <now vim has draw a his screen>
>> If i try to do anything, vim goes to background again, but returncode 
>> is 149
>> for now :(
>>
>> All of next attempts to foreground vim is useless and return code 149 is
>> returned :| ( For example: )
>> $ fg
>> sudo vim /etc/rc.local
>>
>> [1]+ Stopped sudo vim /etc/rc.local
>> ret:149^t:25@17:45^u:adska@s01^d:~^sh:-bash$
>>
>>
>> Same problem was attended on other SL 6.3 x64_86 server just right after
>> installation. But after update from SL-FASTBUGS repo, problem is gone.
>> $ sudo yum --enablerepo=sl-fastbugs update
>>
>> With first a x86 server that update was useless.
>>
>>
>>
>> PS: This happens only with sudo ( if i do ``sudo su'' and work in the 
>> roof
>> terminal - that stuff isn't happens )
>> PSS: I google a little and found here is SIGTTIN(#21) has a place
>> PSSS: Any suggestions ?
>> PSSSS: This is rly annoying stuff :((((((((((
>>
>
> On a hunch try "sudo fg".
>
> {^_^}
>
>
It does not work both in theory and in practice
sudo fg
sudo: fg: command not found
ret:1^t:18@11:07^u:adska@s01^d:~^sh:-bash$
sudo bash -c fg
bash: line 0: fg: no job control

ATOM RSS1 RSS2