Jump to content

Help With A Cron Job!

Recommended Posts

I admit it, I use Windows XP and not Linux. Although I do have some past UNIX experience (HP-UX) from when I was a system admin several years ago, so I know I can do what I want to do. I just can't remember how.


I host some RSS feeds for a friend. When the feeds run into a problem, the write to an error log. I would like to setup a cron job that will delete the error log once a week. I know how to do the cron side. I am just unsure about the actual delete command structure to run. Any help?

Link to comment
Share on other sites

In cPanel select Cron Jobs. Then select Standard. There is a simple set of boxes that you can check the day of the week, time of day and frequency to run the job. Just enter a path to a script that removes the file.


You could try using:

>rm /home/cPanelname/path-to-file


But that is running a system command and I don't know if it is allowed or will work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...