[SOLVED] Unable to create a file in a script

Hello,
I'm running this script:
cat "" > $LOG_DUMP/FPGA_log.txt
echo "$RESULTS" >| $LOG_DUMP/FPGA_log.txt
And this is what I'm getting:
hl_script.sh: line 109: logs/2014_04_30_14_41_49/FPGA_log.txt: No such file or directory
hl_script.sh: line 111: logs/2014_04_30_14_41_49/FPGA_log.txt: No such file or directory
The thing about this path is that I _know_ that it exists and I'm trying to create the FPGA_log.txt file (note: I've tried touch, but got the same error.)
Last edited by publicus (2014-04-30 19:07:09)

Saint0fCloud wrote:
Xyne wrote:I don't understand why you're catting an empty string to the file to create it nor have I ever seen ">|" before.
'>|' is a zsh/ksh-ism
>| word
Same as >, except that the file is truncated to zero length if it exists, even if CLOBBER is unset.
Yes, I have the clobber setting turned on (and it still works on machines without the clobber setting turned on.)

Similar Messages

  • FRM 30087 Unable to create form file \\pc1\CALENDAR_EX.fmx.

    there is a form calendar.fmb created on PC1 which runs proper on PC1.
    Now on PC2 i am opening the form and want to run the same. But it gives the following error...
    FRM 30087 Unable to create form file \\pc1\CALENDAR_EX.fmx...
    how to solve this..?

    If you look up the error message in the Help documentation, it says:
    FRM-30087: Unable to create form file %s
    Cause:  You lack privileges in the specified directory, or you do not have the disk space required.
    Action:  Contact your DBA to make sure you have the access privileges you need.

  • REP-0118 unable to create temporary file

    I have installed Report Builder 10g
    and I got this error
    REP-0118 unable to create temporary file
    anyone have idea how to solve this error
    plz help me

    Re: REP-0118 unable to create temporary file

  • After upgrade to CF9, CFIMAGE "Unable to create temporary file" error

    We recently upgraded from CF8 to CF9 Enterprise.  I'm getting an "Unable to create temporary file" error on
    my CFIMAGE resize calls.  We use sandbox security.  I assume I need to grant write access to whatever folder CF uses for temp files, but which folder is it?   The same code (and sandbox settings) ran fine in CF8....
    Note, if I attempt to add C:\JRun4\servers\cfusion\SERVER-INF\temp to the sandbox for this particular app, CF crashes on all requests across all apps on the server with a:
    Security: The requested template has been denied access to C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfclasses\cfapp2ecfc1510154633.c lass.
    The following is the internal exception message: access denied (java.io.FilePermission C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfclasses\cfapp2ecfc1510154633.c lass read)
    ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.
    I need to restart CF to get everything working again.

    Another update.   Had a problem with a sandboxed CF9 site doing a simple CFIMAGE READ to a memory variable.  Got an "Unable to create temporary file" error.
    Inserted the following code in the file upload page:
    <cfscript>
    writeoutput("Temp Dir : " & createobject("java","java.lang.System").getProperty("java.io.tmpdir") );
    </cfscript>
    ... and it reveals the temp directory as C:\WINDOWS\TEMP.  Added that to the sandbox, and the CFIMAGE READ is working properly now.
    Note this seems inconsistent with CFIMAGE RESIZE behavior which appears to use the CF GetTempDirectory() value, which in my case is C:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\
    For reference, see the section "Sandbox Considerations" at this link:
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fc8 .html#WSc3ff6d0ea77859461172e0811cbf364104-7fcc

  • Rep-0118:Unable to create temporary file error in Report Builder

    I have installed Report Builder (latest edition) for windows 2000 server, but my users on windows XP cannot create the report it gives them
    Rep-0118:Unable to create temporary file error
    Please help me out
    Vijay

    You have to change registry settings by going through REGEDIT. Under hkey_local_machine/software/oracle/<oracle home>, look for variable REPORTS_TMP. Change value for this, for example c:\windows\temp or something like that where you want oracle reports to create temp files.

  • Unable to create a file in Application Server using OPEN DATASET stattement.

    I am unable to create a file in Application Server using the following statement.
    OPEN DATASET filename FOR OUTPUT
    IN TEXT MODE ENCODING DEFAULT
    MESSAGE msg.
    The message I'm getting is "Permission Denied". I have checked authorisation using SU53 which says "The last authorization check was successful". Please help.

    You can use following code to capture the error.
    TRY.
          OPEN DATASET filename FOR OUTPUT IN BINARY MODE MESSAGE V_MSG.
          CATCH CX_ROOT
          INTO EXCEPTION.
          CALL METHOD O_EXCEPTION ->IF_MESSAGE~GET_TEXT
            RECEIVING
            RESULT = V_MSG.
          MESSAGE v_msg
          TYPE 'E'.
    ENDTRY.
    You can capture error in v_msg.
    Following are the exceptions for the same:
    Exceptions
    Catchable Exceptions
    CX_SY_FILE_OPEN
    Cause: The file is already open.
    Runtime Error: DATASET_REOPEN
      CX_SY_CODEPAGE_CONVERTER_INIT   
    Cause: The desired conversion is not supported. (Due to specification of invalid code page or of language not supported in the conversion, with SET LOCALE LANGUAGE.)
    Runtime Error: CONVT_CODEPAGE_INIT
    CX_SY_CONVERSION_CODEPAGE
    Cause: Internal error in the conversion.
    Runtime Error: CONVT_CODEPAGE
    CX_SY_FILE_AUTHORITY
    Cause: No authorization for access to file
    Runtime Error: OPEN_DATASET_NO_AUTHORITY
    Cause: Authorization for access to this file is missing in OPEN DATASET with addition FILTER.
    Runtime Error: OPEN_PIPE_NO_AUTHORITY
      CX_SY_PIPES_NOT_SUPPORTED   
    Cause: The operating system does not support pipes.
    Runtime Error: DATASET_NO_PIPE
    CX_SY_TOO_MANY_FILES
    Cause: Maximum number of open files exceeded.
    Runtime Error: DATASET_TOO_MANY_FILES   Non-Catchable Exceptions   
    Cause: An attempt was made to open a pipe that is already open.
    Runtime Error: DATASET_PIPE_POSITION
    Hope that will help you.
    Please reward if useful.

  • Acrobat 8 Pro now unable to create pdf files

    Been using Acrobat 8 for well over a year.  Installed new release of AutoCAD 2012, now unable to create pdf files from AutoCAD or MS Office programs.  Can anybody help?

    You may still want to at least give a repair a shot. Won't hurt and sometimes customer suport (I assume you mean Adobe customer support?) will miss some things. I believe in your version you can find it under the Help menu.
    BtlMage918 wrote:
    No because the
    customer support person I spoke with first said the problem was within the
    creation portion of the program and did not fell that reinstallation or
    deactivate/activate would resolve.
    Charles Blake
    Annette Miller Architects
    204 S. Ludlow St., Suite 310
    Dayton, Ohio 45402
    937.228.7841
    <http://www.amillerarchitects.com/> www.amillerarchitects.com

  • I am unable to create adobe file from attached document from email

    I am unable to create adobe file from attached document from email. No 'open in' link is available as given in directions. What to do?

    Because there is no abode on the IOS.  you'll need to do a search in the app store to resolve your issue.

  • FRM-30087: Unable to create form file F:\MYFORM\ORDG01.fmx.

    FRM-30087: Unable to create form file F:\MYFORM\ORDG01.fmx.

    If the file is open, forms might have problems to overwrite it.
    Make sure the destination file is not open

  • FRM-30087: Unable to create form file

    I'm running Forms 9i. When I tried to run form from the Forms Builder, I sometimes received the error "FRM-30087: Unable to create form file". To work around the problem, I have to shut down the OC4J instance and then restart again. Why did I receive this error? How do I get rid of this error without having to shut down OC4J every time?

    It means that there is an instance of your fmx in memory still running. Make sure to exit properly from your form after you run it.
    This might happen if you leave the forms running or if you closed your browser without exiting the form first.
    Shutting down OC4J removes the fmx from memory.

  • SecurityException: Unable to create temporary file with applet

    My applet tries to write a temp file
    try {
              File temp = java.io.File.createTempFile("student", ".log");
              strFilename = temp.getAbsolutePath();
    } catch (IOException e1) {
              e1.printStackTrace();
    }But when I run, it throws an exception:
    java.lang.SecurityException: Unable to create temporary file
    I tried to sign the applet, as to http://www.developer.com/java/data/article.php/3303561 but it's still the same.
    There's another way: using java.policy,
    grant {
      permission java.security.AllPermission;
    };but it seems to be not very gentle. Could you show me the solution please? Thanks in advance.
    Cheers,

    Yes, that's what I found. Here is the summary to do it, hope it helps someone else:
    1. Create key for signed jar:
    keytool -genkey -keystore abc.com -keyalg rsa -dname "CN=Abc, OU=Def, O=GHI, L=KLMN, ST=OP, C=XY" -alias TheCert -validity 3600 -keypass password -storepass password2. Make jar file
    3. Sign the jar file
    jarsigner -keystore abc.com -storepass password -keypass password -signedjar SignedAppletTest.jar OrgAppletTest.jar TheCertIt works for me.
    I'd like to thank harmmeijer and everyone who interests.
    Cheers,

  • EhP1 - Unable to create XML file in Solman

    Hi all,
    I need some assistance
    I am trying to upgrade our XI system to EhP1 - SP04. I use Maintenance Optimizer in our Solution Manager (SAP EHP 1 for SAP Solution Manager 7.0) to select the necessary files for my upgrade. The XI system has been set up in SMSY an given a Logical Component. Also, added to the Solution Landscape. I use the SAPehpi-installer to upgrade XI.
    However, when I get to section three, I am supposed to provide the SMSDXML.xml file. This file is not created by our Solution Manager for some reason. The file, as I understand it, is supposed to be generated automatically during Maintenance Optimizer. But when I check the EPS and EPS/in folder of our solman, the file is not to be found. I have also checked the parameter DIR_EPS_ROOT in RZ11. It is correct. The authorization has been set to full on group Everyone, just to check if that could be the problem, but with no luck.
    When I use transaction /n/tmwflow/mopz_stack i am able to view the XML file (I assume that it is the correct file), but any attempt to copy the text displayed, and to save it as an XML-file has not resulted in any success.
    The only thing I have to go on, is a warning displayed in Maintenance Optimizer, stating: "Warning - No SLM configured in system - <SID>. Every document etc, Iu2019ve read sais that one can use Software Lifecycle Manager as an alternative to Download Basket. I havenu2019t seen SLM listed as a prereq, so I donu2019t believe that this could be the reason why the XML-file is not generated.
    Is there some setup/configuration Iu2019ve missed?
    Any help will be much appreciated!
    Best Regards,
    Stian
    Notes checked:
    1134872 FAQ for stack Delta Files
    1022704 Upgrade phase EHP_INCLUSION and SPSTACK_REQUEST
    1277035 Solution Manager: EHP4 product data missing

    I downloaded the SPSTab.xml from SMP, but it didnt work. It gave an error: "The selected configuration file ("C:EHP1SPSTab.xml") is not usable. Reason: "Stackfile not found""
    I have used the dockument in the link you provided as a basis for my upgrade. So I still need this to work in order to upgrade my XI Netweaver 7.0 to Enhancement Package 1...
    In the document you provided:
    Section 3 SAP Solution Manager
    3.1 Support Package Level of SAP Solution Manager (Check - Mine is EHP1)
    3.2 System Landscape (SMSY) of SAP Solution Manager (Check - as stated above in opening post)
    3.3 SAP Solution Manager Maintenance Optimizer (Check)
    3.4 SAP Solution Manager Troubleshooting: (Check)
    3.4.4 No Stack Configuration File is generated: This is the core of my problem... I have read the notes listed, and run the IMG activity under Maintenance Optimizer, as per note 1134872. I get an warning stating "SAP ChaRM auto-configuration warnings" This could be the source of the problem, but in the thread Re: Message no. IMG_FASTCONF028  in Charm SolManiac says that it is nothing to worry about.
    So to summarise:
    I an still unable to generate XML file in Solman, and I am uable to get the XML downloaded from SMP to work with SAPehpi.
    BR
    Stian
    (EDIT: I am however not shure if the settings under SMSY etc are 100% correct, but in my mind, that should prevent Maintenance Optimizer from generating the XML file)
    Edited by: Stian Eiken on Jul 13, 2009 1:18 PM

  • Unable to create PDF - file could not be printed

    I am having a problem with a user who is unable to create a pdf using Adobe Standard 8
    The error messages is as follows:
    your file could not be printed due to an error on adobe pdf on Ne 04
    http://i45.photobucket.com/albums/f97/bsucards/584872418744_adobe.jpg
    I have tried to uninstall Adobe Standard 8 and reinstall and do all the updates
    I have uninstalled Adobe Reader 9 and downgraded it to Adobe Reader 8
    I have reinstalled Office XP
    I have created a new profile for this user
    The only way I can get it to work is to make the user an admin, which is not an option.  We have other users in the company using this version of Adobe without any problems

    Hi I dont think this is a permissions issue I just created a new WINDOWS PROFILE this fixed the issue the user already was a admin on the computer.  The issue was trying to save/print any file to PDF to either network or local to computer.  Once the new profile was made I was able to test and could once again create pdf files.  There must have been something in the old profile causing the issue and the new profile fixed the issue it was a last thing to to try as had tried everything I could think of.

  • Unable to Create a file in a directory through a Job

    Hi,
    We have a anonymous block which uses utl_file package
    It created a file in an oracle directory.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE     11.1.0.7.0     Production
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
          DECLARE
       v_definition_clob    CLOB;
       v_codes              VARCHAR2 (32767);
       v_engine_name        application.NAME%TYPE      := 'CLAIMS';
       v_knwldgebase_name   knowledge_base.NAME%TYPE   := 'CLAIMS';
       v_rule_name          VARCHAR2 (32767);
       v_msg                VARCHAR2 (200);
       fid                  UTL_FILE.file_type;
    BEGIN
       fid :=
          UTL_FILE.fopen ('MID5010_DOC1TEMP', 'Diagnosis_Report.csv', 'W', 32767);
       UTL_FILE.put_line (fid, 'Rule Name ,Associated Codes');
       FOR rule_name IN (SELECT DISTINCT rh.NAME, rh.rule_header_id
                                    FROM rule_header rh,
                                         knowledge_base kb,
                                         application app
                                   WHERE
                                         app.application_id = kb.application_id
                                     AND rh.knowledge_id = kb.knowledge_base_id
                                     AND app.NAME = 'CLAIMS'
                                     AND kb.NAME = 'CLAIMS')
       LOOP
          v_codes := NULL;
          BEGIN
             SELECT definition
               INTO v_definition_clob
               FROM rule_header
              WHERE rule_header_id = rule_name.rule_header_id;
          EXCEPTION
             WHEN NO_DATA_FOUND
             THEN
                v_definition_clob := EMPTY_CLOB ();
             WHEN TOO_MANY_ROWS
             THEN
                v_definition_clob := EMPTY_CLOB ();
          END;
          DBMS_OUTPUT.ENABLE (50000000);
          FOR code_indx IN (SELECT   d.diagnosis_code AS code
                                FROM midev.diagnosis d
                               WHERE d.diag_ctgry_lkpcd = 'D' AND ROWNUM < 10
                            ORDER BY 1 ASC)
          LOOP
             IF REGEXP_INSTR (v_definition_clob, code_indx.code) > 0
             THEN
                v_codes := v_codes || code_indx.code || '|';
             END IF;
          END LOOP;
          IF LENGTH (v_codes) > 0
          THEN
             v_codes := CHR (39) || v_codes;
          END IF;
          UTL_FILE.put_line (fid,
                                REPLACE (rule_name.NAME, ',', ' ')
                             || ','
                             || SUBSTR (v_codes, 1, LENGTH (v_codes) - 1)
       END LOOP;
       UTL_FILE.fclose (fid);
    EXCEPTION
       WHEN OTHERS
       THEN
          UTL_FILE.fclose (fid);
          v_msg := DBMS_UTILITY.format_error_backtrace ();
          DBMS_OUTPUT.put_line (v_msg || SQLCODE || ',' || SQLERRM);
    END;
             Now when i converted anonymous block into a procedure "DIAGNOSIS_REPORT_PROCEDURE" and calling it thorough a job its not creating the file. we are using the below code to create a job
                    BEGIN
       --DBMS_SCHEDULER.drop_job (job_name => 'DIAGNOSIS_TESTING_REPORT_3');
       DBMS_SCHEDULER.create_job
          (job_name             => 'DIAGNOSIS_TESTING_REPORT_3',
           job_type             => 'STORED_PROCEDURE',
           job_action           => 'DIAGNOSIS_REPORT_PROCEDURE',
           start_date           => to_Date('30-Mar-2012 16:44:03','dd-mon-yyyy hh24:mi:ss'),
           --repeat_interval      => 'freq=yearly',
           enabled              => TRUE,
           comments             => 'DIAGNOSIS_TESTING_REPORT_3'
    END;Any help would be appreciated..
    Thanks
    P Prakash.

    I got the answer.
    If we need to run a procedure through job then we must execute privilege .

  • Unable to create PDF files from any application in any Acrobat version

    Hello, I am hoping someone can help me find a solution to a problem I am having creating PDF files.
    I have searched the Internet for a solution to this problem and can't find any information that helps me.
    I am running OSX 10.8.5 on a 2.5 GHZ Intel i5 Mac Laptop
    I cannot create PDFs from any program, Quark, Word, ect.
    When I try to print to the PDF printer, the printer pauses when it tries to open the Distiller. When I click resume, it pauses itself again.
    I have tried to save the document and create the PDF from within the distiller itself and get this error log:
    %%[ Error: undefined; OffendingCommand: MMXPR3 ]%%
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    I was originally using Acrobat 8, But I installed the trial version of Acrobat 11 and it has the same problem.
    The problem seems to be something to do with the distiller. I have a lot of Adobe software so I am trying to avoid a clean/re-install of Adobe software but will do it as a last resort.
    Thanks in advance for any suggestions.

    Hi,
    Besides pamma has suggested, here are similar issues, you can take a look at:
    http://unsolicitedbutoffered.blogspot.com/2014/01/quick-fix-volume-syntax-error-when.html
    http://crowdsupport.telstra.com.au/t5/T-Suite-Applications/There-was-an-error-opening-this-document-The-filename-directory/td-p/197425
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

Maybe you are looking for