Skip navigation.
Home
The QNX Community Portal

View topic - How do you stop cron entries from generating mail

How do you stop cron entries from generating mail

For the old QNX2 and QNX4 RTOS

How do you stop cron entries from generating mail

Postby jargoint » Thu Jan 19, 2012 3:38 am

Hi,
I have a QNX 4.25 system and in cron I have a script that is generating an error and putting a message in the /usr/spool/mail/root file, and I do not want it to generate any mail.
Does anyone know how to turn configure the system so that errors generated by scrips in cron do not generate an email for root.

any assistance would be greatly appreciated.
jargoint
Active Member
 
Posts: 30
Joined: Tue Nov 27, 2007 11:50 pm

Re: How do you stop cron entries from generating mail

Postby space » Thu Jul 05, 2012 6:15 pm

Add ">/dev/null 2>/dev/null" to the cron lines to throw away any output.
If you would prefer to keep the output
">/tmp/somefile.out 2>/tmp/somefile.err"
or
">>/tmp/somefile.out 2>>/tmp/somefile.err"
space
Active Member
 
Posts: 16
Joined: Fri Mar 09, 2007 6:03 pm
Location: Texas


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 1 guest