What does “-q” mean in cron job command?

The -q flag suppresses HTTP header output. As long as your script does not send anything to stdout the -q will prevent cron from sending you an email every time the script runs. For example, print and echo commands do send data to stdout. Avoid using those functions if you want to prevent cron from sending you an email on each execution of the cron command.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s