Re: doing jobs at an remote machin, how to do it in an cshell scripts ?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Well, you *can't* run local binaries on a remote machine.
Maybe you could rcp the local script to the remote machine and then
execute it.
On 10/22/06 22:26, Aidan Shaw wrote:
> 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:
>>
> 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)
iD8DBQFFPEU/S9HxQb37XmcRAsf/AKCyuXYZxWP0dahSqt6dz/FPS6M0rwCfS68Y
+szy8dgvK4Ep232wsTtni1A=
=I1Ep
-----END PGP SIGNATURE-----
Reply to: