I'm trying to set up a cron job to delete a file, I'm using a plesk interface, the command being:
* * * * 1-7 rm /mypath/file_name_to_delete
This should be executing every minute, right? It doesn't seem to be working.
|
I'm trying to set up a cron job to delete a file, I'm using a plesk interface, the command being:
This should be executing every minute, right? It doesn't seem to be working. | |||||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Some observations:
| |||
|
feedback
|
|
mobrule's answers are a good troubleshooting guide. Additional hints:
| |||
|
feedback
|
|
The rm filename command requires'yes' or 'no' confirmation. Therefore the command can't be executed without confirmation. There is an 'rm -f filename' command for deleting files without confirmation. | |||
|
feedback
|