bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #31944, --cleanup option does not account...

 
 

bug #31944: --cleanup option does not account for directory specified by --workdir

Submitted by:  None
Submitted on:  Tue 21 Dec 2010 05:05:17 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 02 Jan 2011 09:14:39 PM UTC, comment #1:

Fixed in [a16d120711e]

Ole Tange <tange>
Project Administrator
Tue 21 Dec 2010 05:05:17 PM UTC, original submission:

eg:

$ ls -d *.wav | parallel -j+0 -Ssauce,: --workdir /tmp --cleanup --transfer --return {.}.flac /usr/bin/flac {}

.. does the following:

ssh sauce mkdir -p /tmp; rsync -rlDzRE -essh ./ziggy001.wav sauce:/tmp;ssh sauce PARALLEL_SEQ=$PARALLEL_SEQ\;export PARALLEL_SEQ\;PARALLEL_PID=$PARALLEL_PID\;export PARALLEL_PID\; cd\ /tmp\ \&\&\ /usr/bin/flac\ ziggy001.wav;_EXIT_status=$?; rsync -rlDzRE -essh --remove-source-files sauce:/tmp/./ziggy001.flac ./;ssh sauce rm -f ziggy001.wav ; exit $_EXIT_status;

.. the final ssh should change to working dir first before invoking rm -f so that transferred files are removed, ie in the above case:

ssh sauce "cd /tmp && rm -f ziggy001.wav"

Anonymous

 

(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 (Posted a comment)
  •  

    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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 02 Jan 2011 09:14:39 PM UTCtangeOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1