Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Set up a kiosk machine with an auto-open folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Set up a kiosk machine with an auto-open folder
Authored by: adams4 on Nov 16, '03 11:17:21AM

Actually, the error message will always appear if you use the command rm -f * when there are no files in the directory. If there were some real file name involved, such as rm -f doesnotexist.txt, then yes, there's no error message produced because of the -f flag. But using a wild card (in this case, *) will produce an error, even with -f.

Of course, try to account for files that people will download, and you'll find you have no choice but to use rm -f *.

---
--Adam Spector.

[ Reply to This | # ]