0

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.

3
  • 3
    Cron 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. Commented Aug 21, 2015 at 3:24
  • @user2552950 : Please visit the below link: [link] (stackoverflow.com/questions/4460262/…) Hope it will help you. Commented 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. Commented Aug 21, 2015 at 7:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.