挑戰Solaris下寫程式 - Linux

James avatar
By James
at 2008-05-26T11:01

Table of Contents

※ 引述《[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


--
Tags: Linux

All Comments

Daph Bay avatar
By Daph Bay
at 2008-05-30T00:11
你確定你的solaris也是用bash嗎

請問有關 OpenWebMail 的附檔傳輸限制

Hamiltion avatar
By Hamiltion
at 2008-05-26T10:49
※ 引述《PolarChen (whole new life!!)》之銘言: : 請問一下 : 自己架設在 linux 主機上的 OpenWebMail : 單封信件附加檔案的大小可以and#34;超過and#34; 50 MB 嗎? : 可以的話 : 要到 /etc/mail 的哪邊去改呢? : 謝謝!! ...

請問為何大多數的板友用Ubuntu?

Dora avatar
By Dora
at 2008-05-26T10:26
建議可以去買鳥哥的書 至於你要灌哪套 Linux 這要先確定你要的目的是什麼 若你是要硬體支援性高,易用,那麼 ubuntu 適合你 若你是要研究 embedded linux 恐怕你要先了解 linux 的基礎 要了解 linux 的基礎, 很多人都是從指令開始學 embedded linux 初期幾乎不 ...

請問有關 OpenWebMail 的附檔傳輸限制

Ursula avatar
By Ursula
at 2008-05-26T02:12
請問一下 自己架設在 linux 主機上的 OpenWebMail 單封信件附加檔案的大小可以and#34;超過and#34; 50 MB 嗎? 可以的話 要到 /etc/mail 的哪邊去改呢? 謝謝!! -- █ ◤◢███◣◥◤◢█◣◥██◤◢█ █ ◤◢█◣◥█◤◢██ ◥ By ...

debian 的 net install

Mason avatar
By Mason
at 2008-05-26T00:55
http://0rz.tw/ce47H 看了半天 還是不是很懂 以台灣adsl的環境 可以安裝嗎? 我以前裝過完整版的 都是裝到最後才裝ppoe的網路 它提供的這個方法 可以先裝好adsl撥接 再裝其他的元件嗎? - ...

有關NFS的權限問題

Agatha avatar
By Agatha
at 2008-05-26T00:24
今天我碰到的問題是這樣的 在/etc/exports設定了要分享的目錄 /A_DIR /B_DIR 我希望讓ip是10.100.10.*可以mount A_DIR,但不能mount B_DIR 這要怎麼做呢?? 我印象中是/A_DIR -network 10.100.10.* 這樣成功了讓10.10 ...