RT::Interface::CLI

Hi people

when inserting tickets from perl scripts using this module, it outputs
Ticket 2457 created in queue ‘CSO1’

etc. however, i run these scripts from cron and get emailed script output
for debugging purposes.

how can i stop this output. i have looked in the .pm file but cant locate
the print for this.

Andrew Xenides
Web Developer
EscapeNet
465 South Road
Keswick SA 5035
T: (08) 8292 5200
F: (08) 8292 5299
E: andrew@staff.esc.net.au
W: http://www.esc.net.au

Andrew Xenides wrote:

Hi people

when inserting tickets from perl scripts using this module, it outputs
Ticket 2457 created in queue ‘CSO1’

etc. however, i run these scripts from cron and get emailed script
output for debugging purposes.

how can i stop this output. i have looked in the .pm file but cant
locate the print for this.
Send all output to /dev/null
Edit crontab
your_script --args … >/dev/null

Hi,

I just found that this didn’t work, im still getting emailed the output from
the script:From: Cron Daemon [mailto:root@ticket.esc.net.au]
Sent: Saturday, 14 May 2005 5:30 AM
To: root@ticket.esc.net.au
Subject: Cron root@ticket /usr/local/radmin/insertActivationTicket.pl >
/dev/null

Ticket 2660 created in queue ‘CSO1’

Any ideas

Andrew Xenides
Web Developer
EscapeNet
465 South Road
Keswick SA 5035
T: (08) 8292 5200
F: (08) 8292 5299
E: andrew@staff.esc.net.au
W: http://www.esc.net.au

-----Original Message-----
From: Ruslan U. Zakirov [mailto:Ruslan.Zakirov@miet.ru]
Sent: Monday, 4 April 2005 6:23 PM
To: Andrew Xenides
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT::Interface::CLI

Andrew Xenides wrote:

Hi people

when inserting tickets from perl scripts using this module,
it outputs
Ticket 2457 created in queue ‘CSO1’

etc. however, i run these scripts from cron and get emailed script
output for debugging purposes.

how can i stop this output. i have looked in the .pm file but cant
locate the print for this.
Send all output to /dev/null
Edit crontab
your_script --args … >/dev/null

**Andrew Xenides
****Web Developer
****EscapeNet
****465 South Road
****Keswick SA 5035
****T: (08) 8292 5200
****F: (08) 8292 5299
****E: andrew@staff.esc.net.au mailto:andrew@staff.esc.net.au
**W: http://www.esc.net.au




The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

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@ticket.esc.net.au]
Sent: Saturday, 14 May 2005 5:30 AM
To: root@ticket.esc.net.au
Subject: Cron root@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.