Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
November 23, 2024, 03:23:35 PM
News
: LinuxSolved.com Linux Help Community Forum..
Home
Search
Login
Register
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Linux Software
»
Linux Application
»
lock the file in linux
« previous
next »
Print
Pages: [
1
]
Author
Topic: lock the file in linux (Read 7906 times)
chuikingman
Linux Noob !
Posts: 6
lock the file in linux
«
on:
August 31, 2009, 10:32:39 AM »
Hi,
I want to lock the file in linux and the file cannot be edit or modify by other .I know in perl, there is function flock , but it is not worked.
The file can be modifed and edit even if it is locked by flock .
Any other way to lock the file and so other cannot edit or modifed it
?
Any similar fucntion in perl
?
thank
Logged
gauravbajaj
LST CareTaker
Experienced
Posts: 658
Re: lock the file in linux
«
Reply #1 on:
September 02, 2009, 04:47:39 AM »
I belive there is special attributes for this
check the below command:
ltattr and chattr
I think its somewhat related to the query what u are asking for.
Logged
chuikingman
Linux Noob !
Posts: 6
Re: lock the file in linux
«
Reply #2 on:
September 02, 2009, 04:53:27 AM »
I know the linux comand lsattr and chattr .
but there is no similar function in perl ....
I want to implement in perl script .....
Please advice and suggest !!
Logged
chuikingman
Linux Noob !
Posts: 6
Re: lock the file in linux
«
Reply #3 on:
September 02, 2009, 10:52:48 AM »
Any suggestion how to make the "file busy" error by perl script in linux
Any idea
Logged
Print
Pages: [
1
]
« previous
next »
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Linux Software
»
Linux Application
»
lock the file in linux