From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653643322002.tru64-unix-managers.marc@archive.invalid> From: JC Faul Date: Fri, 30 Nov 2001 10:23:55 +0000 To: tru64-unix-managers Subject: SUMMARY: Crontab Entry X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653643322002 Thanks to Reiner Dassing, Gavin Kruiter and Joerg Bruehe for their suggestions. The reply below from Reiner pointed me towards the solution: >There is a big diffgerence between jobs running from commandline and >jobs activated by >cron. >Fro the commandline you have a lot of environment variables set >(try: command set) >under cron however, all needed environment variables are to be set >inside you called script. >So, please, check if DATA is set in your job. What I did was to create a script with all the variables set inside, which was then called by cron. Enjoy the weekend JC Original question: ------------------- | Hi all, | | Environment: ES40, 4.0G, PK3 | | I created a crontab entry as follows: | 0 7 1 12 * $HOME/shell/toRUN.ksh | /user/data/SEND/file.txt | | What I want to achieve is for crontab: | to execute $HOME/shell/toRUN.ksh with /user/data/SEND/file.txt as a | parameter (full pathname to a file named file.txt) | However cron complains with the following message: | | >/usr/users/shell/toRUN.ksh[40]: DATA: parameter not set | >************************************************* | >Cron: The previous message is the standard output | > and standard error of one of your cron commands. | | If I run $HOME/shell/toRUN.ksh /user/data/SEND/file.txt directly from | commandline it works. | | Any ideas? Man for crontab mentions a % sign - but I'm confused.