 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
jvaldes988
Joined: 01 Mar 2007 Posts: 35 Country: United States |
|
Job aborting when special command is found |
|
Hello:
Two of our scheduled jobs are aborting when these two UNIX commands are found
export HISTFILE=~/.hist.$(/usr/bin/tty | sed 's;.*/;;')
export JAVA_HOME=/usr
Please let us know why this is happening. Are some UNIX commands not supported by the 24 x 7 Scheduler?
Thanks in advance,
Jesus Valdes
Perry Ellis International
|
|
Thu Mar 01, 2007 12:17 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7963
|
|
|
|
24x7 doesn't run your Unix commands. If you have a program type job, 24x7 simply invokes the shell and passes your command line to the shell. So from the scheduler point of view it doesn't really matter which commands you run.
If you need further help with this particular issue please try to provide more relevant details such as the error message from the job log, how the job is scheduled, whatever else you think might be important for us to know in order to understand what you are doing and what you are getting as a result.
|
|
Thu Mar 01, 2007 12:29 pm |
|
 |
jvaldes988
Joined: 01 Mar 2007 Posts: 35 Country: United States |
|
Job aborting when special command is found |
|
Hello:
One thing I noticed is I can run same script in the UNIX machine (without using the scheduler) and it executes to completion. i'm running this job on the scheduler with the 'Run Now' button (i.e. it's scheduled to run when user wants to, not at specific time or date). This is the section from the job log that shows what happens when job aborts. Thanks again for all your help:
75 2007-03-01 11:46:06,596 [AWT-EventQueue-0] DEBUG com.softtreetech.jscheduler.business.queue.JobQueue - QUEUE_UNLOCKED
76 2007-03-01 11:46:06,597 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.log.LoggerImpl - found asynchronous log message
77 2007-03-01 11:46:06,598 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.log.LoggerImpl - asynchronous log message inserted
78 2007-03-01 11:46:06,599 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.ProgramJobRunner - runJob(): start
79 2007-03-01 11:46:06,680 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - authNativeUser: dwidev login ok
80 2007-03-01 11:46:06,680 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.ProgramJobRunner - execProcess(): command line [/export/hom
e/dwidev/antonio/./dimension_load2 > dimension_load2.log] in work directory [/export/home/dwidev/antonio]
81 2007-03-01 11:46:06,680 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.ProgramJobRunner - runAs() username=dwidev command=/expor
t/home/dwidev/antonio/./dimension_load2,>,dimension_load2.log workDir=/export/home/dwidev/antonio
82 2007-03-01 11:46:06,680 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.ProgramJobRunner - exec : ./runas.pl,dwidev,/export/home/dw
idev/antonio/./dimension_load2 > dimension_load2.log,/export/home/dwidev/antonio
83 2007-03-01 11:46:06,746 [Thread-111972] DEBUG com.softtreetech.jscheduler.business.runner.AbstractJobRunner$TimeoutVerifier - run(): start
84 2007-03-01 11:46:06,746 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.ProgramJobRunner - waitForProcess(): start
85 2007-03-01 11:46:06,748 [Thread-111972] DEBUG com.softtreetech.jscheduler.business.runner.AbstractJobRunner$TimeoutVerifier - run(): end due to zero
timeout
86 2007-03-01 11:46:06,851 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.ProgramJobRunner - waitForProcess(): end
87 2007-03-01 11:46:06,851 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.AbstractJobRunner - isFailed(...) : exit code 2
88 2007-03-01 11:46:06,852 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.AbstractJobRunner - isFailed(...) : Enumeration found [0]
89 2007-03-01 11:46:06,853 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.runner.ProgramJobRunner - killProcess start
90 2007-03-01 11:46:06,856 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.super.O0oO - disableJob(...) : Job with id [121] is removed.
91 2007-03-01 11:46:06,862 [Thread-111970] DEBUG com.softtreetech.jscheduler.db.JobDbImpl - updateJob(JobProperties) : start
92 2007-03-01 11:46:06,864 [Thread-111970] DEBUG com.softtreetech.jscheduler.db.drivers.file.FileJobDbStorage - update(...) : start
93 2007-03-01 11:46:06,864 [Thread-111970] DEBUG com.softtreetech.jscheduler.db.drivers.file.FileJobDbStorage - update(...) : end
94 2007-03-01 11:46:06,865 [Thread-111970] DEBUG com.softtreetech.jscheduler.db.JobDbImpl - updateJob(JobProperties) : end
95 2007-03-01 11:46:06,871 [Thread-111970] DEBUG com.softtreetech.jscheduler.business.queue.JobQueue - QUEUE_UNLOCKED
96 2007-03-01 11:46:07,296 [Thread-111970] ERROR com.softtreetech.jscheduler.business.runner.JobExecutorImpl - Job errors: Job completed with exit code
2. This exit code does not satisfy job exit code condition. Job failed.
~
|
|
Thu Mar 01, 2007 12:43 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7963
|
|
|
|
/export/home/dwidev/antonio/./dimension_load2,>,dimension_load2.log
Is this the command line you are trying to run?
|
|
Thu Mar 01, 2007 1:22 pm |
|
 |
jvaldes988
Joined: 01 Mar 2007 Posts: 35 Country: United States |
|
job aborting |
|
No, the command is:
/export/home/dwidev/antonio/./dimension_load2 > dimension_load2.log
I did not set it up with commas(,). I'm not sure where the sceduler got those commans
|
|
Thu Mar 01, 2007 1:28 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7963
|
|
|
|
What do you get in file dimension_load2.log after the job is run?
Is this an existing file?
Does the user associated with the job have permissions to overwrite this file?
|
|
Thu Mar 01, 2007 1:40 pm |
|
 |
jvaldes988
Joined: 01 Mar 2007 Posts: 35 Country: United States |
|
|
|
File dimension_load2.log is overwritten every time the script is run. The user associated with the job has permissions to overwrite this log file. I'm including what was written in the dimension_load2.log the last time I ran it (some 'echo' commands):
****************************
**** Running pei_rdw4 ****
****************************
|
|
Thu Mar 01, 2007 1:47 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7963
|
|
|
|
This looks like the job aborts before it starts running anything. Do you have a timeout set for the job? Is the result same when you uncheck "run as" options?
|
|
Thu Mar 01, 2007 2:55 pm |
|
 |
jvaldes988
Joined: 01 Mar 2007 Posts: 35 Country: United States |
|
job aborting |
|
The job does not abort before it starts running. I was able to trace it and realized the job aborted when it encountered the command:
export HISTFILE=~/.hist.$(/usr/bin/tty | sed 's;.*/;;')
That is what I said when I first posted the question.
The timeout is set to '0' for this job.
I'm not sure where in the job setting I can uncheck "run as" options.
|
|
Thu Mar 01, 2007 3:26 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|