On Sun, 6 May 2001, Kadari Mayson wrote:

> I admit that I have never really had to use cron often so I am having a 
> bit of trouble.  I have already read the man pages on cron and the 
> instructions on analog.cx about logrotate, but I still get errors adding 
> Analog to cron.
> 
> I called crontab by typing 'sudo  crontnab -e -u root', then all I did 
> was add a line at the end that said:
> 
> 0       5       *       *       *       /bin/sh 
> /usr/local/bin/analog/analog
> 
> It seemed as if this is all I had to do.  This AM, I got a message from 
> the Cron Daemon that said:
> 
> ^¿^«^A?^C¿‡^D¨: not found
> †: not found
> /usr/local/bin/analog/analog: ∏X^œ/^C/: not found
> /usr/local/bin/analog/analog: /.^Ha^?^]n/a^?^Cø^ÿNq: not found
> No: not found
> Failure: not found
> Bad: not found
> Cannot: not found
> crt0:: not found
> ld.so: not found
> /usr/local/bin/analog/analog: 17: Syntax error: Bad fd number
> 
> What exactly am i doing wrong?  I know that it's the correct path to 
> analog, but I am guessing more needs to be done for this to work.
> 

You don't want the /bin/sh. That will make it try to interpret analog as a
shell script. (All that mess is commands that /bin/sh is trying to run.)
Just leave out the /bin/sh and it will run the program as a program.

-- 
Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
  "Your account can only be used for a single internet session at any one
   time and for no more than 24 hours in any one day." (NTL terms of use)

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to