05-29-2001
Hi Arunava
I have my crontab like this
17 09 * * 1-5 /mydir/myshell
.sh
First the minutes then the hours.This how it works on my true64unix.
But don't forget the full path..
Peterh
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a problem with crontab. I made a class file name Mailer.class. When I run it at command line like this:
$ java Mailer
It runs very well and I got the email. But If I put it in a crontab line like this:
30 11 * * * java Mailer
It doesn't work.
Every time the cron job... (5 Replies)
Discussion started by: qhuynh
5 Replies
2. Shell Programming and Scripting
Hi all,
I made few changes to the script (under the directory mentioned in crontab) scheduled under crontab and the problem is that crontab doesnt pickup those changes and somehow runs the old copy of the script from somewhere.
Any help would be appreciated. (8 Replies)
Discussion started by: vinoo128
8 Replies
3. UNIX for Dummies Questions & Answers
I have script which uses "for loop" for doing some activity. Inside for loop i have extracted some data and redirecting it to HTML file using "echo" command. When i run this script manually it runs fine and appends the data in the HTML file. However, when I am croning this script for every 5 min... (2 Replies)
Discussion started by: manandixit
2 Replies
4. Linux
Hello,
I have this in the crontab
30 2 * * * /bin/sh /home/abc
but in the log it looks run below
Jan 27 08:30:01 localhost crond: (root) CMD (/bin/sh /home/abc
how could this happen?
I logged in with root user,I use root user's crontab.
Kind Regards (9 Replies)
Discussion started by: sunsail
9 Replies
5. UNIX for Advanced & Expert Users
hi..
i have a program (tf.sh), and i want what it runs automatically with a "lapsus" of 2 hours. (1,3,5,7,9,11,13,15,17,19,21,23 hrs.)
i know what i have to do it using crontab, but i donīt know how to do it.
i have the next idea, but the problem is what it doesnīt run on my server... (11 Replies)
Discussion started by: DebianJ
11 Replies
6. AIX
Hi,
Can anyone let me know the functionality of the following command in Unix
crontab ;l
Thanks,
Wajith.M (3 Replies)
Discussion started by: Wajith
3 Replies
7. Shell Programming and Scripting
Hi all,
I am using Ubuntu 8.04 Linux. I have a cron job entry to run a shell script at a scheduled time. This script has a X application to be launched. As cron does not pick already exported environment variables and it runs in a separate environment, I need to export the DISPLAY variable to... (9 Replies)
Discussion started by: royalibrahim
9 Replies
8. Solaris
Dear All
I have machine with SunOS APP5a 5.9 Generic_122300-19 sun4u sparc SUNW,Sun-Fire
With crontab like this :
59 23 * * * /home/lng/script/move_and_compress_logs_update.sh
But that crontab cannot running at that time. I run my script by manually, the result is fine.
What must I check at... (5 Replies)
Discussion started by: mbah_jiman
5 Replies
9. Shell Programming and Scripting
Hi
One shell script is running fine when I am running it through command line.
However the same thing is not working when I am trying through cron.
Basically when I debugged I found when I am running it throuh ssh terminal ( putty) it's getting loading the profile file properly but... (7 Replies)
Discussion started by: Anupam_Halder
7 Replies
10. Shell Programming and Scripting
Hi,
The user "MadeInGermany" tried to help on the below post by saying "This has been asked before; see the links below.
Get your current LD_LIBRARY_PATH and redefine that in your ksh script!
"
Thanks for the help. but this did not help. And my post got locked. I can't reply on my previous... (5 Replies)
Discussion started by: girish1428
5 Replies
LEARN ABOUT REDHAT
crontab
CRONTAB(1) General Commands Manual CRONTAB(1)
NAME
crontab - maintain crontab files for individual users (V3)
SYNOPSIS
crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }
DESCRIPTION
Crontab is the program used to install, deinstall or list the tables used to drive the cron(8) daemon in Vixie Cron. Each user can have
their own crontab, and though these are files in /var, they are not intended to be edited directly.
If the allow file exists, then you must be listed therein in order to be allowed to use this command. If the allow file does not exist but
the deny file does exist, then you must not be listed in the deny file in order to use this command. If neither of these files exists,
then depending on site-dependent configuration parameters, only the super user will be allowed to use this command, or all users will be
able to use this command.
If the -u option is given, it specifies the name of the user whose crontab is to be tweaked. If this option is not given, crontab examines
"your" crontab, i.e., the crontab of the person executing the command. Note that su(8) can confuse crontab and that if you are running
inside of su(8) you should always use the -u option for safety's sake.
The first form of this command is used to install a new crontab from some named file or standard input if the pseudo-filename ``-'' is
given.
The -l option causes the current crontab to be displayed on standard output.
The -r option causes the current crontab to be removed.
The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit
from the editor, the modified crontab will be installed automatically.
SEE ALSO
crontab(5), cron(8)
FILES
/etc/cron.allow
/etc/cron.deny
STANDARDS
The crontab command conforms to IEEE Std1003.2-1992 (``POSIX''). This new command syntax differs from previous versions of Vixie Cron, as
well as from the classic SVR3 syntax.
DIAGNOSTICS
A fairly informative usage message appears if you run it with a bad command line.
AUTHOR
Paul Vixie <paul@vix.com>
4th Berkeley Distribution 29 December 1993 CRONTAB(1)