If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > AIX file cannot be deleted.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-13-07, 19:50
drogomoss drogomoss is offline
Registered User
 
Join Date: Mar 2007
Posts: 30
Arrow AIX file cannot be deleted.

Hello Folks,

Good day.

I created a text file in AIX. Filename is SCPBackup.cfg with a mode of 777.
Now I no longer need it. I used rm -f <filename> to remove it but it cannot be deleted. It returns this error.

rm: SCPBackup.cfg: A file or directory in the path name does not exist.

But it does exist.

total 3
-rwxrwxrwx 1 aaaaaaa aaaaaaaa 150 Mar 13 14:59 SCPBackup.cfg
-rwxrwxrwx 1 aaaaaaa aaaaaaaa 808 Mar 13 19:49 scpbkp.sh

Now I have to delete it if not for aesthetics... for my peace of mind. Any other way to delete this file?



Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 03-14-07, 01:59
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
The file name might have other characters at the end e.g. spaces, Try
rm -i SCPBackup.cfg*
Reply With Quote
  #3 (permalink)  
Old 03-14-07, 05:31
drogomoss drogomoss is offline
Registered User
 
Join Date: Mar 2007
Posts: 30
Cool. Thanks it worked. Many many thanks. I wonder how that extra charcter ended up there.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On