Linux commands - Bash scripts
#! "Hash-Bang" or "She-Bang" is a convention so the *nix (Unix/Linux) shell knows what kind of interpreter to run. Seems not to be needed if you not referring to another interpreter like python "#!/bin/python"
#!/bin/bash
#Example
cd /some_path
php some_file.php
php another_file.php >> some_results.log
#in cron/crontab
10 0 * * * /scripts/nighty-cron.sh > /dev/null 2>&1
#on command line
cd /scripts
./nighty-cron.sh
Knowledge keywords: