-1

I created a cronjob with the command crontab -e:

* * * * *   (filename).sh 

This file test.sh should be executed every minute. But it doesn't work.

I know that it is not the script because i did run bash (name of the file) it works so the crontad is the issue.

Will Vousden
  • 32,488
  • 9
  • 84
  • 95
malik
  • 31
  • 6
  • Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See [What topics can I ask about here](http://stackoverflow.com/help/on-topic) in the Help Center. Perhaps [Super User](http://superuser.com/) or [Unix & Linux Stack Exchange](http://unix.stackexchange.com/) would be a better place to ask. – jww Sep 25 '18 at 18:18
  • @malik, whats the entry in crontab? – Karn Kumar Sep 25 '18 at 18:24
  • sorry i am new crotnab what do mean by entry ? – malik Sep 25 '18 at 18:35
  • 1
    Use `/path/to/file.sh` – William Pursell Sep 25 '18 at 18:40
  • See if this [server fault canonical question](https://serverfault.com/q/449651/30957) helps you. – glenn jackman Sep 25 '18 at 20:40

1 Answers1

0

every minute:

* * * * * sciptname.sh 

every 24hours (every midnight):

0 0 * * * sciptname.sh

Karn Kumar
  • 8,518
  • 3
  • 27
  • 53