作者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