Re: I could not run this script in /etc/crontab



Check your script for and use full pathnames for commands, cron doesn't guarantee you will have a path or any environment variables you don't set in your script.

-Derek


At 02:15 PM 2/28/2006, Halid Faith wrote:
Hello

I have a script.
I can run it without a problem as root manually.
But I have a problem
I could not run this script in /etc/crontab as below;

*/1 * * * * root /root/thescript

What should I do ?



_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: cron problem
    ... I added set -x in the script. ... Any chance that this script is relying on environment variables that are ... but would not be in the cron execution? ... the Oracle binaries you'll be needing. ...
    (RedHat)
  • Re: Cron jobs and shell environment
    ... I believe that cron does not set any environment variables other than those ... Can someone remind me what the "correct" way to call a shell script ...
    (comp.unix.aix)
  • Re: logon/logoff scripts...
    ... I am using the %clientname% and %machine% name environment variables to ... each user you can specify a login script but nowhere do I see the ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Startup script ?
    ... I.E where do I put the script ... Every process has a set of environment variables, ... If there is some script that runs apt-get ... that will get set whenever *lots* of users login, ...
    (Debian-User)
  • Re: exporting a variable to global shells
    ... Environment variables are a user-space concept - ... When the script is exiting the echo stdout's the proxy adress, ... setting up my network differently depending on where/what I connect to. ... With regard to actually *setting* the proxy server, ...
    (Debian-User)