How to lock a file in solaris

Hi everyone,
Is there a way to lock a file in Solaris ?
Any input highly appreciated.
Tx
Kaushalya

Of course. There is even a class for it. However, be forewarned, locks only work when everything "plays nice". If one program locks it, and another program doesn't bother to attempt locking it before doing something with it, it will be able to "pull the carpet out from under" the locking process.
If you mean "lock" in the "Windoof" sense (in that absolutely nothing can do absolutely anything with a file when something else has it locked), no.

Similar Messages

  • How to lock folders/files so pasword is required to open them

    Hi
    I've been asking around to find out how to lock a file or folder so that the user password is required to open them, but have had no luck as yet..
    can you assist?
    many thanks
    Mister Tom

    Mister Tom wrote:
    Hi
    I've been asking around to find out how to lock a file or folder so that the user password is required to open them, but have had no luck as yet..
    can you assist?
    many thanks
    Mister Tom
    If you run your system as a non-administrator, then the other user's folders are locked.
    If you then use Fast Switching, those folders are merely a mouse click (and password) away.

  • How to play *.rm files in Solaris 10 x86

    Hi all,
    I've installed Solaris 10 x86 in SunBlade 1100z.
    Everthing is okie, the GUI of JDS is very attractive. I think I like it.
    But I cannot open file *.rm.
    I try to search some software like Real Player but it run only in Windows or Linux platform.
    Could you give some suggestions ?
    Tks,

    See: How to run RealPlayer 8 on Solaris x86:
    http://www.tools.de/solaris/

  • How to Deploy WAR file in solaris

    I want to deploy WAR file in Solaris.

    Install Java on Solaris.
    Install Tomcat (or whatever app server you want to on Solaris)
    Deploy the WAR file in the standard place for that app server.
    ie Tomcat would be [TOMCAT]/webapps directory.

  • How to install OpenGL files on Solaris 10

    I found OpenGL stuff is missing from the Solaris 10 system when I installed gtkglext from its source code and got an error after the 'configure' command.
    bash-3.00$ ./configure
    checking GL/glx.h usability... no
    checking GL/glx.h presence... no
    checking for GL/glx.h... no
    configure: error: Cannot find GLX header
    I remember that for software groups during Solaris 10 installation, I did choose the Entire Solaris Software Group to guarantee the developement packages are installed. Could you give some help on how to install opengl stuff from Solaris 10 installation disks?

    It's hard to believe that no one here (official Sun
    developer network) can answer my question. Maybe few
    people develop under Solaris.That must be it.

  • How to Lock a file

    Hi,
    I am using an XML file in my application, my application is basically an XML editor, so you can parse and change the XML file.
    The problem is when the XML file is in use, i'll be able to do any operation on file, i can delete it, i can manually make changes on it.
    Is there any way that I can lock my XML file when it is in use by my application, so you cannot delete or change it.
    Thanks

    Is there any way that I can lock my XML file when it
    is in use by my application, so you cannot delete or
    change it.you should probably look into apeing how Eclipse (and many other editors) behave - ie keep a local buffer of the file, and record when you read the buffer (or last saved). Then periodically and on interesting events (eg user refocuses window) you check to see if the local copy has been modified since you last looked (or deleted) and offer options to the user (eg "this file has been deleted - shall I close it" or "this file has been modified - shall I update it" etc..)
    otherwise I think file locking is sorted out in 1.4 but have never personally used it (there is a FileLock class that looks interesting..)
    http://www.google.com/search?hl=en&ie=UTF-8&q=lock+file+java&btnI=I%27m+Feeling+Lucky

  • Re: how to lock my file

    i just wonder how to add on security password to access to my confidential files ie bank e-statements, credit e-statement?
    thanks

    Click here and follow the instructions.
    (39683)

  • How to play *.avi files in solaris10 sparc

    hi frnds
    can some body tell me how to play avi files in solaris
    or is thr any binary packages ( but plese dont tell me abt source files i am fed up of compiling :) & ) if any binary packages r avilable
    please tell me or how to play in solaris 10 sparc version
    thanx & REGARDS
    chakri

    http://perian.org for your AVI files and http://flip4mac.com to play most WMP files via QuickTime Player.

  • Locking a file

    i want to read a file . but before that i want to lock the whole file . how to lock a file ?
    how to do it in linux OS.

    Hello,
    You are probably looking for FileLock class...
    http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/FileLock.html
    Hope this helps

  • How can I lock the file in use

    Dear All, I transfer the large text file to Solaris 10 server and copy the this file with transfer not success to another path. but I can open the file with end of file. How can I lock the file with transfer not successfully.

    Locking on UNIX is cooperative, not manditory. That means that all applications need to check for the lock explicitly and then not use the file if the lock exists.
    But if something is accessing the file beyond your control, locking isn't going to prevent it.
    If you do control all the access points, then take a look at lockf or flock functions.
    Darren

  • How do i find locked music files to solve my -54 error for windows 8

    everytime my itunes starts up, it comes up with " the ipod could not be synced, an unknown error occured (-54)", i've read that people find the locked files in their library and unlock them and it solves the problem, but i wanted to know how i find the files for a windows 8 pc?

    Maybe:
    https://answers.yahoo.com/question/index?qid=20090723091425AAM63Zz

  • I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    theres no - in "itunes" its all one word
    try right clicking and running itunes as adminstrator or try on a different user account

  • File Lock - How to lock and unlock a file ? Can we do that for an FTP File?

    Hi All,
    I like to retrieve a file from the FTP server using Apache Commons Net libraries.
    for example if the file size is 20MB. When the file is in the progress of copying or transferring from the FTP server i need to lock the local file which is in our local directory so that no other process will use the same local file which is in the process of copying otherwise partially copied files will be used by another process.
    the file should be locked when it was in the progress of copying from the server. I have an automatic process which will access file objects at certain time and try to process the files.
    I like to know the simplest and easiest way to lock and unlock a file object locally which is trying to copy a file from the FTP server which is of huge size.
    And also i like to know how to lock and unlock a file in general?
    Thanks,
    J.Kathir

    we can set it read only only when it complete finishing the writing.
    can we able to make the file as read-only while transferring data to file.
    How to achieve it ? pls give me some sample code

  • How to determine the file system on Solaris

    Friends,
    How to determine which file system I have installed UFS or ZFS on Solaris
    Thanks

    Other methods would include looking at the /etc/vfstab if it's in there or fstyp(1M):
    System Administration Commands fstyp(1M)
    NAME
    fstyp - determine file system type
    SYNOPSIS
    fstyp [-a | -v] special [:logical-drive]

  • How to execute a .cmd file in Solaris server

    Hi all , How to execute a .cmd file in Solaris server.
    Thanks.

    Basically you should have the execution flag associated to this cmd file. Check first if this file is builded for Solaris and then you can add the "x" flag to the file permissions.
    You can too run it like this, but you should also check if this file is Solaris compatible : # sh <path/cmd file>

Maybe you are looking for