command reordering

This is a discussion on command reordering within the OpenSSH Development forums, part of the Networking and Network Related category; ssh myname@myhost 'printf %s: `hostname` ; ssh -V && printf %s: `hostname` ; php -v' Will return something like: myhost:...


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
matthew sporleder
 
Posts: n/a
Default command reordering

ssh myname@myhost 'printf %s: `hostname` ; ssh -V && printf %s:
`hostname` ; php -v'

Will return something like:

myhost:myhost:OpenSSH_3.5etcetcetc
4.x.y


Why is ssh putting the printf's together? This also works with any
combination of ;/&& vs echo -n/printf.

I found this site talking about rsync and getopt problems, but I
haven't figured out the work-around yet:
http://lists.samba.org/archive/rsync...er/010831.html

--
_Matt

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
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 01:07 AM.


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