Invoke zmfilter.pl (to upload archived event) from CLI for specific event ID
Posted: Sat Jan 02, 2021 12:28 am
Hi;
I am trying to initiate the zmfilter.pl from a bash script but I need to be able to specify a particular event Id number.
What I am doing is (via a cron job) scanning the Events table for events with the Archived flag set. From this query, I build a file with a list of event Id's that are marked as Archived. I would then like to invoke the zmfilter.pl routine and supply a filter number AND an individual event Id. The filter would then upload the event (via FTP) to my archive machine.
I do have a filter that uploads archived events however, I would like to be able to do that on individual events one-at-a-time as opposed to uploading all archived events as a batch in a single zmfilter.pl call.
Any direction/help would be very much appreciated.
I am trying to initiate the zmfilter.pl from a bash script but I need to be able to specify a particular event Id number.
What I am doing is (via a cron job) scanning the Events table for events with the Archived flag set. From this query, I build a file with a list of event Id's that are marked as Archived. I would then like to invoke the zmfilter.pl routine and supply a filter number AND an individual event Id. The filter would then upload the event (via FTP) to my archive machine.
I do have a filter that uploads archived events however, I would like to be able to do that on individual events one-at-a-time as opposed to uploading all archived events as a batch in a single zmfilter.pl call.
Any direction/help would be very much appreciated.