Autosys Help!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Autosys Help!
# 1  
Old 12-02-2010
Autosys Help!

I am not sure why my output keeps going to my std_out_file!!

Here's my JIL:

insert_job: test_autosys job_type: c
command: $SCRIPT_DIR/test
machine: abcde
owner: bob@abcde
permission: gx,wx
date_conditions: 1
days_of_week: mo, tu, we, th, fr
start_times: "8:00, 9:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, 16:00, 17:00"
description: "Test Job"
std_out_file: $TEMP_DIR/$AUTO_JOB_NAME.$AUTORUN.OUT.$$
std_err_file: $TEMP_DIR/$AUTO_JOB_NAME.$AUTORUN.ERR.$$
alarm_if_fail: 0
profile: /apps/autosys_profile

Here's my profile

#!/bin/sh
TEMP_DIR=/tmp;
SCRIPT_DIR=/home;
OUTPUT=/home/output_autosys;


Here's my script called "test"

#!/bin/sh
#This is a comment
echo `date` testing Autosys >> $OUTPUT


When i run this job .. I am not getting any echo on my output_autosys file, but I am getting it at my std_out_file under /tmp.

Any idea why??
# 2  
Old 12-03-2010
I think profile variables need to be exported and are not getting to your script. Can you do an
Code:
echo "Output=$OUTPUT"

inside your script to check?
# 3  
Old 12-03-2010
Export the variables in your profile:
Code:
export OUTPUT=/home/output_autosys

# 4  
Old 12-03-2010
My job fails when I used Export in my profile


#!/bin/sh
TEMP_DIR=/tmp;
SCRIPT_DIR=/home;
export OUTPUT=/home/output_autosys;

...

I tried to manually run my test script and I am getting ./autosys_profile: OUTPUT=/home/output_autosys: is not an identifier


#!/bin/sh
#This is a comment
./autosys_profile
echo `date` testing Autosys >> $OUTPUT

---------- Post updated at 06:35 AM ---------- Previous update was at 06:20 AM ----------

I think i fixed the problem!

OUTPUT=/home/output_autosys;
export OUTPUT
# 5  
Old 12-03-2010
To help,we would have to know platform/OS version... for e.g. on many platforms /home is only writeable by root...

you would have to explain what you call your profile (vs profile: /apps/autosys_profile)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Autosys help

I am very new to Autosys and want to execute my first batch or job there. I have url to open Autosys and have access of Folder Structure 1. for AutoSys Job log 2. for AutoSys profile and parameters 3. for Shell Scripts Please share some information that how to create a job using GUI. I am... (2 Replies)
Discussion started by: Muneshshar
2 Replies

2. UNIX for Advanced & Expert Users

AutoSys

From where i can get complete Ref. pdf of AutoSys r11.3 any one got idea ? I cant find good document for that (2 Replies)
Discussion started by: ujjwal2120
2 Replies

3. OS X (Apple)

OS on AutoSys

We have a primary and shadow running our scheduler. We need to upgrade both to a more current OS. We'd like to take down the shadow and update it, then allow it to become the primary while we update the current primary. Does Autosys care what OS you are running or can it potentially toggle... (0 Replies)
Discussion started by: Cjw_55106
0 Replies

4. UNIX for Dummies Questions & Answers

Autosys: How to change a machine name in Autosys JIL.

All the autosys jobs are on server-1 and server-1 has been crashed due to some reason, Now I have to run 5 autosys jobs on server-2 (failover server) which are on server 1. How to do with Autosys command (which command needs to fired on JIL) (0 Replies)
Discussion started by: tp2115
0 Replies

5. UNIX for Dummies Questions & Answers

Autosys Help

Guys, anyone familiar with Unix AutoSys? I am wondering what is done to make a script located in this dir: /home/user2/mywork.pl I have access to jil files incase that helps. to work everyday at 5pm? Any insight or guidance would be appreciated. (7 Replies)
Discussion started by: DallasT
7 Replies

6. Shell Programming and Scripting

Autosys

Hi, I have heard of file watcher job and command job in autosys. can anyone tell me about box type job? An example would be appreciated. Thanks in Advance. (4 Replies)
Discussion started by: diehard
4 Replies

7. Shell Programming and Scripting

Help on Autosys

Hi, I need to schedule a script to run at 12:00 on first day of every month. I don't know how to set it. Like days_of_week, do we have days_of_month where we can put 1? Thanks, Siba (5 Replies)
Discussion started by: siba.s.nayak
5 Replies

8. Shell Programming and Scripting

AUTOSYS help

In AUTOSYS is there a way to find out who created the job? Thanks (0 Replies)
Discussion started by: talashil
0 Replies

9. UNIX for Advanced & Expert Users

Help me in Autosys

I have installed CA::Autosys my pc. It is in /usr/lib/perl5/site_perl/5.8.8/CA/AutoSys/AutoSys.pm . I have Sybase Installed. Kindly help to how to connect autosys to database.. Also how do I create users in Autosys.. Please guide me.. Thank You.. (1 Reply)
Discussion started by: bhuvaneshlal
1 Replies

10. UNIX for Advanced & Expert Users

Documentation and books on Autosys Job Control Tool from Autosys

My project uses Autosys. I am new to this product and I don't know where to start from. Q1. Please provide me the link where I can get Autosys documentation Q2. Please refer a good book on Autosys. (Beginner/Intermediate Level) (0 Replies)
Discussion started by: gram77
0 Replies
Login or Register to Ask a Question