Saturday, July 30, 2016

debian - Crontab problem

under debian as a root (using su -)



First of all there is already a job inside the server (done by someone else), when I type



crontab -e


I get




# m h  dom mon dow   command
* * * * * sh /opt/somescript.sh


It executes exery minute.



Anyway, I am trying to add a scheduled job to the crontab:
I want tried to add a second job that will be executed every day at 00:30 am.




30 0   * * *    sh /opt/newscript.sh


I have two problems:




  • I am not able to edit the crontab with crontab -e

  • Is my newscript scheduling right ?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...