Bash/Misc/Detach: Unterschied zwischen den Versionen
Aus SchnallIchNet
< Bash
Cbs (Diskussion | Beiträge) |
Cbs (Diskussion | Beiträge) (→Method 1) |
||
Zeile 6: | Zeile 6: | ||
CTRL-Z | CTRL-Z | ||
# bg | # bg | ||
+ | # disown -a | ||
==Method 2== | ==Method 2== |
Version vom 11. Dezember 2009, 12:34 Uhr
Method 1
- start the process from the konsole
- put it the background with Ctrl-Z and 'bg 1'
- tell the shell to detach the process with the command 'disown -a'
# /path/to/command -opt1 -opt2 X --opt3=bla CTRL-Z # bg # disown -a
Method 2
- start the process with nohup (ie. write the command 'nohup processname' instead of 'processname'. See 'man nohup' for an explanation.
nohup /path/to/command -opt1 -opt2 X --opt3=bla
Method 3
- pipe the commant to at
echo "/path/to/command -opt1 -opt2 X --opt3=bla" | at now