bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #36660, --workdir mkdir does not use...

 
 

bug #36660: --workdir mkdir does not use --sshlogin custom ssh

Submitted by:  Jay Hacker <jayqhacker>
Submitted on:  Thu 14 Jun 2012 07:13:16 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 14 Jun 2012 08:21:25 PM UTC, comment #3:

Fixed in [67d4db2].

Ole Tange <tange>
Project AdministratorIn charge of this item.
Thu 14 Jun 2012 07:54:29 PM UTC, comment #2:

For testsuite:

ssh () { echo foo; }
export -f ssh
parallel --workdir /tmp/foo/bar --transfer --sshlogin '//usr/bin/ssh localhost' ls -l ::: test.txt

Ole Tange <tange>
Project AdministratorIn charge of this item.
Thu 14 Jun 2012 07:17:34 PM UTC, comment #1:

Also, we could speed things up by only running the ssh mkdir command once for each host.

Jay Hacker <jayqhacker>
Thu 14 Jun 2012 07:13:16 PM UTC, original submission:

GNU parallel 20120522, Red Hat 5.8 x86_64

$ touch test.txt

$ parallel -vv --workdir /tmp/foo/bar --transfer --sshlogin '//usr/bin/ssh localhost' ls -l ::: test.txt
ssh localhost mkdir -p /tmp/foo/bar; rsync -rlDzR -e/usr/bin/ssh ./test.txt localhost:/tmp/foo/bar;/usr/bin/ssh localhost 'eval `echo $SHELL | grep -E "/(t)?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` ;' cd\ /tmp/foo/bar\ \&\&\ ls\ -l\ test.txt;

Note that it runs 'ssh localhost mkdir -p /tmp/foo/bar' and not '/usr/bin/ssh'. This of course results in an error if the 'ssh' in your path is not the one you want.

Jay Hacker <jayqhacker>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Updated the item)
  • -unavailable- added by jayqhacker (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Jun 2012 08:21:25 PM UTCtangeStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 14 Jun 2012 07:52:12 PM UTCtangeStatusNone=>Confirmed
      Assigned toNone=>tange

    Back to the top


    Powered by Savane 3.1-cleanup1