Command Line Problems
I am running a script with an IF statement but I need it to wait 45seconds before it starts. But with the sleep there it works but skips my if statement for some reason and shuts down even though firefox is open. Any thoughts?
Code:
#!/bin/sh -- http://www.linuxquestions.org/questi...rsions-631968/ |
I don't understand the purpose of this script. I think you want something which does this, right?
I think what you want to do is change the id statement like this: Code:
if pidof firefox-bin; then Code:
if pidof firefox-bin > /dev/null; then |
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
http://www.linuxquestions.org/questi...8/#post3107494 |
All times are GMT -5. The time now is 08:42 PM. |