خرید بک لینک

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 php part).

Will this work; any mistakes in the syntax? And let's not forget my question about the execution following ..

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 27 اسفند 1394 ساعت: 3:33

صفحه بندی