Jump to content

A couple cron job questions..


Scooby08

Recommended Posts

I created a cron job using the following line:

 

* * * * * curl -s http://www.siteurl.com/cron/cron.php

 

I have a couple questions that I cannot find answers to..

 

1) What does the -s mean and where can I find documentation on stuff like that?

2) How long will the cron run? I set it up the other day and it was running fine and now I checked it today and it has stopped.. Just curious as to why, and how do I keep it running always?

3) I also don't get any mail from this cron and was curious as to why that is as well.. I read for crons you have to actually place a code snipplet (>/dev/null 2>&1) at the end of the line to not receive email.. I didn't do that so what is stopping emails??

 

Thanks

Link to comment
Share on other sites

1)

-s/--silent

              Silent mode. Don’t show progress meter or error messages.  Makes Curl mute.

 

              If this option is used twice, the second will again disable silent mode.

 

You can read the manual yourself (this works for most Linux commands) by typing man <command> in a terminal. eg man curl.

 

2) That cron is set to run every minute of everyday. The only thing that should stop it is if your cron service is no longer running.

 

3) The -s option may have also actually silenced emails.

Link to comment
Share on other sites

Thanks for the reply again thorpe!

 

One question though.. For #2, you said the only thing that should stop it is if your cron service is no longer running.. What would make your cron service to no longer be running? Am just trying to figure out why it stopped...

Link to comment
Share on other sites

  • 5 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.