Hello @Teddy_Brewski ,
You start the script with "/usr/bin/nohup /opt/CPsuite-R81/fw1/scripts/highConn_v6e.sh &" .
This will start it in "background" -> "Nohup, short for no hang up is a command in Linux systems that keep processes running even after exiting the shell or terminal"
To kill the process you just do an "ps axf | grep high" to see processes that have high in the name - like below - and pick the pid of that process, then with a kill -9 'pid' - like kill -9 18890 you will kill that specific process (simple linux kowledge).
[“ kill -9” command sends a kill signal to terminate any process immediately when attached with a PID or a processname. It is a forceful way to kill/terminate a or set of processes. “ kill -9 <pid> / <processname>” sends SIGKILL (9) — Kill signal. This signal cannot be handled (caught), ignored or blocked.]
[Expert@AXXA-FW02:0]# ps axf | grep high 15271 pts/2 S+ 0:00 \_ grep --color=auto high 18890 ? S 1:02 /bin/sh /opt/CPsuite-R81/fw1/scripts/highConn_v6e.sh [Expert@AXXA-FW02:0]# |
The cron I give it as an example, still I have issues with Gaia starting it up, and I have to dig up a bit and see why it's not triggered automatically. Maybe some folder permissions, we'll see.
For the VSX, I need to understand a bit, like each VSX is separate if you run an "fw ctl pstat" you will see the results from that particular subsystem . If my understanding is correct, then yes, you can install/run that script in each instance, so it will collect reports per VSX instance . [sorry we don't do VSX]
Let me know if there are any other questions.
Thank you,
PS: in regards to Gaia "Job Schedule" can someone give a hint why a JOB with "sleep 2m && /usr/bin/nohup /opt/CPsuite-R81/fw1/scripts/highConn_v6c.sh &" is not starting, but manually I can without issues?