[Tutor] Running a script in the background

Ray Jones crawlzone at gmail.com
Mon Sep 3 00:14:53 CEST 2012

This is only tangentially related to the thread. Someone mentioned that
so long as a script didn't require user input or output to the user, it
could run silently in the background. But is there a way for a Python
(2.7.3) script to determine whether it was called by the user or called
by something like cron or kalarm? That way user inputs could be used
when called by a user, but defaults could be used if run by a bot.

Or is this more of a Linux question?


More information about the Tutor mailing list