Getting rid of controlling terminal

pemurray at miavx1.acs.muohio.edu pemurray at miavx1.acs.muohio.edu
Sun Feb 18 13:14:09 AEST 1990


In article <4018 at rouge.usl.edu>, pcb at gator.cacs.usl.edu (Peter C. Bahrs) writes:
> I hope this is the correct newsgroup, so many unix., but...
> I want to run a job in the background and have it disconnect from
> the associating terminal without hardcoding it.
> i.e. when I do a ps -guax on Berkeley I want to see a ? in the tty column.
> 
> So  program args >& file </dev/null  does not seem to work?
> Any suggestions?  The problem is, on a SUN network anyway, if I use
> the tty, then others cannot rlogin in to this machine (I rlogin'ed to invoke
> the command).


>From the syntax of your command, I think your using the c-shell.  To run a
process in the background, the only thing you need to do is put an '&' on
the end of your command.  For instance:

	program arcs >& file &

This process should continue even when you log out.

Peter



More information about the Comp.unix.questions mailing list