* Cannot remove file....
@ 1997-01-11 6:55 Guy Dallaire
0 siblings, 0 replies; only message in thread
From: Guy Dallaire @ 1997-01-11 6:55 UTC (permalink / raw)
To: tru64-unix-managers
Hello,
I've found some strange files in my /var/adm directory. I know where they
come from (A shell script I use to rotate various log files each month) but
I can't figure how my script have created them and how to REMOVE them.
If I issue a ls -l, here's what I get:
ls -al
total 281
drwxr-xr-x 12 adm adm 8192 Jan 10 20:44 .
drwxr-xr-x 25 root system 8192 Jan 11 00:36 ..
-rw-r--r-- 1 root adm 0 Jan 3 14:10 .2.gz? #mv
.1.gz .2.gz? echo mv
-rw-r--r-- 1 root adm 0 Jan 3 14:10 .3.gz? #mv
.2.gz .3.gz ? echo mv
-rw-r----- 1 adm adm 1539 Jul 25 1995 .login
-rw-r----- 1 adm adm 1539 Jul 25 1995 .new...login
-rw-r----- 1 adm adm 1546 Jul 25 1995 .new...profile
-rwxr-xr-x 1 root system 0 Jul 24 1995 .new..utmp
-rwxr-xr-x 1 adm adm 0 Jul 24 1995 .new..wtmp
-rw-r----- 1 adm adm 1546 Jul 25 1995 .profile
-rw-r----- 1 adm adm 1539 Jul 25 1995 .proto...login
...
As you can see, I have to strange files (which actually are debugging code I
once put in my script). Looks like my script really needed debugging.
I can't figure how to remove a file named '.2.gz? #mv .1.gz .2.gz? echo mv"
I've tried rm -i * but the system ignore these files (it does not prompt me
to delete them). I tried various format like rm "*2*" but the system says
"not found". How can I get rid of it ?
I think there is a way to delete file by using their inode number (that I
can obtain with ls -i) but I don't remember exactly how to do this.
Any help would be appreciated.
P.S.: Does anyone know what could cause a script to behave like this ?
Guy Dallaire
dallaire@total.net
"God only knows if god exists"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-01-11 6:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-11 6:55 Cannot remove file Guy Dallaire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox