CRON Scheduler


 
Thread Tools Search this Thread
Operating Systems Solaris CRON Scheduler
# 1  
Old 08-23-2008
Network CRON Scheduler

I have akorn shell job that I can run manually but when I run via cron it starts and finishes, but does not do what it does when I run it manually.
Any ideals on why this is happening?
# 2  
Old 08-23-2008
first guess would be an environment variable set in your shell but not set at the time of cron entry execution- you can put a 2>/tmp/myscript.err at the end of the script in the cron line to pipe the errors to a file you can look at

i.e.

1 * * * * /scripts/myscript.ksh 2>/tmp/myscript.err
# 3  
Old 08-23-2008
Sure. It is the environment variables that get defined in .profile, and so on during login.
If you execute the set command from both "situations", live and cron, and redirect each output to separate files you will see differences.
# 4  
Old 08-23-2008
Problem Solved

Thanks everyone, I appreciate your help, this site is very helpful.
I had to include the execution of a particular profile that gets executed within my own profile.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Program not running from the cron scheduler

Good Afternoon, I have a sh script that the admin added to the cron schedule. It runs fine when I run it manually...but not when scheduled. I added the path that is found for my user to the script. Still no luck. Any ideas what I should look at? Thanks Marty (8 Replies)
Discussion started by: MSpeare
8 Replies

2. UNIX for Advanced & Expert Users

OS Watcher not running with cron scheduler

Hi team, O.S : Oracle Linux Issue : I am facing issue when running OS watcher script from cron scheduler. But when i run the same command manually, its getting executed. Note : I have to press " Enter " button to get out of the blank screen when I execute the script manually. Below is... (1 Reply)
Discussion started by: madhuraju
1 Replies

3. Red Hat

Cron scheduler issue

I am trying to schedule a script in Linux to between 8th and the 31st of each month on Sundays @ 6:50 only and i scheduled it as follows: 50 6 8-31 * 0 ksh /home/cpac/SPID_Files/GetFiles.ksh Which did it run on the 8th on Saturday instead of only Sundays !!! (3 Replies)
Discussion started by: mrn6430
3 Replies

4. Shell Programming and Scripting

Help needed regarding cron job scheduler with CyberArk Password security

Hi All, I have a script which will restart some web server and bring it up again. For that I need to retrieve 3 password from CyberArk (Cyber-Ark - Wikipedia, the free encyclopedia) vault. My question is: Is this possible to schedule the script through cron and automatic password... (0 Replies)
Discussion started by: saps19
0 Replies

5. UNIX for Dummies Questions & Answers

CRON JOB SCHEDULER throwing "option not allowed error"

Hi All, Pardon me if this turns out to be a dumb question. But I am trying to schedule a cron job for a my script which takes input options. So an entry in crontab would be something like: 1 * * * * run_report.sh -o out.csv -m monthly -e somename@email.com > cron_output.log 2> cron_error.log... (3 Replies)
Discussion started by: trueharsh
3 Replies

6. Shell Programming and Scripting

Unix scheduler other than Cron

Do any one know any way of scheduling jobs on Unix without using cron as thats not supported within the company (5 Replies)
Discussion started by: Yziee
5 Replies

7. Shell Programming and Scripting

Job scheduler without using cron

Hi, I want to schedule the scripts/batches to run simultaneously. I had all the information in the config (flat)file, which contains script name, time, dependency, path, priority and status etc., I want to run the jobs parellelly and some jobs are required to give the input. How can I do this?... (1 Reply)
Discussion started by: sharif
1 Replies

8. HP-UX

Help... LP scheduler problem...

My HPUX server can't accept all lp jobs for all my printers... I pinged the print servers and they are fine, ran lpstat -r and shows me that the scheduler is running, lpstat -t shows nothing and won't get back to # unless i terminate it, lpstat -a shows all printers fine, but in SAM it failed to... (1 Reply)
Discussion started by: amao
1 Replies

9. UNIX for Dummies Questions & Answers

Scheduler in Solaris

I am using Sun Solaris Where I can find scheduler program that can run another program automatically on scheduled time? Thank you. (1 Reply)
Discussion started by: wadiachmed
1 Replies
Login or Register to Ask a Question