I have a bash script called "myScript.bash" with:
#!/bin/bash
( sleep 30 && /usr/local/bin/php /home/scripts/misc/code.php ) &
( sleep 60 && /usr/local/bin/php /home/scripts/misc/code.php )
I then do the following to make the bash script executable:
chmod +x /usr/local/bin/myScript.bash
It should run "code.php" every 30 seconds when I enter the following in the CLI:
myScript.bash
Instead, I get:
-bash: myScript.bash: command not found.
What am I doing wrong?
ls -l /usr/local/bin/myScript.bash
say?