Computing.Net > Forums > Unix > Kornshell question

Kornshell question

Reply to Message Icon

Original Message
Name: plau18
Date: March 18, 2005 at 12:32:33 Pacific
Subject: Kornshell question
OS: AIX 5.3
CPU/Ram: ?
Comment:

Hello,

I am trying to find a way for testing if a file is still open and being written to by another process. Only process file when it is closed and completely done being written to. Is this possible using just kornshell?
Any insight is much appreciated.

Regards,
Patrick


Report Offensive Message For Removal


Response Number 1
Name: nails
Date: March 18, 2005 at 14:51:38 Pacific
Subject: Kornshell question
Reply: (edit)

Take a look at the fuser command


Report Offensive Follow Up For Removal

Response Number 2
Name: Dlonra
Date: March 18, 2005 at 16:58:48 Pacific
Subject: Kornshell question
Reply: (edit)

does AIX implement /proc?



Report Offensive Follow Up For Removal

Response Number 3
Name: vibhor_agarwalin
Date: March 19, 2005 at 02:56:05 Pacific
Subject: Kornshell question
Reply: (edit)

Thanks i was facing the same problem, i was putting some information in a file via a background process and was doing a cat to see the contents.

It gave me the pid of background process followed by stop.
Understood only half, stopped because it was writing on it and therefore i won't be able to cat. But what does stop mean and how can i resume it.

Further fuser showed me that process was writing in the file by the suffix "o", but on running it a few times i got the same result.
My background process stopped.
I wanted to check via fuser whether that file is being used in a script and then do some processing from it.

Please help

Vibhor Kumar Agarwal


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Kornshell question

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software