Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Unix file

Status
Not open for further replies.

Rvir

Programmer
May 16, 2007
18
US
One of my ETL process is creating a reject file on unix box with rw rw rw permissions. I tried to view the data but it doesnt show up anything on vi editor. I tried to remove the file but it doesnt work. Please advise me on this
 
Can you paste the output of ls -l?

What error do you get when you remove the file and it doesn't work?

Annihilannic.
 
Is the file empty? ie 0 bytes in size? Can you cat filename or pg filename?

I want to be good, is that not enough?
 
when i do rm -rf on the file it doesnt show any error but it doesnt remove the file too. When i do ls -l it shows up the file.
 
You shouldn't use -rf habitually... something really bad could happen one day. What happens when you try rm filename instead? The -f option will hide any error messages that might have been displayed.

Also please copy and paste the output of ls -l so we can see it.

Annihilannic.
 
Are you sure the filename doesn't have any special/control characters in it which would prevent rm and vi actually finding it?

I want to be good, is that not enough?
 
Hi Rvir ,

If the file is still giving you issues... can you run these and give the output:

Code:
file [i]your_file[/i]

fuser [i]your_file[/i]

Good Luck
DrD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top