看板Linux
標 題Re: [問題] 挑戰Solaris下寫程式
發信站SayYA 資訊站 (Mon May 26 00:45:58 2008)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!News.Math.NCTU!SayYa
※ 引述《[email protected] (快樂社會中꼩》之銘言:
> -----------------------------------------------------------
> 或是在Linux下cptest.sh
> -------------------------------------------------------------
> while (true)
> do
> cp /home/* /test/
> diff /home/ /test/ >>/checkdiff.log
> rm -rf /test/*
> done
> ---------------------------------------------------------------
> 這一些,我都作得到
> 可是,現在問題來了
> 要如何在Solaris下寫一個Script來作Copy/Compare的測試呢?
> 這個問題我想了蠻久的
不大懂你的問題,你的 code 無法在你的 solaris 用 bash 執行嗎 ?
另外 while (true) 在 bash 內改成 while true 或者是 while : 就可以了。
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
現代人普遍的現象: 「小學而大遺」、「捨本而逐末」
「以偏而概全」、「因噎而廢食」
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: kendlee.sayya.org