usage of "at" command instead of crontab


 
Thread Tools Search this Thread
Operating Systems Solaris usage of "at" command instead of crontab
# 1  
Old 06-14-2006
CPU & Memory usage of "at" command instead of crontab

usage of "at" command instead of crontab

Hi all,

Iam facing some problem while scheduling a script job from crontab. this script is calling one sql script to extract some report information. If I mannually run this script this is working fine. But it is not working with crontab. It is failing to call sql script.
For all the command I specified full paths, set $Oracle home path etc,. but still it is not working.

But I can able to schedule this script reccursively with "at" command. Till now it is working fine. But I dont know are there any diffence b/n crontab and reccursive at commands!!!!!!!!

Suggest me please.


Your friend for ever,
Love
# 2  
Old 06-14-2006
Hi.
Have a look at your server's logfiles (cron ones). Perhaps there you could find a reason.
It seems to me that it's a question of environment, but need more info...
# 3  
Old 06-16-2006
Network location for server log (cron's) files

Smilie Thanks a lot.
can you tell me the location for server log (cron's) files?

Regards,
Love
# 4  
Old 06-16-2006
The cron logs can be found on Sun systems at /var/cron/log, on HP-UX at /var/adm/cron/log. On other systems, check the man page of cron. The files' listing should be at the end of the man pages.
# 5  
Old 06-20-2006
PHP dont have sufficient privilage to view the crontab's log file

Blowtourch,

Smilie I dont have sufficient privilage to view the log file present in /var/cron/log.
Because user is 'root' for that log file.
The problem is Shell script successfully calling the SQL script if I run mannually, same thing is not working with crontab. I've set all the path variable for all the commands including Oracle path.

Any help will be grateful for me.
# 6  
Old 06-20-2006
When you say "manually", you mean whith the oracle user, don't you?
So, have you included ORACLE_SID, ORACLE_HOME and all those Oracle shell variables in your shell script?
# 7  
Old 06-20-2006
Yes Grial,

I've included ORACLE_SID and ORACLE_HOME.
What all are the other Oracle shell variables? Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

2. Shell Programming and Scripting

Problem with running the "autorep" command via crontab

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

3. UNIX for Dummies Questions & Answers

Crontab -e command return "413"

I was trying to edit the crontab file for root. I had saved off the existing file for later recovery. When I typed crontab -e to edit, the system returned "413" and the cursor stopped blinking. Ctrl+c stopped that. I typed, in bash, "EDITOR=vi" (Enter). Then, "export EDITOR" (Enter). Then,... (2 Replies)
Discussion started by: roadmanjim
2 Replies

4. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

9. UNIX for Advanced & Expert Users

How to schedule "topas" command in crontab

Hi, Grateful if you could advise how to schedule the AIX "topas" command in crontab? Below script works fine at shell prompt. But it does not run via crontab at an AIX Server. Script: topas_run.sh export top_file=/oracle/rman_scripts/"topas_run"_`date '+%m_%d_%y_%H_%M_%S'`".txt" echo >>... (7 Replies)
Discussion started by: schandrakar1
7 Replies

10. Shell Programming and Scripting

Usage of "acctcom" command ??

Hi All, I want to know the any process end time using the "acctcom" command. I think "ps" command will give only running processes Start time. But i want know the running & completed processes: 1. Start Time 2. End Time 3. Process Name/Command Name 4. PID Please... (1 Reply)
Discussion started by: hanu_oracle
1 Replies
Login or Register to Ask a Question