* SUMMARY: Crontab entry
@ 2002-07-22 17:39 Chris Bryant
0 siblings, 0 replies; 2+ messages in thread
From: Chris Bryant @ 2002-07-22 17:39 UTC (permalink / raw)
Thanks to Jeffrey Hummel, Norbert Fritsche, Theodore A. Neuville for their
responses. It seems Jeffrey Hummel hit the nail on the head.
Jeffrey Hummel wrote:
Replace the 1-12 with an asterisk. That will make it run every
month on
the first through 7th days of the month.
Thanks again for the responses.
Chris Bryant
Unix Administrator
Dollar Rent A Car
(918) 669-3213
-----Original Message-----
From: Chris Bryant [mailto:cbryant@dollar.com]
Sent: Monday, July 22, 2002 11:07 AM
To: Tru64 Unix (E-mail)
Subject: Crontab entry
Admins,
We the following crontab entry
30 2 1-7 1-12 6 /usr/local/bin/viperrefresh.ksh
supposedly I have this to run every month on the first saturday of
the month. Am I reading this wrong? Here is what the man page for crontab
says:
3. The following example writes the contents of
happyholidays.txt to all
users logged in at 4:00 p.m. each Friday in December and each day
between December 10 and December 31 inclusive:
0 16 10-31 12 5 /usr/sbin/wall /var/tmp/happyholidays.txt
Now it looks like according to the man page that I have
/usr/local/bin/viperrefresh.ksh set to run every saturday and each day
between 1-7, is this correct?
TIA,
Chris Bryant
Unix Administrator
Dollar Rent A Car
(918) 669-3213
^ permalink raw reply [flat|nested] 2+ messages in thread* SUMMARY: Crontab Entry
@ 2001-11-30 10:23 JC Faul
0 siblings, 0 replies; 2+ messages in thread
From: JC Faul @ 2001-11-30 10:23 UTC (permalink / raw)
To: tru64-unix-managers
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-22 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-22 17:39 SUMMARY: Crontab entry Chris Bryant
-- strict thread matches above, loose matches on Subject: below --
2001-11-30 10:23 SUMMARY: Crontab Entry JC Faul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox