看板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