parallel
[Top][All Lists]
Advanced

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

cleanup with directories instead of files (recursive rm)


From: Benjamin Leutner
Subject: cleanup with directories instead of files (recursive rm)
Date: Thu, 15 Dec 2016 18:23:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Hi,

I'm doing some calculations on other machines which result in a folder.
Now when I try to return the folders from remote it works perfectly:

# This returns the folder test.dir
parallel --sshloginfile ~/mymachines --return {}.dir 'mkdir {}.dir' ::: "test"

However --cleanup does not work, since it is a folder.
parallel --sshloginfile ~/mymachines --cleanup --return {}.dir 'mkdir {}.dir' ::: "test"
rm: cannot remove '/home/myuser/test.dir': Is a directory

Is there a way to include the recursive flag (-r) for the clean-up operation?

I know I can tar the folder but I'd like to have as little overhead as possible and I need them as folders for further processing anyways.

I'm looking forward to your input,
Best,
Benjamin



reply via email to

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