
September 28th, 2012, 03:57 PM
|
|
Registered User
|
|
Join Date: Jul 2012
Posts: 6
Time spent in forums: 2 h 23 m 7 sec
Reputation Power: 0
|
|
|
C shell self-reference
I have a delete c shell scripts that deletes a bunch of things in some folders, and then chmod 666 's itself (to prevent accidental deleting) by explictitly writing the file name
Code:
#delete.csh
rm -rf work/
cd log
rm -rf *
cd ..
chmod 666 delete.csh
How can I get it to know what file it is, if that makes sense
Thanks
|