Unix Scripting Command "&"

Unix Scripting Command "&"

Post by stefan.eb.. » Fri, 02 Dec 2005 20:36:44



Hi,

are there other commands for "&" ?

& stands for executing a script in the background, e.g.:

/home/stefan/tclscript.tcl&.

Thanks
Stefan

 
 
 

Unix Scripting Command "&"

Post by Rob » Fri, 02 Dec 2005 22:44:28


try using  nohup

 
 
 

Unix Scripting Command "&"

Post by Lew Pitche » Sat, 03 Dec 2005 12:03:04


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> try using  nohup

Sorry, but that isn't what the OP is looking for.

nohup only suppresses SIGHUP on the launched command. It /doesn't/ launch the
command into "background" (i.e. fork, with child exec'ing command and parent
terminating clean).

The closest thing I can think of to the OP's request is to
 - start the command in foreground
 - ^Z to suspend the foreground command
 - bg [jobspec] to resume the suspended command, but in background
but, then again, I'm no shell expert :-)

- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFDj7loagVFX4UWr64RAmYCAKDhQaLB7QozaROd5n1fKrSyr6QZbgCaAncU
RZG+bhuImybmSQCMO+vBj7o=
=ZbUh
-----END PGP SIGNATURE-----