roparzhhemon
07-29-2007, 02:38 AM
Hello all,
I have a script (called "launch_modem_connection_counter ") that I want to keep on running even after the terminal window in which I launched it has been closed.
The command for this is "bg", but I can't get it to work : if I type the following in a Terminal window,
Urzhiataer-Ewan:~ ewan$ launch_modem_connection_counter
^Z
[1]+ Stopped $LOCATION_FOR_BATH_SCRIPTS/launch_modem_connection_counter.bash_script
Urzhiataer-Ewan:~ ewan$ jobs
[1]+ Stopped $LOCATION_FOR_BATH_SCRIPTS/launch_modem_connection_counter.bash_script
Urzhiataer-Ewan:~ ewan$ bg %1
[1]+ $LOCATION_FOR_BATH_SCRIPTS/launch_modem_connection_counter.bash_script &
and then close that window, when I consult "ps" in a new Terminal window my
process has disappeared ... How should I fix this ?
Ewan
*******************************************************************************************
I have a script (called "launch_modem_connection_counter ") that I want to keep on running even after the terminal window in which I launched it has been closed.
The command for this is "bg", but I can't get it to work : if I type the following in a Terminal window,
Urzhiataer-Ewan:~ ewan$ launch_modem_connection_counter
^Z
[1]+ Stopped $LOCATION_FOR_BATH_SCRIPTS/launch_modem_connection_counter.bash_script
Urzhiataer-Ewan:~ ewan$ jobs
[1]+ Stopped $LOCATION_FOR_BATH_SCRIPTS/launch_modem_connection_counter.bash_script
Urzhiataer-Ewan:~ ewan$ bg %1
[1]+ $LOCATION_FOR_BATH_SCRIPTS/launch_modem_connection_counter.bash_script &
and then close that window, when I consult "ps" in a new Terminal window my
process has disappeared ... How should I fix this ?
Ewan
*******************************************************************************************