๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#21030
From: Marc SCHAEFER
Date: Fri, 20 Aug 1999 00:00
23 lines
1172 bytes
jean-christophe PACCHIANA <pacchian@club-internet.fr> wrote:
> rsh cible ๏ฟฝl root ksh < script param-1 param-2

Your arguments are wrong. Your ``-'' is not shown as a standard ``-''
here.
   rsh cible -l root 'script param-1 param-2'

You need script to start with

   #! /bin/ksh

(left flushed)

and the script to be +x

Alternatively, something like this might work too:

   rsh cible -l root '/bin/ksh script param-1 param-2'

> and of course it๏ฟฝs wrong !

warning, your ``''' character is wrong (apostrophe). This looks
like the wrong one that MS-WORD sometimes produces.
Technical Details
Message-ID: <7pirk0$4on$1@vulcan.alphanet.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: Marc SCHAEFER <schaefer@alphanet.ch>
Subject: Re: I want to execute a script with parameter by rsh on a remote machine.
Date: 1999/08/20
Message-ID: <7pirk0$4on$1@vulcan.alphanet.ch>
X-Deja-AN: 515021318
Content-Transfer-Encoding: 8bit
References: <37BC1CE7.D52223BD@club-internet.fr>
Organization: ALPHANET NF -- Not for profit telecom research
Content-Type: text/plain; charset=ISO-8859-1
Mime-Version: 1.0
Newsgroups: ch.comp.os.linux