Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I program, therefore I am.


devel / comp.unix.shell / Re: Running local bash script on remote system.

SubjectAuthor
o Re: Running local bash script on remote system.Helmut Waitzmann

1
Re: Running local bash script on remote system.

<83zgy0o5bc.fsf@helmutwaitzmann.news.arcor.de>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=3644&group=comp.unix.shell#3644

 copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!aioe.org!wVWNghiHzLvgUGWCM9zeZQ.user.gioia.aioe.org.POSTED!not-for-mail
From: nn.throt...@xoxy.net (Helmut Waitzmann)
Newsgroups: comp.unix.shell
Subject: Re: Running local bash script on remote system.
Date: Thu, 15 Apr 2021 00:43:35 +0200
Organization: Aioe.org NNTP Server
Lines: 23
Message-ID: <83zgy0o5bc.fsf@helmutwaitzmann.news.arcor.de>
References: <c99eb3b7-9cd3-439b-8b4e-98cca62053b4n@googlegroups.com>
Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
NNTP-Posting-Host: wVWNghiHzLvgUGWCM9zeZQ.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Complaints-To: abuse@aioe.org
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
Mail-Copies-To: nobody
X-Notice: Filtered by postfilter v. 0.9.2
Mail-Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
Cancel-Lock: sha1:SoTUdZRepAfDozWIbu3RgUQc/0o=
 by: Helmut Waitzmann - Wed, 14 Apr 2021 22:43 UTC

"hongy...@gmail.com" <hongyi.zhao@gmail.com>:

>For Running local bash script on remote system, I noticed the
>following method suggested on
><https://www.cyberciti.biz/faq/linux-unix-osx-bsd-ssh-run-command-on-remote-machine-server/>:
>
>$ ssh user@server 'bash -s' < /path/to/script.sh
>
>But I still don’t know what is the difference between the above
>command and the following one:
>
>$ ssh user@server "bash -s" < /path/to/script.sh
>
>Any hints would be greatly appreciated.
>

It's the same difference as the quotes in the following two
commands:

printf '%s' 'bash -s' | od -v -A n -t c

printf '%s' "bash -s" | od -v -A n -t c

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor