[rt-users] Cron Job

Jeff Stark JStark at sumtotalsystems.com
Tue Jun 5 14:01:02 EDT 2007


Hi everyone....I am a bit of a newbie when it comes to Linux (REHL) and
I am trying to add this RT command as a cron job via crontab.
 
I am logged in as root and when I run this manually:
 
/opt/rt3/bin/rt list -i "Status = 'in-review' AND Resolved < '2 days
ago'" | /opt/rt3/bin/rt edit - set status=resolved
 
it works great.
 
When I add it to crontab it doesn't run and here is result of...
 
crontab -l
01 00 * * *  /opt/rt3/bin/rt list -i "Status = 'in-review' AND Resolved
< '2 days ago'" | /opt/rt3/bin/rt edit - set status=resolved
 
/var/log/cron

Jun  5 10:01:01 dcrt crond[8839]: (root) CMD (/opt/rt3/bin/rt list -i
"Status = 'in-review' AND Resolved < '2 days ago'" | /opt/rt3/bin/rt
edit - set status = 'resolved'^M)

Everything appears correct....though I am not sure what the ^M indicates
at the end of the cron command in the log file.
 
any thoughts?  
 
 
-Stark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070605/3e2cbc58/attachment.htm>


More information about the rt-users mailing list