START=$(date +%s) # do something # start your script work here ls -R /etc > /tmp/x rm -f /tmp/x # your logic ends here END=$(date +%s) DIFF=$(( $END - $START )) echo "It took $DIFF seconds"
Bash Время выполнения скрипта
3 комментария
START=$(date +%s) # do something # start your script work here ls -R /etc > /tmp/x rm -f /tmp/x # your logic ends here END=$(date +%s) DIFF=$(( $END - $START )) echo "It took $DIFF seconds"
01 03 */2 * * mysqldump -hlocalhost -uname -ppassword database > /home/name/backup/`date +\%Y-\%m-\%d`-database.sql 10 03 */2 * * find /home/name/backup/ -name "*.sql" -mtime +10 -delete
Код «VIZIT» — *#4230 или *#423
Код «CYFRAL» — (буква — «B») 100 (буква — «B») 7272
Код «METACOM» — 65535-1234-8
Код «ELTIS» — (буква — «B») 1234-2-1-3-3-123
sudo dpkg -l | more
sudo /etc/init.d/srv1cv82 stop
sudo dpkg -r 1c-enterprise82-ws-nls
sudo dpkg -r 1c-enterprise82-ws
sudo dpkg -r 1c-enterprise82-server-nls
sudo dpkg -r 1c-enterprise82-server
sudo dpkg -r 1c-enterprise82-common-nls
sudo dpkg -r 1c-enterprise82-common
cd /home/lexit/1c_rel_8.2.17.157
wget http://users.v8.1c.ru/getdist.jsp?path=Platform/8_2_17_157/deb64.tar.gz&id=Platform82&ver=8.2.17.157
sudo dpkg –i 1c-enterprise8-*.deb
sudo /etc/init.d/srv1cv82 start