Could someone help me with crontab command form on AIX?
Yes.
Now in earnest: what exactly do you want to know?
My crystal ball is somewhat distorted today and i only see unclear pictures looking over your shoulder. You might as well enlighten me what your problem is and i will try to answer how to alleviate it. Deal?
@bakunin:
i have the following issue, i added a crontab command for some scripts :
but the command is not working, the out file is empty so i can't see the error or the problem....
Moderator's Comments:
edit by bakunin: please use CODE-tags for code, file content and terminal output. Thank you.
That is understandable. You try to set an environment, but you start two separate environments for this. In one of them you source in the file /etc/profile.sas:
If this command returns "TRUE" (or 0, which is, for this purpose, the same), then in a second environement the command
is executed. But perhaps you rely on a certain environment to be set inside your script, not in some other unrelated process. This is why your script (most probably) failed.
Note that this is all conjecture because i cannot read what in the script /data/work/cr_folder1.sh is (crystal ball not working, y'know).
If my educated guesswork is indeed right you might want to do it this way:
Hi All,
I want a script to run every 5 minutes and in the command prompt i typed the following command
$ */5 * * * * /u01/EnvironmentStartup/validateservices.sh
and when i enter i'm getting a message
"-bash */5: No such file or directory"
Any ideas please?
Thanks
Please wrap all code,... (6 Replies)
Dear Friends,
I am trying to copy SAP log file from one HPux server1 to another HPux server2 remotely through one script.
following command has written in the script.
rcp -rp /oracle/PRD/sapreorg/*.dbf oraprd@drsite:/oracle/PRD/sapreorg
Above command working fine from command mode.... (5 Replies)
Hi Expert,
I am using TZ for extracting yesterday date and day before yesterday date
example :
date_yes=`TZ="GMT+28" date +'%d-%b-%Y'`
date_dbyes=`TZ="GMT+48" date +'%d-%b-%Y'`
echo $date_yes $date_dbyes
26-May-2010 27-May-2010
I have written a small script for the same named... (1 Reply)
Hello Experts,
I am facing problem in date command with TZ
test.sh
Output : 26-May-2010 27-May-2010
I scheduled this script everyday at 1 a.m
00 01 * * * sh test.sh
when i was called this script test.sh from crontab , it was giving me other output (1 Reply)
Dear All,
We wrote a script to clean email mailbox when they're nearly full and put it in cron :
0 0 * * * /root/quota/autoclean.sh > /root/quota/autoclean.`date '+%Y%m%d'` 2>&1
I've run this command from command prompt, it did work.
However, if running from cron, it returned such error... (1 Reply)
Hi all you enlightened unix people,
I've been trying to execute a perl script that contains the following line within backticks:
`grep -f patternfile.txt otherfile.txt`;It takes normally 2 minutes to execute this command from the bash shell by hand.
I noticed that when i run this command... (2 Replies)
hi I am trying to activate auto_run.sh from crontab using following command line but nothing happen.
35 11 * * * -exec /u/uniacc/auto_run.sh
and this is the first line of auto_run.sh
ksh exec auto_inv.4ge > kti (4 Replies)
Hi All,
There is a requirement to create a file everyday using the cronjob with the date as its name.
any suggestions for the crontab command that'll serve this purpose?
e.g.
02 30 * * * touch abcd.`date +%d.%m.%y`
needless to say.. this doesn't work..
looking fwd to lots of... (7 Replies)
Dear Friends,
I have tried to fire a job on daily basis through crontab command but it willn't work.
i have given in the following manner:
07 19 * * * exp /user_name/passwd/ file = /path/file-name full = N owner = user-name
but it is giving error that permission denied.
i have checked that... (8 Replies)
Hi all ,
When i am tryting to execute crontab from home directory for a shell script which is located in some directory it is giving a error message
The crontab file is
0 9-17 * * 1-5 /mydir/myshell
The following output is given
Your "cron" job
/mydir/myshell
produced the following... (1 Reply)