[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: doing jobs at an remote machin, how to do it in an cshell scripts ?




Thank you Ron !
definitely, the resean I want to ask this question is that, we have 50 linux computers
When I want to run an CPU intensive job, I need to find the load average of each machine first. surpose remotePC05's load is very low, then I log on to that machine to do the job.

is I login to RemotePC05 manualy,   PC05/bin/csh  ...somescripts.csh, it do as I espected.

the problem how can I write an script, execute it in local computer,  the scripts automaticly login  to remotePC05 and run an task on remotePC05




On 10/18/06, Ron Johnson <ron.l.johnson@cox.net> wrote:
-----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 debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: