As a (Debian) Linux newbie I was wondering if there is a way to track the execution of a bash shell (.sh) script ? Like in Windows you trigger that with a
echo on command in a batch file.
My first 'unix' script ever, but I'm wondering if it will run as expected :
#!/bin/bash # switch maintenance mode off and go live with your ownCloud occpath='/var/www/owncloud' htuser='www-data' alias occ-do=sudo -u $htuser php $occpath/occ echo info: Switching to live-mode .. occ-do maintenance:mode --on`
the line I'm trying to create is like
sudo -u www-data php /var/www/owncloud/occ (occ is what should be executed, let's assume I don't need a path for the
Will this work; any mistakes in the syntax? And let's not forget my question about the execution following ..