UNIX "ln" command and Mac OS X applications

I have an application hardwired to read 4 files with specific names, in a specific location. I want to move the files to the Users/Shared folder so other users can access them; however, the application must still be able to open and save them, meaning they need to stay put.
I moved the files to the Shared folder and opened read/write permissions to all users. I then used the ln command in the original location to create hard links to the files. (Symbolic links, "ln -s", are not readable at all by the application.) Finally, I set the permissions on the links to those of the rest of my files (read/write by my user account only).
The application can open the files fine, but cannot save to them at all! It returns an undocumented (but not fatal) error in a pop-up window.
"ln" is supposed to create links that are virtually indistinguishable from the original files. And I've set all permissions as they should be, to the best of my knowledge. So, why doesn't this work?
I really hope this is UNIX-solvable. My only other option is to purchase and install a file synchronization utility on all user accounts.
TIA
1.25GHz G4 Desk Lamp iMac, fully loaded   Mac OS X (10.4.3)   60GB Color iPod (4G) x 2

Many programs save a file by writing to a temp file and then replacing the original with the temp one instead of writing new data to the old file. That means the old file gets deleted--you'd wind up with a new file that is disassociated from the old one that still exists in the shared location. I don't know how your program behaves or if this (among many wacky save-a-file games programs may play) is relevant to the problem at hand.

Similar Messages

  • Unix Kill Command and Java

    Can someone give me an example of how to start and stop UNIX processes from a java program. I know I need the Runtime object. Thanks in advance!

    Since kill is a built in shell command, you need to
    call it from a script. It can't be called directly
    because there is no executable called kill in unix.Wrong.
    $ ls -l /usr/bin/kill
    -rwxr-xr-x    1 root     root        14904 Aug 29  2002 /usr/bin/kill

  • Desktop runs some weird Terminal Commands and acts like an Application.

    So, My Desktop runs like an application and does a weird terminal command.
    What I can't do:
    Can't copy or place anything on the desktop except for the screenshots I take
    Can't create a new folder
    Can't do anything basically.
    Help?

    Run Disk Utility and Repair Permissions.

  • I am having problem downloading application on Mac app store, when I try to login and start downloading the application, it will say "Your device cannot be verified"

    I am having problem downloading application on Mac app store, when I try to login and start downloading the application, it will say "Your device cannot be verified"

    Back up all data before proceeding.
    Step 1
    Triple-click anywhere in the line below on this page to select it:
    /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Restart the computer and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    Log out, log back in, and test. If there's no improvement, continue.
    Step 2
    Reset your computer’s PRAM.

  • Hello congratulations for the work you have been developing. The iCREATE has helped me greatly improve my Mac and better understand some applications. Recently my iPhoto has given me problems and I do not realize what is happening. When I double click a p

    Hello congratulations for the work you have been developing. The apple support has helped me greatly improve my Mac and better understand some applications. Recently my iPhoto has given me problems and I do not realize what is happening. When I double click a photo it does not appear ... or rather the background is black and only the zoom window appears. How to solve this? I've done a restoration of the library, but the problem remains. Thanks and good job.

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Problem with shell commands and scripts from an Applescript Application

    Hi-
    I am fairly new to OSX software development. I am trying to build an application that creates a reverse SSH tunnel to my computer and starts OSXvnc. The idea is that my Mom or anyone else who needs help can connect to me without having to tinker with their firewalls.
    There are plenty of resources on how to do this, and I have found them. What I have a problem with is the following.
    I am building this application in Xcode as an Applescript application, because Applescript and shell scripting are the only forms of programming I know. I use an expect script to connect through SSH, and a "do shell script" for the raw OSXvnc-server application to allow screen sharing.
    The problem is that when I click on the button to launch OSXvnc-server or the button to launch SSH, the application freezes until the process it spawns is killed or finishes. For example, I can set SSH to timeout after 60 seconds of no connection, and then the Applescript application responds again. I even tried using the ssh -f command to fork the process, but that doesn't seem to help.
    I am also using "try" around each of the items.
    What am I doing wrong? How can I make the buttons in my app launch SSH and OSXvnc-server without hanging the application while it waits for them to finish?
    Thanks so much!

    See here for an explanation of the syntax.
    (20960)

  • I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continues to blink on and off. I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated

    I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continue to blink on and off.
    I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated.

    are you backing up files, or doing a Time machine backup, either way, the Time machine will STOP when finished and show "last backup at XXXXXX"  meaning its done...... OR if when transferring files, it will show a progress bar on your desktop and vanish when files are copied.
    Open up the Hitachi drive (your G drive is made by Hitachi, and the best made by the way).....and see if the files are there.
    a MORE VISUAL way is to open the hard drive file, and drag and drop files INTO the Gdrive and you can see them visually be copied there as you do it.
    To see your HD on your desktop GOTO  FINDER......PREFERENCES....then GENERAL TAB.........check the box marked HARD DRIVES.........then your Gdrive will appear on your desktop........open it from there,  and DRAG and drop files from anywhere INTO the Gdrive....... easy visual way to see the files being copied into the Gdrive.

  • Where is "cut" command in Mac? Why I cannot cut a file/folder and paste it somewhere else?

    I'm a professioinal who made the big step to pass from Windows to Mac. I do not regret it but there're things I cannot understand and i supposed being much easier or "native" in Mac.
    Tipical example is the Cut command. I see it in Finder but why doesn't if work? Drag and drop do not copy but works like a ct and paste! I think if for mac this is enough Apple is gonna make it work bacause is a HUGE limit, specially for people like me who manage thousands of photos and cannot risk to drop huge amounts of files in a go or in a wrong folder of such.
    Please tell me I'm wrong and there's a way to sort it out!
    Thanks.
    D

    You can cut and paste items with Finder, a new feature in Lion, but it doesn't use the command-X "cut" command and is not very intuitive.
    Highlight the item(s) to be moved, and type command-C to copy it. Then navigate to the destination window, and rather than pressing command-V (or Edit>Paste item) , instead press Option-command-V (or hold down option when using the Edit menu). This changes "paste" into "move item here", i.e, the item will disappear from where it was copied. The result is equivalent to a "cut and paste."

  • Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. Does any one know how I can get it to recover?

    Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. I can hold the option key at start up and choose my network, then Internet recovery shows up with an arrow pointing up. When I click on the arrow Internet recovery fails and all I get is a globe with a triangle on it with an exclamation mark on it, and under that it says
    apple.com/support
          -6002F
    Does any one know how I can fix this without a recovery disc? Thanks

    I just want to add to this, in case someone else searches for this error on Apple Support (google doesnt cover apple support.. how clever is that?)
    I had the same error. And i had a Computer that had worked, with a SSD drive and 16GB upgrade done by the owner himself.
    I tried swapping with a Mechinal Harddrive, no luck.
    Kept the Mechanical drive in, and tried with some other Ram, it worked..
    So for me this error and after reading the other responses can be boiled down to a Harddrive problem or Ram issue.
    It was Ram for me..

  • I have just purchased the new macbook pro 15" and see that it comes with 2 discs in the box, one being Mac OS X and the other being Applications Install DVD. Are these pre installed? or do I need to insert the discs and install them?

    I have just purchased the new macbook pro 15" and see that it comes with 2 discs in the box, one being Mac OS X and the other being Applications Install DVD. Are these pre installed? or do I need to insert the discs and install them?

    All has been installed. Those are there in case you need to do a reinstall. Unlike most Windows based hardware vendors these days. Apple still ships software you might need in case a drive fails. Even in the case of the new MacBook Air, Apple ships the software on a flash drive.

  • I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?

    I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?
    i tryed with download mavericks but finally its saying a error message like cant conect to istore like that its saying and every thing is clear like internet and other stuf i tryed with 3times no progress same error pls help.. i bought this lap for my bro with his apple id only we use it now he got a new mac book pro so he gave to me so i formated and use it i use my apple id is that problem come because of changing apple id ? pls eplain

    Firstly, what is the source of the 10.6.4 disc? Is it the original installation disc for your MacBook, or one 'borrowed' from another computer?
    It isn't the retail version, because that's 10.6.3.
    Assuming it's the correct disc (i.e. the one that shipped with your Mac), you need to boot from it again.
    OK the language page.
    From the installer screen, ignore the continue button, go to the menu bar and choose Disk Utility from the Utilities menu.
    In DU, select your internal drive in the sidebar (the top item with the makers name and serial no.).
    Run Repair Disk. If that comes up as disk OK, click the partition tab. Select the partiton from the drop-down above the graphic; 1 partiton is all you need.
    Go to the options button and ensure that the partition scheme is GUID and the file system to Mac OS Extended (Journalled). Name the partiton (usually Macintosh HD), click Apply.
    When the Macintosh HD volume appears below the drive name, quit DU and see if you can then install.
    If the screen after the language screen doesn't show the menu bar, it may be necessary to use another Mac to do the job with the MB in Firewire Target Disc Mode. If it won't boot in TDM, or the MB doesn't have FireWire then it's getting very difficult.

  • I have a Mac book pro and I did an update for itunes and now the itunes application won't open t

    I have a Mac book pro and I did an update for itunes and now the itunes application won't open

    Yes. Check to see if the iTunes application has been moved or renamed before installing it.
    (67527)

  • Having trouble in running a unix command and getting the output

    Hi,
    I am trying to run a unix command from within the java code. I am not able to make it work. I am enclosing the code and the error message that I am getting. Any help is highly appreciated.
    import java.io.*;
    public class RunCommand {
        public static void main(String args[]) {
            String s = null;
            try {
                Process p = Runtime.getRuntime().exec("cat UNIX_ASCII_TEXT_FILE | A_UNIX_PROGRAM -d");
                BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
                // read the output from the command
                System.out.println("Here is the standard output of the command:\n");
                while ((s = stdInput.readLine()) != null) {
                    System.out.println(s);
                // read any errors from the attempted command
                System.out.println("Here is the standard error of the command (if any):\n");
                while ((s = stdError.readLine()) != null) {
                    System.out.println(s);
                System.exit(0);
            catch (IOException e) {
                System.out.println("exception happened - here's what I know: ");
                e.printStackTrace();
                System.exit(-1);
    }The error message that I am getting is
    Here is the standard output of the command:
    SLu|%%$$=
    Here is the standard error of the command (if any):
    cat: cannot open |
    cat: cannot open A_UNIX_PROGRAM
    cat: cannot open -dLooks like the cat command is working and not the pipe command and the command after the pipe. But when I run the UNIX command from the command prompt I get the expected result.

    You might read this article and see if its approach works.
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Difference on developing client applications on PC and Mac platform.

    Hi,
    I would like to know wats the difference on developing client applications on PC and Mac platform.
    If i were to create software applications using Javascript, MS SQL Server 2000 and JAVA on Mac platform, would there be any difference from those we created on PC(Windows)?

    Write once, debug ewerywhere. There should not be any
    difference running pure Java code on difference
    platforms.Umm.. "should" is the operative word..
    Threads come to mind...as even when they are written as "Pure Java".. the native thread implementation can work harry cary (as opposed to Harry Potter) on your app...

  • The password I use for installing downloaded applications or installing basically anything isn't working but I didn't change it or let alone touched it. How do I fix this? I'm on an iMac 21.5 inch, Mid 2011 and Mac OS X Version 10.7.3

    The password I use for installing downloaded applications or installing basically anything isn't working but I didn't change it or let alone touched it. How do I fix this? I'm on an iMac 21.5 inch Mid 2011 and Mac OS X Version 10.7.3

    I've no idea why it has stopped working, but you could reset it:
    http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/

Maybe you are looking for

  • My daughter's iPod not showing up in my devices.

    Just started using the new updated iTunes.  Wanted to remove my daughters iPod and move it to her own account on her own computer, but I can't find her iPod in my devices.  I clicked on my account and went to manage devices, it tells me I have 5 devi

  • Why is the Instrument Library invalid?

    Hi- Had problems with my hard drive and I managed to loose GarageBand. I was able to get the GarageBand 3 program (102.7 MB) and the Instrument file (1.52 GB) from a friend. Placed the GarageBand program into the Applications folder, and the Instrume

  • Burning music from music store

    I just bought an album from the iTunes Music Store and tried to burn it to a CD-R but it came up with an error reading "The attempt to burn a disc failed. The device failed to calibrate the laser power level for this media." I don't know what else to

  • Is anyone having trouble with the singing santa app?

    Anyone having trouble using the Singing Santa app. It worked for me last Christmas. Can't get it to process video this Christmas. I've deleted the app and downloaded it again, but I am having the same problem.

  • Error Message on Flash Update

    While trying to install an update for Adobe Flash I recieved this error. I can't seem to find anyone to help with this. There aren't any email addresses etc that are available. the following is the exact error message I recieved. I haven't had proble