periodic/monthly等資料夾下的script檔名 - Linux
By Joseph
at 2010-02-10T15:02
at 2010-02-10T15:02
Table of Contents
※ 引述《[email protected] (南洋大兜蟲)》之銘言:
: 前面總是有三個數字
: 那是為了執行順序才命名的嗎?
: 還是另有原因?
: ex. 190.ntpdate
就如同您說的,是為了順序才命名為這樣
periodic 會根據後面所搭配的參數(daily|monthly|security|weekly)去找尋該資料夾
根據該資料去做 for 的讀取:
for file in $dir/*
do
if [ -x $file -a ! -d $file ]
then
echo $file
fi
done
--
PHP MVC CodeIgniter 繁體中文手冊: http://tinyurl.com/mduyv8
PHP MVC CodeIgniter 繁體中文討論區:http://tinyurl.com/yayzoz8
PHP MVC CodeIgniter 中文官方網站: http://tinyurl.com/yatds8n
Appleboy Blog 電腦技術: http://blog.Wu-Boy.com
--
: 前面總是有三個數字
: 那是為了執行順序才命名的嗎?
: 還是另有原因?
: ex. 190.ntpdate
就如同您說的,是為了順序才命名為這樣
periodic 會根據後面所搭配的參數(daily|monthly|security|weekly)去找尋該資料夾
根據該資料去做 for 的讀取:
for file in $dir/*
do
if [ -x $file -a ! -d $file ]
then
echo $file
fi
done
--
PHP MVC CodeIgniter 繁體中文手冊: http://tinyurl.com/mduyv8
PHP MVC CodeIgniter 繁體中文討論區:http://tinyurl.com/yayzoz8
PHP MVC CodeIgniter 中文官方網站: http://tinyurl.com/yatds8n
Appleboy Blog 電腦技術: http://blog.Wu-Boy.com
--
Tags:
Linux
All Comments
Related Posts
考過LPI的人可以免費申請NCLA的證照
By Connor
at 2010-02-10T13:04
at 2010-02-10T13:04
支援旋轉螢幕的顯卡
By Liam
at 2010-02-10T12:32
at 2010-02-10T12:32
請問一下書..
By Ethan
at 2010-02-10T08:51
at 2010-02-10T08:51
send command over ssh
By Lucy
at 2010-02-10T07:47
at 2010-02-10T07:47
send command over ssh
By Daniel
at 2010-02-10T01:35
at 2010-02-10T01:35