Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Quick question: how to call a script function from "find"? - using parallel
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 14 Jun 2017 13:53:20 +0200
  • Message-id: <ohr83g$tju$1@saturn.local.net>
Carlos E. R. wrote:

cer@Isengard:~/Fusion> time ./_Cambiar_permisos_Videos

real 0m10.549s
user 0m8.363s
sys 0m1.506s

10 seconds? Perhaps not worth parallelisizing for.

chmod: changing permissions of '/home/cer/Fusion/Videos/': Operation
not permitted
chmod: cannot access '/home/cer/Fusion/Videos/Major\ Crimes': No such
file or directory
chmod: cannot access '/home/cer/Fusion/Videos/Buffy,\ cazavampiros':
No such file or directory
chmod: cannot access '/home/cer/Fusion/Videos/Buffy,\
cazavampiros/Temporada\ 7': No such file or directory

[snip]
script is:

#!/bin/bash

#find /home/cer/Fusion/Videos/ -type d \
# -exec sudo chown cer:cer '{}' \; \
# -exec chmod u+r+w+x,g+w+x,o+r-w-x,+t '{}' \; \
# -exec sudo chown cer-g:cer '{}' \; \
# -exec sudo setfacl -m u:wwwrun:rx '{}' \;

find /home/cer/Fusion/Videos/ -type d | parallel parallel "sudo chown

one too many 'parallel's ? typo?



--
Per Jessen, Zürich (23.0°C)
http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >