File exists but program can't open it

G'day all.
I am trying to port some fortran programs from a True64 environment into Sun v9/SunStudio 11. On the alpha it has no problems, but on the Sun it can't open a file with a name that is only 78 characters long. The Fortran User's guide states that the maximum length for a file name is 1024 characters.. The file most certainly exists and is readable to the user: stat gives:
silo@eclipse /silo1/tech1/install/bin -> stat /silo1/tech1/install/import/rtmet/NCC/dayClim/200706/2007062720070627.dc
  File: `/silo1/tech1/install/import/rtmet/NCC/dayClim/200706/2007062720070627.dc'
  Size: 133170         Blocks: 288        IO Block: 8192   regular file
Device: 1d8005ah/30933082d     Inode: 110852      Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 3953/sielewiczj)   Gid: (  700/    ciss)
Access: 2008-07-23 12:44:00.533357000 +1000
Modify: 2008-07-04 14:21:00.107423000 +1000
Change: 2008-07-08 09:27:39.322719000 +1000The compiled Fortran code (called from a wrapper script) however:
[07/23/08 12:46]: silo_dc_import_wrapper starting
Determining dates to process
Now starting to process Silo 1998
aah, how sweet - found file /tmp/silo/DC_filelist                              
About to check  /silo1/tech1/install/import/rtmet/NCC/dayClim/200706/2007062720070627.dc                                              
In file not Found  /silo1/tech1/install/import/rtmet/NCC/dayClim/200706/2007062720070627.dc                                                Bye
******  FORTRAN RUN-TIME SYSTEM  ******
Error 2:  No such file or directory
Location:  the OPEN statement at line 770 of "dc_importer.f90"
Unit:  12
File:   /silo1/tech1/install/import/rtmet/NCC/dayClim/200706/2007062720070627.dc
AbortNote that it could succesfully open the file /tmp/silo/DC_filelist... The code in question is:
! Problematic snippet from much longer program..
         integer*4 eof, ymd
         character*120 in_file, filelist
         logical file_exists
         file_exists = .TRUE.
         filelist = params(2)
         inquire(file = filelist,  exist = file_exists)
         if ( file_exists == .FALSE. ) then
           write(*,'(3a)') 'Not Found ', filelist, ' Bye'
           return
         endif
         print *, "aah, how sweet - found file ", filelist
         open ( unit=11, file=filelist, status='OLD' ) ! THIS succeeds (/tmp/silo/... short filename)
         read ( 11, "(i8, A120)", iostat = eof) ymd, in_file
         do while ( eof == 0 )
            write (*,'(2a)') "About to check " , in_file
           inquire(file = in_file,  exist = file_exists)
           if ( file_exists == .FALSE. ) then
             write( *, '(3a)') 'In file not Found ', in_file, ' Bye'
!             return (commented out to see if open also gives an error..)
           endif
         open ( unit=12, file=in_file(1:len_trim(in_file)) , status='OLD' ) ! THIS is where the program bombs out.
         end doI am stumped. Why would this bomb out? The file exists, is readable, the filename is << 1024 characters.. I've also tried to run this as the user who owns the file, to no avail. Any suggestions, please?
Cheers,
Tony

First, check to be sure the program has read and execute access on every directory in the path to the file.
If the directory permissions are all OK, run your program under truss:
truss -f -a -vall -o /output/file/name/here your.progam.hereThere should be something like a stat() and an open() call for that file shown as failing in your truss output file. Hopefully that will give you some more information.

Similar Messages

  • Soundbooth (CS5) fails to load a set of .aif files (that other programs can happily open)

    Soundbooth is failing to open a set of .aif files, has anyone had a similar problem? I have tried loading these .aif files in other programs, but every program in CS5 fails to open them.
    Does anyone know why this is happening, have any similar experiences or know if and when this is going to be resolved?
    Considering I paid for this I am very disappointed that I've been having so much troubles loading aif and wave files that so many other programs open without any issues - and I've not heard a word in response to my actual problem that I have been reporting on for a few months now.

    ADDENDUM:-
    When I say "I have tried loading these .aif files in other programs", I mean outside of CS5, and they open the files without any trouble.

  • Mozilla 4.0 downloaded I can print from file print but i can not open propertie box to change printing settings

    Music videos and sound will not open in mozilla 4.0 to watch or here music videos. This is in the new yahoo for mozilla 4.0

    I simply cannot print, either from the icon, cntrl-P, or drop down menu - nothing happens. Do not get the dll message. I have Windows 7.

  • I'm trying to export a raw image from lightroom 5.6 to Photoshop cc 2014 2.1.  I right click to export menu in lightroom as I've always done to export to Photoshop.  Photoshop opens, but it can't open file, window opens to find a file to open.  I'd like t

    I'm trying to export a raw image from lightroom 5.6 to Photoshop cc 2014 2.1.  I right click to export menu in lightroom as I've always done to export to Photoshop.  Photoshop opens, but it can't open file, window opens to find a file to open.  I'd like this to export my lightroom images to edit in photoshop as it has always been able to do for me.  What fix do you recommend?

    Hi Ashley Clavette,
    The Initial view setting works perfectly when the file is opened in Acrobat after setting the desired Initial View.
    When you upload the file onto Wordpress, and view it on that website in the browser...it might be using a different pdf handler program which might be causing this issue ( it would be helpful, if you could provide the screenshot) , however when you download the pdf again from wordpress server...and open in Acrobat/Reader...then what  exactly happens ?  Does the pdf opens in the desired Initial View setting?
    Rahul

  • My hp 8500A will scan with the hp scan program, and save, but I can't open the document

    Using the HP Scan in my HP Program, I can scan a document with my HP Officejet Pro 8500A Premium P/F/S. The HP Scan program shows me a preview so I know it scanned correctly, and I can save the document as what I want, but when I try to open the saved document, right now I've been saving it as a PDF file, my PDF program will not open the document. I get a message that the PDF program can not open. Help, please
    This question was solved.
    View Solution.

    Welcome to the forums horizonjeana,
    I understand you are unable to open your PDF's to view them after they scan however, the scan preview is working fine. I would suggest updating Adobe to see if that helps!
    Open Reader or Acrobat.
    Choose Help - Check For Updates. If a new update is available, it installs automatically.
    Once installed, restart you computer.
    Try to print the PDF again.
    http://helpx.adobe.com/acrobat/kb/troubleshoot-pdf​-printing-acrobat-reader.html
    I hope that works, let me know your OS if the issue persists.
    Help to find which Operating System you are running:
    Which Windows Operating System am I running?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Happy Friday
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Updated to latest ACR 6.6 but still can't open CR2 files from Canon Rebel XSi

    I updated to latest version of Adobe Camera Raw 6.6 but still can't seem to open my CR2 files in Photoshop. Can't open them in Lightroom either, no preview in Bridge or OS.
    I'm running OS 10.7.2 and Photshop 12.1 x 64 which is CS5.1 I suppose.
    I've downloaded Canon's EOS utility hoping that would somehow do something as well but nothing.
    The images were shot on Canon Rebel XSi which is certainly supported by the newest version of ACR. So I have no clue as to what's happening... I previously downloaded these images onto my old laptop about a year ago and everything was fine, however now I'm not even getting a preview in OS. Do I have to revert to an older version of ACR (perhaps the same one I used originally?) to open these files again? These files have been stored on a hard drive, so I'm not downloading them directly from the camera-again, this probably has nothing to do with it but not sure what to do. A lot of the posts I've seen recommend downloading the latest version of ACR to fix the issue, but again I've done that and as a matter of fact the camera (Rebel XSi) has been supported for some time now...
    In OS, when the image is selected no preview:
    Lightroom error:
    Bridge, no preview:
    Photoshop error:
    Ideas, suggestions?
    66 views on this discussion so far and no replies...
    Please help.
    Thanks in advance,
    Arthur

    Something appears to be wrong with your files.
    Are most of your images approx. 3.7 MB?
    This is very small for a 12 MP image.
    If you go back to the original file on your laptop, what is the file size?
    Also the fact that the Mac OS is not showing the preview is unusual.
    Perhaps these files got corrupted when they were moved to your new computer.
    Can you open these files OK on your old laptop?
    Is the OS showing the previews on your old laptop?
    Also compare the file sizes between old and new computer.
    Have you tried repairing your permissions?
    Try Disk Utility in your Macs Applications - Utilities - Disk Utility to see if this helps.
    Good Luck!

  • I ordered the full creative cloud on sunday and received an order number but still can't open any of the programs. When i check the status of my order online, it says it can't find it. Is this normal after 3 days?

    I ordered the full creative cloud on sunday and received an order number but still can't open any of the programs. When i check the status of my order online, it says it can't find it. Is this normal after 3 days? I tried asking in a chat window instead of the forum but no one answered and after about ten minutes my screen restarted and closed the chat window down. It seems a little frustrating not knowing what happened to my order and not being able to contact anyone. Is all this usual with Adobe or are they just having technical problems this week?

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I downloaded the adobe XI software and it shows in my Adobe download assistant as downloaded but I can not open it and it is not a part of my applications. Very frustrating download process as I just want to convert a PDF file to an editable word document

    I downloaded the adobe XI software and it shows in my Adobe download assistant as downloaded but I can not open it and it is not a part of my applications. Very frustrating download process as I just want to convert a PDF file to an editable word document...

    Odonnells52 you will still need to install Adobe Acrobat Professional prior to being able to make edits to PDF or utilize Acrobat.   By default the installation files have been saved to your download folder.
    If you continue to face difficulties with the Adobe Download Assistant then please see Troubleshoot Adobe Download Assistant.
    You can also download the installation files directly from Download Acrobat products | Standard, Pro | XI, X if you are unable to locate the downloaded installation files.

  • How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. I tried RIGHT-CLICK and the "open dowloading folder" or something does not work! P

    How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. Even the right-click is not working ... the "open containing folder" does not work.
    == This happened ==
    Not sure how often
    == ALWAYS! ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)

    Open Containing Folders is never active.

  • I have Creative Cloud installed and Photoshop installed, but I can not open the program itself. No idea why, everything is up to date and i was using it just fine yesterday.

    I have Creative Cloud installed and Photoshop installed, but I can not open the program itself. No idea why, everything is up to date and I was using it just fine yesterday.
    2015-02-24_1129 - DavidIpromote's library

    Try resetting Photoshop Preferences.   Use your Photoshop start icon to launch Photoshop and immediately press and hole Shift+Ctrl|CMD+Alt|Option keys   Photoshop should Prompt you with Do you want your Preferences deleted. Reply yes.   Photoshop should then delete your user ID preferences and then create a default set of preferences for your ID and start successfully.

  • Hello, I can see the Icon of my external hard on the mac os x 10.6.8 but I can not open it or view any file in the external hard

    hello, I can see the Icon of my external hard on the mac os x 10.6.8 but I can not open it or view any file in the external hard
    your prompt reply will be appreciated
    thanks

    Reinstall 10.6 again, but this time hold c boot off the 10.6 and erase the ENTIRE internal drive.
    You do this by selecting the drive makers name and size on the left hand side, not the slightly indented partition underneath it.
    If you erase and install 10.6 only into a parittion, say Macintosh HD, the you still have the hidden Lion Recovery Partition on the drive and it appears you already have 10.7
    In the MAS, hold option and click Purchases to redownload Lion
    FYI, you don't need to install 10.6 to reinstall 10.7, 10.7 can be reinstalled via the Lion Recovery, Command r boot.
    See this for more info
    https://discussions.apple.com/docs/DOC-3046

  • I downloaded and installed Firefox but I can't open the program.

    This is the third time I've downloaded Firefox on this computer and have been unable to open it. I allowed it to become my default browser during installation but clicking on any weblink yielded this error message: "There was a problem sending the command to the program." When I changed the default browser back to Internet Explorer I could open websites using it, and also using Google Chrome, but still can't open Firefox.

    See this thread for potential ways of removing Searchqu from your system: https://support.mozilla.com/en-US/questions/790833

  • I have Lightroom 3.6 and Camera Raw 6.6 but I can't open my CR2 files from my Canon eos 6D

    Hi,
    I have Lightroom 3.6 and Camera Raw 6.6 but I can't open my CR2 files from my Canon eos 6D
    Lightroom doesn't show a thumbnail image and when trying to import it says the camera format isn't supported. But normaly Camera raw 6.6 should cover the Canon eos 6D
    All help is welcome,
    Thanks

    No, the older versions are not free.  If you upgrade you will have to get Lr5 unless you can still find Lr4 for sale somewhere as it has been discontinued by Adobe.  You can also use the FREE DNG converter to convert the 6d files for use in Lr3.6.

  • HT200250 I couldn't open the files from a Canon XF 300 so I downloade the plugin from Apple but still can't open the files. I opened and clicked on the installer icon. I'm not sure the plugin was actually installed. can anyone help?

    I couldn't open the files from a Canon XF 300 into Final Cut Pro 7, so I downloade the plugin from Apple but still can't open the files. I opened and clicked on the installer icon. I'm not sure the plugin was actually installed. C
    an anyone help?
    Message was edited by: BigDealCam123

    As you probably know the Canon plug-in enables Log & Transfer in FCP7. I'm not sure whether it works with Final Cut Express or not.
    Look in Applications>Canon Utilities. I'm running 10.6 as well and that is where it's located on my machine.
    Good luck.
    Russ

  • I've upgraded to OS X10.8.2 but I can't open power pc files and applications

    I've upgraded to OS X10.8.2 but I can't open power pc files and applications

    Note that there's no such thing as "PowerPC files." PowerPC applications won't work on OS X 10.7 or higher, but the files created by those apps can still be opened if there is an updated version of that app. For example, if you have MS Office 2004, you cannot open any of those Office apps, and thus cannot open any of your Office documents. However, if you upgrade to Office 2011, or some other substitute (such as Apple's iWork suite or the free OpenOffice or LibreOffice), you will be able to open those documents again just fine.

Maybe you are looking for

  • Paste in position

    I have a problem in applescripting. I open a document, select all, copy, doubling the canvas size to the right and then I want to paste the clipboard contents. The problem is the document increases size and I need to zoom out so when I paste the clip

  • Datas in Infocube in BI Content

    hi, when installing an Infocube from BI content whether data will be there inside the cube. else how to populate the data for cubes present in the BI Content. Please help me to understand and how to take sample datas thanks Sankaresh S

  • Premier Elements 9 operating problems

    I am just getting around to using Premiere Elements 9.  I installed it and Photshop Elements 9 at one time several months ago and have used Photshop Elements with no problems. A. When I start Premiere Elements and get to the Welcome Screen.  I select

  • Error Message Given What to do now?

    I bought 3 books from iTunes store. When I tried to open them on my iPad & iPhone 'Failed to load book because the requested resource is missing.' What do I do now? c7sgdj.

  • Transaction VASK authorization check on warehouse

    Hello all, Does anyone know why there is no authorization check on the warehouse in transaction code VASK? I have an issue where users from different warehouses are deleting groups created in other warehouses. I wanted to know if anoyone else has run