[gull] Progress pour cp
Christophe Pochon
music at christophe-pochon.com
Mon Oct 3 08:36:32 CEST 2011
Ce que je ne comprends pas (entre autres, mais c'est pas grave) dans cette
proposition, c'est comment la fonction point va se répéter. En lisant le
code, j'ai l'impression qu'elle va juste attendre deux secondes, afficher un
point, et se terminer..... Il faudrait une boucle, non ?
Merci,
Christophe Pochon
http://www.christophe-pochon.com
Le 30 septembre 2011 16:16, Daniel Cordey <dc at mjt.ch> a écrit :
> function point
> {
> sleep $1
> echo -n '.'
> }
>
> {
> point 2
> }&
>
> bproc=$!
>
> for i in files*
> do
> cp ${i} ...
> done
>
> kill ${bproc}
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.linux-gull.ch/pipermail/gull/attachments/20111003/48498433/attachment.htm>
More information about the gull
mailing list