回文章列表
作者chiiren.bbs@ptt.cc (快樂社會中�) 看板: linux
標題Re: [問題] 挑戰Solaris下寫程式
時間批踢踢實業 (2008/05/26 Mon 11:01:07)
※ 引述《kenduest.bbs@bbs.sayya.org (小州)》之銘言:
: ※ 引述《chiiren.bbs@ptt.cc (快樂社會中�)》之銘言:
: > -----------------------------------------------------------
: > 或是在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
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻