Filewatch job in autosys in circular way


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Filewatch job in autosys in circular way
# 1  
Old 10-19-2011
Filewatch job in autosys in circular way

I have box created with filewatch job as the first job follwed by 2 other jobs . For the time period of 8:00 am to 8:00 pm,we can get files anytime , with out any restriction on the number of times we get the file.

So for this I need to make this box work in circular fashion i.e. once the box is trigger and completes to success ,it should start running again looking for the next File .

is there a way to do this autosys self or do we need any scripts??
any solution would be fine..
# 2  
Old 10-19-2011
Try processing each file and move it to a processed directory.

This way, your receiving directory will only contain unprocessed files.
# 3  
Old 10-20-2011
Quote:
Originally Posted by Shell_Life
Try processing each file and move it to a processed directory.

This way, your receiving directory will only contain unprocessed files.
I am very new to autosys..probably missing something here..Can you please elaborate please..how will moving the file help in getting the job triggered again??
# 4  
Old 10-20-2011
Quote:
Originally Posted by nishantrk
So for this I need to make this box work in circular fashion i.e. once the box is trigger and completes to success ,it should start running again looking for the next File .
As you say, your process is looking for a file, if it does not find it, there is nothing to process.

Your job should always be running.

Whenever it finds a file, it should process it, then move it out of the working directory.
# 5  
Old 10-21-2011
Quote:
Originally Posted by Shell_Life
As you say, your process is looking for a file, if it does not find it, there is nothing to process.

Your job should always be running.

Whenever it finds a file, it should process it, then move it out of the working directory.
Guess have not phrased the requirement correctly...

Autosys jobs

test_box status RU
job1 (filewatch job)---status RU
job2 (command job)---status AC

File arrives in file watch folder ,job1 is triggered ,which in turn triggers job 2 and completes to success and file is removed the the file watch folder.

test_box status SU
job1 (filewatch job)---status SU
job2 (command job)---status SU

Now if a file comes again the job 1 won't be triggered since it is in SU status not in running status.
How to get the box back in Running status automatically , so that this works anytime a new file comes
# 6  
Old 10-21-2011
can you able to put the autorep command to trigger the box inside your job2 script ?

or in the box job, add time to execute the box job to execute for every 20 or 30 mins and the condition : s(box job)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Suggestion in Autosys job

Hi, I am new to Unix and Autosys. I have written Oracle query. Now I would like to create Autosys job. below is the requirement. Send in email every 30 minutes from 11 to 4:00 PM. E-mail should only be sent ONLY when below Query have data return. Email format: To: , From: , Email... (1 Reply)
Discussion started by: vasuvv
1 Replies

2. Programming

Autosys job in UNIX

Hi all, I am new to Unix. I would like to create a Autosys job in Unix. Can you please suggest. below is the requirement. 1. Need t Send in email every 30 minutes from 11 am to 3:00 PM. E-mail should only be sent ONLY when below Query have data return. select * from emp where... (1 Reply)
Discussion started by: vasuvv
1 Replies

3. UNIX for Advanced & Expert Users

Autosys Job: Job did not start

I have submitted an autosys job and force start it. Autosys hit the job 4 times to restart but it did not start and finally I terminate the job. Any idea why the job did not start. Below is the code I executed. 1214 missun0ap /export/home/bzn97r/develop/dswi/jil$ sendevent -E FORCE_STARTJOB... (0 Replies)
Discussion started by: jnrohit2k
0 Replies

4. Shell Programming and Scripting

Autosys Job Permission

Hi friends, Can anybody tell me the different type of permission used in autosys. thanks!!!!! (0 Replies)
Discussion started by: diehard
0 Replies

5. Shell Programming and Scripting

Autosys Job

I need to know the list of autosys job that run between given time. I have the following command. job_depends -t -J abc% -F "12/25/2010 03:00" -T "12/26/2010 05:00" Above command will give the list of job that run between time 3 AM and 5 AM. But the it gives me in random order how to... (1 Reply)
Discussion started by: diehard
1 Replies

6. UNIX for Dummies Questions & Answers

Autosys Job.

Hi Can any one tell me free online good book for autosys job. Also whats the basic difference between Autosys job and cron job. Thanks in advance. (2 Replies)
Discussion started by: diehard
2 Replies

7. Shell Programming and Scripting

autosys job configuration for job failure.

We need to configure autosys that when a job fails continously for 3 times, we need to call another job. Is this possible in Autosys, or can anyone advice on the alternative. (2 Replies)
Discussion started by: sangea
2 Replies

8. Shell Programming and Scripting

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 ... (3 Replies)
Discussion started by: userscript
3 Replies

9. 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

10. UNIX for Advanced & Expert Users

Autosys Job update

Hi could someone tell me how do I update an autosys job? i was trying something like: $ jil < solarCleaning.jil -V none ______________________________________________________________________________ Insert/Updating Job: solarCleaning *** CANNOT INSERT Job: solarCleaning, because... (3 Replies)
Discussion started by: nosnam
3 Replies
Login or Register to Ask a Question