挑戰Solaris下寫程式 - Linux

Table of Contents

以前如果要在Windows下作Copy / Compare的測試
只要寫個批次檔cptest.bat
------------------------------------------------------
:start
copy c:\111.txt d:\
fc/b c:\111.txt d:\111.txt >>result.txt
del d:\111.txt
goto start
-----------------------------------------------------------
或是在Linux下cptest.sh
-------------------------------------------------------------
while (true)
do
cp /home/* /test/
diff /home/ /test/ >>/checkdiff.log
rm -rf /test/*
done
---------------------------------------------------------------

這一些,我都作得到
可是,現在問題來了
要如何在Solaris下寫一個Script來作Copy/Compare的測試呢?
這個問題我想了蠻久的


ps.以上的Windows和Linux寫出來順便跟大家分享,請大家幫我想想
如何在Solaris下寫出Script

萬分感謝

--

All Comments

Frederica avatarFrederica2008-05-30
script是看shell的吧... linux和solaris的shell應該差不多