Re: command reordering

This is a discussion on Re: command reordering within the OpenSSH Development forums, part of the Networking and Network Related category; --===============1337932583== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2005
Thomas Binder
 
Posts: n/a
Default Re: command reordering


--===============1337932583==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v"
Content-Disposition: inline


--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi!

On Tue, Mar 01, 2005 at 09:07:24AM -0500, matthew sporleder wrote:
> ssh myname@myhost 'printf %s: `hostname` ; ssh -V && printf %s:
> `hostname` ; php -v'
>=20
> Will return something like:
>=20
> myhost:myhost:OpenSSH_3.5etcetcetc
> 4.x.y
>=20
>=20
> Why is ssh putting the printf's together?


It doesn't - you have just overlooked that ssh -V sends its output
to stderr, while printf and php -v send it to stdout. Changing
your command line to

ssh myname@myhost 'printf %s: `hostname` ; ssh -V 2>&1 && printf %s: `hostn=
ame` ; php -v'

should work. (Assuming something sh-compatible as your login
shell, won't work that way with csh.)


Ciao

Thomas

--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (IRIX64)

iD8DBQFCJHnsJ+FIGCekM7URAtsFAKDWZbctYBJAsrXfNrUpJh eLPmtOqwCeJdzt
uu3vtU7twjv119oDNjiCtF4=
=IBgK
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--


--===============1337932583==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev

--===============1337932583==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0