showCategory('Bash');

Cron Job No Output

*/5 * * * * php -q /home/user/script.php > /dev/null 2>&1

Showing 1 lines of 3 total lines in this snippet.

Email from Cron Job

*/20 * * * * php -q /home/user/script.php | mail -s "Email Subject" you@yourdomain.com

Showing 1 lines of 3 total lines in this snippet.

Access folder as root

sudo -i
cd /path/folder
exit

Showing 3 lines of 4 total lines in this snippet.