From: JC Faul <jfaul () mtc ! com ! na>
To: tru64-unix-managers
Subject: SUMMARY: Crontab Entry
Date: Fri, 30 Nov 2001 10:23:55 +0000 [thread overview]
Message-ID: <102653643322002.tru64-unix-managers.marc@archive.invalid> (raw)
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.
next reply other threads:[~2001-11-30 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-30 10:23 JC Faul [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-07-22 17:39 SUMMARY: Crontab entry Chris Bryant
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox