bug-parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU Parallel Bug Reports --sshlogin is intolerant about trailing spaces.


From: Tom Rutledge
Subject: GNU Parallel Bug Reports --sshlogin is intolerant about trailing spaces.
Date: Fri, 2 Jan 2015 13:51:02 -0800
User-agent: Microsoft-MacOutlook/14.4.7.141117


--sshlogin is intolerant about trailing spaces. 


Error text : 

ssh: Could not resolve hostname ssh: nodename nor servname provided, or not known


Parallel version:

bash-3.2$ parallel --version
GNU parallel 20141122
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014 Ole Tange and Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.

Web site: http://www.gnu.org/software/parallel

When using programs that use GNU Parallel to process data for publication please cite:

O. Tange (2011): GNU Parallel - The Command-Line Power Tool, 
;login: The USENIX Magazine, February 2011:42-47.

Or you can get GNU Parallel without this requirement by paying 10000 EUR.
bash-3.2$ 

Which seems more recent than I can find on : http://alpha.gnu.org/gnu/parallel/  , which disturbs me somewhat.  I guess this one came through sysutils/parallel


Error example :   Note the trailing ‘ ‘ after localhost. 

Failing case : 

bash-3.2$ echo "haha" | parallel --verbose  --no-notice  --sshlogin "ssh -l tom.rutledge localhost "  uptime "#"
ssh: Could not resolve hostname ssh: nodename nor servname provided, or not known
parallel: Warning: Could not figure out number of cpus on ssh -l tom.rutledge localhost  (). Using 1.
ssh -tt -oLogLevel=quiet ssh -l tom.rutledge localhost   'eval `echo $SHELL | grep "/t\{0,1\}csh" > /dev/null  && echo setenv PARALLEL_SEQ '$PARALLEL_SEQ'\;  setenv PARALLEL_PID '$PARALLEL_PID'  || echo PARALLEL_SEQ='$PARALLEL_SEQ'\;export PARALLEL_SEQ\;  PARALLEL_PID='$PARALLEL_PID'\;export PARALLEL_PID` ;'  tty\ \>/dev/null\ \&\&\ stty\ isig\ -onlcr\ -echo\;uptime\ \#\ haha;
bash-3.2$ 

Passing case : 

bash-3.2$ 
bash-3.2$ echo "haha" | parallel --verbose  --no-notice  --sshlogin "ssh -l tom.rutledge localhost"  uptime "#"
ssh -l tom.rutledge -tt -oLogLevel=quiet localhost  'eval `echo $SHELL | grep "/t\{0,1\}csh" > /dev/null  && echo setenv PARALLEL_SEQ '$PARALLEL_SEQ'\;  setenv PARALLEL_PID '$PARALLEL_PID'  || echo PARALLEL_SEQ='$PARALLEL_SEQ'\;export PARALLEL_SEQ\;  PARALLEL_PID='$PARALLEL_PID'\;export PARALLEL_PID` ;'  tty\ \>/dev/null\ \&\&\ stty\ isig\ -onlcr\ -echo\;uptime\ \#\ haha;
13:28  up 21 days,  4:28, 3 users, load averages: 4.70 5.99 6.31
bash-3.2$ 


Platform : 
bash-3.2$ uname -a
Darwin trutloakosxl1.bigfish.lan 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
bash-3.2$ 

Videos and examples: 

I have watched the videos and reviewed the examples.   I understand that  the BNF '[sshcommand [options]] address@hidden may not explicitly contain whitespace, especially at the end.   Parallel will simpler for beginners to use and more resistant to whitespace in datafilee if —sshlogin is made to be tolerant of trailing whitespace. 


Thank you for your time. 
Tom Rutledge 












 

Big Fish Games, Inc. A New Game Every Day! ®



reply via email to

[Prev in Thread] Current Thread [Next in Thread]