[rt-users] RT::Interface::CLI

Michael Loftis mloftis at wgops.com
Wed May 18 21:06:37 EDT 2005


--On May 19, 2005 10:32:52 AM +0930 Andrew Xenides 
<andrew at staff.esc.net.au> wrote:

> Hi,
>
> I just found that this didn't work, im still getting emailed the output
> from the script:
>
> -----Original Message-----
> From: Cron Daemon [mailto:root at ticket.esc.net.au]
> Sent: Saturday, 14 May 2005 5:30 AM
> To: root at ticket.esc.net.au
> Subject: Cron <root at ticket> /usr/local/radmin/insertActivationTicket.pl >
> /dev/null
>
> Ticket 2660 created in queue 'CSO1'
>

you have to redirect STDOUT and STDERR

/your/command 2>&1 > /dev/null

the first bit there 'duplicates' STDERR (file descriptor 2, always) to 
STDOUT (file descriptor 1) then redirects STDOUT to /dev/null.


HTH,HAND.






More information about the rt-users mailing list