Opened 8 years ago

Closed 5 years ago

#4912 closed defect (fixed)

line 34 of run_scan.sh uses rm incorrectly

Reported by: phobos Owned by: mikeperry
Priority: Medium Milestone:
Component: Core Tor/Torflow Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by phobos)

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

Child Tickets

Change History (4)

comment:1 Changed 8 years ago by phobos

Description: modified (diff)

comment:2 Changed 8 years ago by phobos

Description: modified (diff)

comment:3 Changed 8 years ago by phobos

Description: modified (diff)

comment:4 Changed 5 years ago by aagbsn

Resolution: fixed
Status: newclosed

Rewritten by weasel in #6385

Note: See TracTickets for help on using tickets.