Skip to main content
replaced http://askubuntu.com/ with https://askubuntu.com/
Source Link

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this linkthis link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux.

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux.

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux.

replaced http://superuser.com/ with https://superuser.com/
Source Link

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to thisthis I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux.

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux.

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux.

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux. Any help with this would be appreciated.

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux. Any help with this would be appreciated.

I have a program written in python; my program scrapes a value from some financial website every minute and pushes that value into my DB. My program takes like 1 or maximum 1.5 seconds to do this job. I have set a cron job to call my program every minute. I need to run my program in this way every day from 9AM to 4PM. Now sometimes I may have to stop my program to kill the program at any time between 9AM to 4PM. How can I do this?

According to this link I tried ps -o pid,sess,cmd afx | grep -A20 "cron$" and I was unable to find my program in the list since it completes its work in seconds.

Referring to this I tried /etc/init.d/cron stop and pkill cron which kills all cron jobs - which I don't want. I am running this cron in Ubuntu Linux.

Source Link
Chiyaan Suraj
  • 263
  • 1
  • 3
  • 9
Loading