crontab isn't excuting some commands


 
Thread Tools Search this Thread
Operating Systems AIX crontab isn't excuting some commands
# 1  
Old 02-03-2009
crontab isn't excuting some commands

Greetings everybody,

I have an IBM P520 AIX 5.3 server machine and trying to use crontab to periodically excute a script that contains a command belongs to my software (Fast/Tools SCADA software)

I added the following line after using crontab -e
Code:
01 * * * * /mypath/myscript

I have two cases:

A) if "myscript" conatins standard SHELL commands like:
Code:
ls > /home/ls.log

In this case, it runs as excepected.


B) if "myscript" contains my application command, it doesn't run at all!
please note that this command in "myscript" file is runnig correctly if it's being typed in the KSH directly.

Am I missing somehting?

Thanks in advance
# 2  
Old 02-03-2009
Do a search on cron or crontab in these forums. You should find the answer you are looking for.
# 3  
Old 02-03-2009
Please read the cron FAQ section - this question has been asked/answer many times over.
# 4  
Old 02-04-2009
Thanks a lot for replying...
It's always my habit to search before asking.. I didn't this time!

And regarding my "very common" problem, it was resolved by using the full absolute path to the commands.

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Error in excuting while loop

can you please support me to understand what is wrong in this code, I am getting error as sytnax error near unexpected token if if then code is cat text.txt | /path/mapper.sh data in file is hi hi how how are you while read line do for word in $line do if then wcount=`echo... (4 Replies)
Discussion started by: mirwasim
4 Replies

2. Shell Programming and Scripting

Not getting colorcode when excuting html in UNIX

Hi i have below code which i am running and the out i want should be in red color echo "<html>" >> ERROR_FILE.html echo "<Body>" >> ERROR_FILE.html nawk 'BEGIN{print "<table border="1">"} {print "<tr>"; print "<TD colspan="0" bgcolor="#DC143C">"; for(i=1;i<NF;i++)... (5 Replies)
Discussion started by: mirwasim
5 Replies

3. UNIX for Dummies Questions & Answers

Crontab jobs excuting

Hi i want to run the cronjob from 7 Am till 11.30Am for every 5 minutes from monday to friday. can anyone help? (15 Replies)
Discussion started by: satheesh_charle
15 Replies

4. Shell Programming and Scripting

RMAN commands inside crontab shell script

Hello I'm trying to write simple script to delete archive logs for RMAN, unfortunately it's not working, I tried two way to do that: #!/bin/ksh echo "Start ....." rman target=/ << EOF RUN { delete force noprompt archivelog until time 'sysdate-10'; } EXIT; EOF echo "END ..." echo... (6 Replies)
Discussion started by: samer.odeh
6 Replies

5. Shell Programming and Scripting

crontab - runninf a java script just isn't quite working...

hi gurus. I have a little script that runs java from a certain directory. This script runs fine when run manually but when I try to schedule it, it fails to find the script. little_script.sh.. /<directory of java>/java -classpath... (3 Replies)
Discussion started by: MrCarter
3 Replies

6. Shell Programming and Scripting

excuting the following code

hi i am trying the below code for the following |_ | |_ | |_ |_ | |_ |_ |_ | |_ |_ |_ |_ and for this code also * * * * * * * * * * * * * * * !/bin/bash #i = "*" (2 Replies)
Discussion started by: kullu
2 Replies

7. Shell Programming and Scripting

Problem in excuting my First Shell Script

Hi i am a newbie to unix /Linux .Please help I have a following script which says that there is a syntax error :( My program is echo Enter two Numbers read a b if echo First is greater else echo Second is greater fi (3 Replies)
Discussion started by: Ravi Pavanv
3 Replies

8. Shell Programming and Scripting

Excuting UNIX Functions under several username and host

Hi, I am facing a issue in one of my script, Please help me on the same. Below I have the example. Example: I have two functions(host(),user()) in a single file named test1.ksh File Name: test1.ksh host () { HOST=`hostname` echo... (1 Reply)
Discussion started by: samvino
1 Replies

9. UNIX for Dummies Questions & Answers

Excuting Multiple shell files in sequesnce

Hi, I have two shell scripts each executing a java process independently. These are two independent processes and I need to sequence them using another shell script. What I did was created another shell script and called these independent shell scripts in it. It runs fine, however from time... (3 Replies)
Discussion started by: gupta_arunesh
3 Replies

10. UNIX for Dummies Questions & Answers

differnce between working of at and crontab commands

h I would like to know the differnce (both working and how) between at command and crontab.. Thanks in advance Satish D (2 Replies)
Discussion started by: doddas
2 Replies
Login or Register to Ask a Question