I have a python script that checks the info about all the host in the network.I want to automatically run the script periodically to collect data after each hour. How can i run the python script automatically after each hour in linux(ubuntu) I am trying adding the command in crontab but it is not performing the operation.
-
3Cron is the normal way to do this. Since your problem is with scheduling and not with Python I suggest to repost to serverfault with a detailed description of how you configured cron and what went wrong.tdelaney– tdelaney2015-08-21 03:24:46 +00:00Commented Aug 21, 2015 at 3:24
-
@user2552950 : Please visit the below link: [link] (stackoverflow.com/questions/4460262/…) Hope it will help you.Dinesh Pundkar– Dinesh Pundkar2015-08-21 04:58:24 +00:00Commented Aug 21, 2015 at 4:58
-
"but it is not performing the operation." You probably forgot to set a PATH or PYTHONPATH, didn't make the script executable or the script doesn't have a Python she-bang.user707650– user7076502015-08-21 07:06:01 +00:00Commented Aug 21, 2015 at 7:06
Add a comment
|