[quote=nepos,08.05.2006, 13:25]Also, wenn ich mich mit SSH vorher einlogge, quasi ne Login-Shell habe und den Befehl dann ausfuehre und nen Logout mache, wartet die Shell, bis der Sleep fertig ist.[/quote]
Natürlich wartet dann die Shell.
rh165745@lxipr904:~> ssh -l oracle lxzpr001
Last login: Mon May 8 13:37:57 2006 from 172.19.8.182
lxzpr001:mydb:/ora
#echo $$
19621
lxzpr001:mydb:/ora
#sleep 100 1>/dev/null 2>/dev/null &
[1] 19656
lxzpr001:mydb:/ora
#ps -ef|grep sleep
oracle 19656 19621 0 13:41 pts/11 00:00:00 sleep 100
oracle 19658 19621 0 13:41 pts/11 00:00:00 grep sleep
lxzpr001:mydb:/ora
#exit
logout
Wenn du dich ganz normal einloggst und einen Prozess mit
Umleitung der Ausgabekanäle startest, dann bleibt deine Login-
Session der Vaterprozess, in diesem Fall
19621.
Dann kann die Session erst beendet werden, wenn der sleep
Prozess beendet wird. In meinem Beispiel im anderen Thread
wird init(1) der Vaterprozess und nicht die Login-Shell.\n\n
<!--EDIT|opi|1147089245-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.