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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lock a file

Status
Not open for further replies.

mrn

MIS
Apr 27, 2001
3,993
GB
Anyone got any ideas how I could lock a file on 5.2? I'm testing various ftp failures within a script and need to simulate a locked file failure to get the correct error code. I've got a script but it's a little long winded.

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
You might try setting SUID/SGID for the file.

That with the correct permissions would essentially 'lock' the file while in use to the user using the file.

Regards,
Chuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top