Autosys - failing job

Hi,

I am trying to schedule an autosys job for weblogic server reboot. When i run the job it is failing with the following error:

/bin/sh: /path/stop_wls instancename: not found

The following is my jil and i dont refer to /bin/sh at all

update_job: mgd_shutdown_cmd.jil job_type: c
command: "/path/stop_wls instancename"
machine: server
permission: gx
description: "Stop Managed Server"
box_terminator: 1
std_out_file: /path/$AUTO_JOB_NAME`date +%m%d`.out
std_err_file: /path/$AUTO_JOB_NAME`date +%m%d`.err
alarm_if_fail: 1

not sure what is wrong?...do i need to add a variable somewhere???

I am sure there is nothing wrong with the script since it is working fine when i try to run it seperately. The only problem is with executing the script through an autosys job.

Any help is greatly appreciated.

Thanks,

If you are not doing it already, try running the job as root.

tyler_durden

confirm that /path/stop_wls script/program exists.

Hi All,

I am trying to run the job as an admin and the path to the stop script actually exists.

The stop script is running fine by itself but not through the autosys job. I ran env>user.env and got the autosys paths as well through a script and reference the paths in .profile.

Now when i run /stop.sh instancename, i am getting error message instancename does not exist in WL domain_info.txt.

The instance name exists in the domain_info.txt else the stop script would not run by itself.

Not sure what is going wrong. Appreciate assistance.

Thanks,