[rhn-users] processes stop on rhe 4
Herta Van den Eynde
herta.vandeneynde at gmail.com
Thu Aug 16 23:49:29 UTC 2007
On 17/08/07, Paula J. Lindsay <paula at scripps.edu> wrote:
> Hi everyone,
> I have a red hat enterprise 4 machine connected to an instrument. There
> is something happening that I've never seen.
> The users log in and put the processes in the background "&" and then
> log off. When they log off, the processes stop
> and they loose their jobs. Has anyone heard of this? Many thanks for
> any advice/suggestions/solutions.
> Paula
>
> --
> --*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> o The Paula J. Lindsay, IT Analyst III
> / Research Computing, TPC21
> o Scripps phone: 858.784.9378
> \ fax: 858.784.9301
> o Research email: paula at scripps.edu
> /
> o Institute
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Paula,
If you haven't done so already, install the 'screen' package.
I often work from a laptop, and sometimes from an unreliable windows
PC. So if I want to run a job on a server that I don't want to get
interrupted, I usually go
$ screen
$ script ~/output.log.`date +%Y%m%d-%H%M` # optional
run whatever commands I need
<Ctrl/A/D> # detaches the screen
At that point, I can disconnect my laptop or reboot my unstable windows desktop.
I (or a colleague) can log in again from any source and then monitor
the job using a 'tail -f [output-file]', and can re-attach using
'screen -r'.
To terminate 'script', press <Ctrl/D>. To terminate 'screen', press
<Ctrl/D> again.
FWIIW, the screen command needs write access to the tty device, so
logging in from one account, su-ing to another, and then running
'screen' usually doesn't work.
Hope this helps.
Kind regards,
Herta
More information about the rhn-users
mailing list