home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!udel!rochester!galileo.cc.rochester.edu!ub!acsu.buffalo.edu!vidya-v
- From: vidya-v@acsu.buffalo.edu (vidyaranya)
- Newsgroups: comp.unix.shell
- Subject: file removal problem solved.
- Message-ID: <BtMJuK.KEH@acsu.buffalo.edu>
- Date: 27 Aug 92 04:15:56 GMT
- Sender: nntp@acsu.buffalo.edu
- Organization: UB
- Lines: 34
- Originator: vidya-v@beatrix.eng.buffalo.edu
- Nntp-Posting-Host: beatrix.eng.buffalo.edu
-
-
- Thanks to:
- jimr@col.hp.com
- silvert@cs.dal.ca
- ant@palm.cray.com
- msb@sq.com
-
- for responding.
-
- The solution I finally used came from our system administrator.
- I had already tried the 'rm -i' and rm A* options and posted
- when they failed.
-
- The solution I used needed a simple C program and an Octal
- dump of the filename to specify in the C program.
- Here it is:
-
- #include <stdio.h>
-
- main()
- {
-
- char *string = "\101\356\377\114\116\271\002\370\116\271\002\240\055\100\377\214\055\012";
- char buf[1024];
-
- sprintf(buf, "rm %s", string);
- system(buf);
- exit(0);
- }
-
- This seems like a sure shot way of removing the file when all attempts
- to fool the shell fail.
-
- Vidyaranya
-