Cron problem/Documentation and Setup

Dave Korn dk@artimi.com
Wed Aug 18 16:24:00 GMT 2004


> -----Original Message-----
> From: cygwin-owner On Behalf Of Igor Pechtchanski
> Sent: 18 August 2004 16:54

> > > > 18 17 * * * pwd >> /tmp/debug.log 2>&1
> > > > 19 17 * * * ls >> /tmp/debug.log 2>&1
> > > > 20 17 * * * ls -l /tmp/myscript >> /tmp/debug.log 2>&1
> > > > 21 17 * * * /tmp/myscript >> /tmp/debug.log 2>&1

> 19 17 * * * ls >> /tmp/debug.log 2>&1
> 20 17 * * * ls -l /tmp/myscript >> /tmp/debug.log 2>&1


  I haven't been following, so PMFBI, but can I just point out that it may
well be necessary that the 2>&1 should precede the >> /tmp/debug.log if you
want stderr to actually end up in the log file....


  BTW, "uname -a; pwd; set; export" might be a good diagnostic command to
add as a cron job.... isn't this almost certainly a
wrong-user-executing-the-job problem?


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list