I have a folder:
Code: Select all
root@023c028759ee:/# ls -l /var/www/scripts/
total 8
-rwxrwxr-x 1 1000 1000 118 Mar 12 22:48 trigger.sh
-rwxrwxr-x 1 1000 1000 32 Mar 12 23:08 zm-approach
-rw-rw-r-- 1 1000 1000 0 Mar 11 00:37 zm-package
Code: Select all
root@e59f8d6fac75:/# zmfilter.pl --filter "trigger approach"
03/12/24 23:08:37.748207 zmfilter[822468].INF [main:179] [Scanning for events using filter 'trigger approach']
03/12/24 23:08:37.873674 zmfilter[822468].INF [main:1061] [Executing '/var/www/scripts/trigger.sh zm-approach /data/events/2/2024-03-11/20345']
03/12/24 23:08:37.880845 zmfilter[822468].INF [main:1061] [Executing '/var/www/scripts/trigger.sh zm-approach /data/events/2/2024-03-11/20347']
Code: Select all
root@023c028759ee:/# cat /var/www/scripts/trigger.sh
#!/bin/bash
#--- create a trigger for host processing
#set -x
#source ~/.bash_trace
cd /var/www/scripts
echo $2 > $1
Code: Select all
Execute command on all matches[b]:[/b]
/var/www/scripts/trigger.sh zm-approach
Code: Select all
3/12/24, 11:58:43 PM EDT zmfilter_6 529 ERR Command '/var/www/scripts/trigger.sh zm-package /data/events/2/2024-03-12/20575' exited with status: 1
And how can I succeed in getting the file created...
( On the host I have scripts waiting to further take action on the creation of this file...)
Thank you, Chris
p.s. Why can I not enter a colon in the text?