把 crontab 備份到 /tmp/trully/crontab
crontab -l > /tmp/trully/crontab
由 /tmp/trully/crontab 還原 crontab
crontab /tmp/trully/crontab
Util_Reporter::log(LOG_MARK."\033[1;31m LIGHT_RED \033[m !!!", LOG_PATH); Util_Reporter::log(LOG_MARK."\033[1;32m LIGHT_GREEN \033[m !!!", LOG_PATH); Util_Reporter::log(LOG_MARK."\033[1;34m LIGHT_BLUE \033[m !!!", LOG_PATH); Util_Reporter::log(LOG_MARK."\033[1;33m YELLOW \033[m !!!", LOG_PATH); Util_Reporter::log(LOG_MARK."\033[1;35m Light Purple \033[m !!!", LOG_PATH); Util_Reporter::log(LOG_MARK."\033[1;36m Light Cyan \033[m !!!", LOG_PATH); Util_Reporter::log(LOG_MARK."\033[1;37m WHITE \033[m !!!", LOG_PATH);
--Inform=... Specify a template (BETA)
Usage: "MediaInfo --Inform=[xxx;]Text FileName"
xxx can be: General, Video, Audio, Text, Chapter, Image, Menu
Text can be the template text, or a filename
Filename must be in the form file://filename
See --Info-Parameters for available parameters in the text
(Parameters must be surrounded by "%" sign)
Example: "MediaInfo --Inform=Video;%AspectRatio% FileName"
Example: "MediaInfo --Inform=Video;file://Video.txt FileName"
and Video.txt contains
"%DisplayAspectRatio%" for Video Aspect Ratio.
Example: "MediaInfo --Inform=file://Text.txt FileName"
and Text.txt contains
"Video;%DisplayAspectRatio%" for Video Aspect Ratio.
"Audio;%Format%" for Audio Format.
# 將號嗎間的空白改由 @@ 取代, 這樣多筆才能順利傳進 php 裡
# MOBILES 是變數
argv=${MOBILES/ /@@}
# 將號嗎間的空白改由 @@ 取代, 這樣多筆才能順利傳進 php 裡 # /home/MOBILE_CONFIG.sh 是一個 file sed -e "s/@@/\ /g" /home/MOBILE_CONFIG.sh
tail -n 5 /home/logs/php/error.log