[tor-bugs] #4912 [Torflow]: line 34 of run_scan.sh uses rm incorrectly
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Sun Jan 15 14:32:59 UTC 2012
#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:
---------------------+------------------------------------------------------
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>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list