Skip to content
Advertisement

Bash Script is not working [closed]

When i am writing the script like this

JavaScript

the script is working.

but when i am trying to write it like this:

JavaScript

the pidof and the if are not working.

Advertisement

Answer

Unless you copied all commands to /home/root, it is pretty clear what is wrong.

JavaScript

should (probably) be:

JavaScript

or use full path-names, like in:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement