作者chiiren (快樂社會中꼩
看板Linux
標題Re: [問題] 挑戰Solaris下寫程式
時間Mon May 26 11:01:05 2008
※ 引述《[email protected] (小州)》之銘言:
: ※ 引述《[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 : 就可以了。
----------------------------------------------------------------------------
是的,在Solaris的Terminal無法執行cptest.sh
改寫while (true) => while true ------> 也無法執行
while (true) => while: ------> 也無法執行
它都會顯示cannot execute
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.216.174.46
1F:→ jlovet:你確定你的solaris也是用bash嗎 05/26 11:14