-1

We have processed data and we wil get dat files for every 4 days so when ever those dat files created we need to run autosys job, is there any script that will work for my Linux box?

Need support on this . So far manual particular time given in autosys to run those files. But we need auto run when ever dat files created every time

Mani
  • 3
  • 1
  • 3

1 Answers1

0

You create an Autosys in-built file watcher job and trigger your job when the file watcher gets succeeded.

Here is how that look like:

If the job name is "joba" and it needs to complete upon arrival of a file name test.dat in the directory /tmp/autosys/, here is the JIL

insert_job: joba
job_type: FW
machine: linuxbox
watch_file: /tmp/autosys/test.dat
watch_interval: 60 (will probe the path every 60 seconds)
watch_min_file_size: 1024 (minimum file size to confirm if we have a good file represented in bytes, optional attribute)
permission : xxxx
mustaccio
  • 18,234
  • 16
  • 48
  • 57
MadMaxx
  • 16
  • 2
  • I think this answer will benefit from more details on how to "create an Autosys in-built file watcher job" – mustaccio Feb 27 '23 at 14:55