[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #4912 [Torflow]: line 34 of run_scan.sh uses rm incorrectly



#4912: line 34 of run_scan.sh uses rm incorrectly
---------------------+------------------------------------------------------
 Reporter:  phobos   |          Owner:  mikeperry
     Type:  defect   |         Status:  new      
 Priority:  normal   |      Milestone:           
Component:  Torflow  |        Version:           
 Keywords:           |         Parent:           
   Points:           |   Actualpoints:           
---------------------+------------------------------------------------------
Description changed by phobos:

Old description:

> When running run_scan.sh to start a bwauth, the following output appears:
> {{{
> Killing off scanner 1.
> Killing off scanner 2.
> Killing off scanner 3.
> Killing off scanner 4.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> Waiting for 60 seconds to refresh tors...
> }}}
>
> Line 34 of run_scan.sh is missing the rm operands, it is currently
> {{{ find $i/scan-data/ -depth -type f -print | egrep -v --
> "-done-|\/.svn" | xargs -P 1024 rm }}}
>
> it should have -rf added to the end of that xargs rm statement, such that
> the correct line is
> {{{
> find $i/scan-data/ -depth -type f -print | egrep -v -- "-done-|\/.svn" |
> xargs -P 1024 rm -rf
> }}}

New description:

 When running run_scan.sh to start a bwauth, the following output appears:
 {{{
 Killing off scanner 1.
 Killing off scanner 2.
 Killing off scanner 3.
 Killing off scanner 4.
 rm: missing operand
 Try `rm --help' for more information.
 rm: missing operand
 Try `rm --help' for more information.
 rm: missing operand
 Try `rm --help' for more information.
 rm: missing operand
 Try `rm --help' for more information.
 Waiting for 60 seconds to refresh tors...
 }}}

 Line 34 of run_scan.sh is missing the rm operands, it is currently
 {{{
 find $i/scan-data/ -depth -type f -print | egrep -v -- "-done-|\/.svn" |
 xargs -P 1024 rm
 }}}

 it should have -rf added to the end of that xargs rm statement, such that
 the correct line is
 {{{
 find $i/scan-data/ -depth -type f -print | egrep -v -- "-done-|\/.svn" |
 xargs -P 1024 rm -rf
 }}}

--

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4912#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs