[o_0] Rob
June 20th, 2009, 01:25 PM
I'm using cron to run the command
python myscript.py args
The script runs OK, but it leaves a terminal open with message
Press ENTER to continue and close this window.
I would prefer not having an useless terminal stay open.
1. What can I add to the python script to get the terminal to close? The script is probably not relevant but if you're interested it can be seen here (http://dev.deluge-torrent.org/ticket/382#comment:4).
2. Alternatively, what can I add to the cron command? I've tried adding "exit" but it doesn't help.
python myscript.py args | exit
I suspect the solution is trivial, but I'm new to ubuntu and programming. Thanks in advance for any help :)
python myscript.py args
The script runs OK, but it leaves a terminal open with message
Press ENTER to continue and close this window.
I would prefer not having an useless terminal stay open.
1. What can I add to the python script to get the terminal to close? The script is probably not relevant but if you're interested it can be seen here (http://dev.deluge-torrent.org/ticket/382#comment:4).
2. Alternatively, what can I add to the cron command? I've tried adding "exit" but it doesn't help.
python myscript.py args | exit
I suspect the solution is trivial, but I'm new to ubuntu and programming. Thanks in advance for any help :)