Search Results

Search: Posts Made By: armatron
1,611
Posted By armatron
I noticed that, thanks. I also try with !=, but...
I noticed that, thanks. I also try with !=, but since I would trigger script very fast, even before previous script finish kill process, then somehow previous triggered script can kill next triggered...
1,611
Posted By armatron
If statement in awk
I run my script "switch.sh" repeatedly (within 30 seconds). Each time script is triggered, script itself should kill all previous process.

Here is my code:
for pid in $(ps -fe | grep 'switch.sh'...
4,186
Posted By armatron
Thanks for your ideas. It finally works. Here is...
Thanks for your ideas. It finally works. Here is my script:

switch_hdmi.sh:
#!/bin/bash
echo $(date) ": executing switch hdmi... $1 with pid: $$" >> /home/pi/temp_rc

time_delay=5

# create...
4,186
Posted By armatron
I dont want to kill the whole script, because...
I dont want to kill the whole script, because this would stop the timer and not restart it.

I assume I should kill only subproces "ALRM" (or whatever that means) to exit while loop and restart...
4,186
Posted By armatron
Thanks! I put code to my script but I can...
Thanks!

I put code to my script but I can not kill subprocess ALRM, so I have the same problem: timer doesn't restart back to 10s on condition "rc1_restart".

Here is my code:
#!/bin/bash
...
4,186
Posted By armatron
Exit while loop on execute script
Hi,

I have first script which on IR remote command event execute the second script. If the second script is executed, it display echo "timeout expired" after 10s. This works as expected.
But I...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 12:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy