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_at_total.net
"God only knows if god exists"
Received on Sat Jan 11 1997 - 08:01:40 NZDT