-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/18/06 07:59, Aidan Shaw wrote: > Hi List > > I want to write a simple c-shell scripts whick will performe the following > task: > > 1. remote login to an machine named "RemotePC05" > rsh RemotePC05 ( no passward is needed in our network ) > > 2. at RemotePC05, I wnat do several things, suck as du -sh > /pathto/dirname; touch filename > > 3. exit RemotePC05, and come back to the terminal I evoke this scripts. > > > > Of couse I do some homework before I aske in this list. I can do the job by > writing an simple Makefile > > ------------------------------------ > 05: > @rsh RemotePC05 " touch filename" > -------------------------------------- > > > the problem is, I need an pretty and consice scripts in c-shell. can > anybody > help me? > > Any suggestion is welcom.
the csh interpreter would have to be on RemotePC05, as would the script and you'd do something like: @rsh RemotePC05 /bin/csh /usr/local/bin/some.script.csh But then the same script would have to be on each machine. - -- Ron Johnson, Jr. Jefferson LA USA Is "common sense" really valid? For example, it is "common sense" to white-power racists that whites are superior to blacks, and that those with brown skins are mud people. However, that "common sense" is obviously wrong. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFNjTHS9HxQb37XmcRAr6OAJ9emmssAG98kXYYPF3nfue8H2Jg3gCeOUVJ l4vJrrKmcc1C6gYKnKZc8Yc= =CW8p -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]