syntax - Starting a Background Process for a Python code -


i running python code command line command:

python filename.py myuserid mypassword > logfile_date

is there similar command can use either run process in background or spawn process run in background?

thanks, ramani

you can use cronjob run script in background. can specify run @ intervals or @ times (here's ubuntu documentation)

for example, here's cronjob might like:

*/10 * * * * /your/path/to/python /path/to/filename.py >> /path/to/logfile_date.txt

this run script every 10 minutes , have output saved logfile_date.txt, in background.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -