Operating System - HP-UX
1834244 Members
2193 Online
110066 Solutions
New Discussion

at command mail notification

 
SOLVED
Go to solution
Pepe Jimenez Muñoz
Frequent Advisor

at command mail notification

Hello everybody:

I have a script that run every 10 minutes with the at command, and I don?t want the mail message at command send me every run.

ppviso
3 REPLIES 3
Andreas Voss
Honored Contributor
Solution

Re: at command mail notification

Hi,

redirect the output of your at command to anything else ie:
command >/tmp/command.out 2>&1

Regards
James R. Ferguson
Acclaimed Contributor

Re: at command mail notification

Hi:

With the 'at' command, stdout/stderr are mailed to the user unless it's redirected elsewhere from within the job. Do:

myscript 2>$1 /dev/null

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: at command mail notification

Hi:

oops. Make that:

# myscript > /dev/null 2>&1

...JRF...