🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #21029

Re: I want to execute a script with parameter by rsh on a remote machine.

#21029
From: Martin Mustun
Date: Fri, 20 Aug 1999 00:00
29 lines
1364 bytes
jean-christophe PACCHIANA wrote:

> Paris le jeudi 19 ao�t 1999
>
> Hello,
>
> I want to execute a script with parameter by rsh on a remote machine.
> I do :
> rsh cible -l root ksh < script param-1 param-2
> and of course it?s wrong !
> Why ?
> How i do ?

hi

the synopsis is

rsh [-Kdnx] [-k realm] [-l username] host [command]

eg.: rsh cible -l root "script param-1 param-2"

rsh opens a sell by itself. if your script doesn't work with the standart
shell
you may put a "#!/bin/ksh" at the top of it.

furthermore i would recommend to use ssh (secure shell) instead of rsh.

hope this helps
martin
Technical Details
Message-ID: <37BCFA0B.A6FE582F@moritzi.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37BC1CE7.D52223BD@club-internet.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f4b73,2286deecf1c5d9c
X-Google-Attributes: gidf4b73,public
From: Martin Mustun <martin@moritzi.ch>
Subject: Re: I want to execute a script with parameter by rsh on a remote  machine.
Date: 1999/08/20
Message-ID: <37BCFA0B.A6FE582F@moritzi.ch>
X-Deja-AN: 515009183
Content-Transfer-Encoding: 8bit
References: <37BC1CE7.D52223BD@club-internet.fr>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: newsmaster@access.ch
X-Trace: pacifica.access.ch 935131660 17814 195.112.72.124 (20 Aug 1999 06:47:40 GMT)
Organization: Moritzi Werbung AG
Mime-Version: 1.0
NNTP-Posting-Date: 20 Aug 1999 06:47:40 GMT
Newsgroups: ch.comp.os.linux