Simple text glob example:
insert_glob: myglob
blob_mode: text
blob_input: <auto_blobt>Testing this glob</auto_blobt>
/* ----------------- create_glob_cmd ----------------- */
insert_job: create_glob_cmd job_type: CMD
command: echo "Hello World!"
machine: node1
owner: autosys
permission:
date_conditions: 0
std_out_file: "$$glob.myglob"
std_err_file: "/tmp/$AUTO_JOB_NAME.err"
alarm_if_fail: 0
alarm_if_terminated: 0
/* ----------------- consume_glob_cmd ----------------- */
insert_job: consume_glob_cmd job_type: CMD
command: cat
machine: node2
owner: autosys
permission:
date_conditions: 0
std_in_file: "$$glob.myglob"
std_out_file: "/tmp/$AUTO_JOB_NAME.txt"
std_err_file: "/tmp/$AUTO_JOB_NAME.err"
alarm_if_fail: 0
alarm_if_terminated: 0
$ autosyslog -J consume_glob_cmd -tO
Hello World!
1. The create_glob_cmd sends the output to the glob named myglob
2. The consume_glob_cmd takes the myglob as the infile (std_in_file) and does a cat <content of the myglob>
3. Output of the consume_glob_cmd is written to the std_out_file.
Original Message:
Sent: 06-19-2020 03:27 PM
From: James Marshall
Subject: Adding a jobs output to a GLOB to use by another job as input
Kicking the job off is not a problem. It's loading the output from the command into the DB as a GLOB that I'm trying to figure out.
Original Message:
Sent: 06-19-2020 03:18 PM
From: Sandeep Veetil
Subject: Adding a jobs output to a GLOB to use by another job as input
You can write a script and pass a sendevent command to force start the job from the script and provide the parameters in jobs command line with the variable like: $$INPUTFILE.
| | Regards, | Sandeep K V | | Allegis Group +1 254 334 2858 [ mobile ] +1 410 579 4834 [ Work ] | | | | | | |
Original Message:
Sent: 6/19/2020 12:02:00 PM
From: James Marshall
Subject: Adding a jobs output to a GLOB to use by another job as input
I want to list a folders contents on one machine and store it as a GLOB to use as input to a job on another machine. Trying to find examples but I'm not having any luck. Anyone have some generic examples they can share?
Thanks!
------------------------------
Bo Marshall
Applications Systems Analyst/Programmer
IS_PCT – Production Control Team
Health Alliance Plan
------------------------------