Unix mystery; error status = 1 and 2;

In a terminal:
$ cat nonexistantfile ; echo $?
cat: nonexistantfile: No such file or directory
1
$ cp /usr/include/sys/errno.h /usr/include/sys/abc.h; echo $?
cp: /usr/include/sys/abc.h: Permission denied
1
The error messages are correct; the numeric values are the same, even though they are different errors. One of them should be a 2, no?
Why?

Most (but not all) C tools and many C routines will use zero as a success code and non-zero as failure, though that can vary. Outside of the ERRNO stuff, there's no particular agreement on individual errors, and there's no particular uniformity on whether you'll get ERRNO or some other value.
Check the man pages for the return values for the various commands.
"The cp utility exits 0 on success, and >0 if an error occurs."
"The cat utility exits 0 on success, and >0 if an error occurs."
Beyond that, there's not a particularly dependable consistency. Sometimes from one version of the tool to the next, unfortunately.

Similar Messages

  • "waiting" and "system error" status cannot be resent in rwb?

    Hi,gurus:
    In RWB->MESSAGE MONITORING,I can't resend or cancel the messages with the status " waiting" and "system error".
    when I clicked "resend" button,it asked for user and password.After I was authentificated,the system didn't resend a message. Have you ever met this issue?
    By the way,I could resend the error messages before.
    Thanks in advance.

    Hi,
    I checked the note 1233918,and it talked about the same issue.
    But the solution is as follows,which I don't know what to do.(Our PI version is PI7.0 SR3 SP14)
    Symptom
    When the first message for a managed system is cancelled or resent, after pressing ok in the logon pop-up nothing happens - message is not resent or cancelled. The logon data is correct, since subsequent resend/ cancel works without further logon request. Another symptom is cancelling or resending a wrong message, when using the filter mechanism in the table. E.g. the table displays messages A, B, C, D. If message C is selected and after that the filter is set so that message C is hidden from the filter selection, when selecting message D and trying to resend/cancel it, message C is cancelled/resent (the hidden one, previously selected) and nothing is happening with message D.
    Other terms
    NWA, PI, Message monitoring, resend, cancel
    Reason and Prerequisites
    The UI Proxy connection was not obtained properly. Another reason - TableAccessories was not invalidating the nodes properly. Also after filtering the result list, resend/cancel was taking wrong message Ids.
    Solution
    For SP5 install LMNWABASICCOMP05P_1.SCA or higher patch level.
    For SP6 install LMNWABASICCOMP06P_1.SCA or higher patch level.

  • CreatePDF printer    File shows ERROR in the status column and will not upload to my account

    When printing to the CreatePDF printer.  the file shows ERROR in the status column and will not upload to my account

    Adobe retired this Feb 17, 2014.
    This app sent content to and got content from the web based services of "CreatPDF" and "PDF Pack".
    These are subscription services out in "the cloud". When the app was live you had to be online and signed into your account.  The user forum for CreatePDF has a DOC that speaks to the app removal.
    Be well...

  • Error Logging in B2B Business Message Status Reports and Error Reports.

    Hi,
    Could someone please let us know as to how the error messages are being shown up in the b2b frontend in the Business Message Details Report and Error Reports.
    In some of the cases the error message logging is not happening properly and even against the valid transaction block the entire iAudit Report or the B2B Analyzer report is getting posted .
    In some cases the error message is logged as AIP-51505: General Validation Error (for the transaction block which is valid and having no errors)
    Is there any way from the b2b backend these error messages and business messages could be traced or is there any other way wherein the proper and relevant error messages could be tracked from B2B.
    Thanks
    Sachin.

    Hello,
    Business message status reports identify business message instance details.These details include the sending and receiving trading partners, exchange protocol,document protocol, business action and its state, message date, and message details.
    Error status reports identify error message details. These details include the error code, error text, business message identification, message date, and message details.
    Please fix up a telecon to 918041086150 for further discussion on the same.
    Rgds,Ramesh

  • Error handling problem with outbound idoc status 02 and  XML HTTP Port

    I set up an ALE scenario to send master data out of SAP via an XML HTTP port.  All goes well until the idoc receives error 02. 
    It looks like idocs in this error status with the use of an XML HTTP port can not be reprocessed via the standard SAP techniques.  Program RBDAGAIN takes them out of the list for reprocessing (even though the connection is back up and running).
    Is there any solution to still use the standard ALE error handling ?

    Hi Karin,
    Looks like based on note 701597, you can only reprocess these idocs manually via a workitem.  I qouted the relevant text below:
    3. Error handling with status '02':
    An HTTP IDoc in status '02' should not automatically be sent once again.
    Up to now, the RBDAGAIN report was used to resend incorrect IDocs.
    However, this report was adjusted and now deletes all IDocs in status 02
    to be routed to a HTTP port from the list of selected IDocs. IDocs to a
    HTTP port in status '02' should only be sent manually via a work item.
    Regards:
    Rex

  • I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:     InPageError   Error Status Code:     c0000185   Faulting Media Type:     00000003   OS Version:     6.1.7601.2.1.0.768.3. Any clue why or how

    I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:
    InPageError   Error Status Code:
    c0000185   Faulting Media Type:
    00000003   OS Version:
    6.1.7601.2.1.0.768.3. Any clue why or how to fix?

    InPageError
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get itunes to launch properly afterwards?

  • Facing the error : Status and active flag in one item do not match

    Hi Experts,
    I am getting error : Status and active flag in one item do not match in GOA distribution and while adding item in the item data , following are the relative information :
    I am using SRM 4.0 and Item is free text.
    Please help if you have faced such an error.
    Thanks,
    Atul

    question not clear. you have activate one line item and the same not in ECC contract.
    for ex
    4600001000 - GOA
    item 1 - active
    ecc
    4600001000 - contract
    item - inactivate
    -locked
    muthu

  • Data flow task error failed validation and return validation status "VS_NEEDSNEWMETADATA"

    I have ETL with ~800 tables that I moving from Oracle to SQL Server (Prod Oracle -> Prod SQL)
    Now the Oracle/SQL new version was came from vendor that I need to test, and for that I created new DEV environments for Oracle and SQL , the update includes updated new columns in exists tables and new tables . (DEV Oracle -> DEV SQL)
    So what I tried to do is to take the old ETL(PROD) to change the connection to DEV servers.
    Then I executing the packages from local laptop it's working, and if I trying to execute the packages from job schedule it's giving me errors : "Data flow task error failed validation and return validation status "VS_NEEDSNEWMETADATA"
    I went to each table to check the columns if something different, and I was dropping some of the tables and recreated them in the destination but the error still shows. I also tried to change the package to "DelayValidation" to True but without
    success.

    I do not understand the difference between "... if I going to change the Connection Manager to new connection" and "didn't change the Connection Manager, only changed inside the Server name / user/ pass" 800 tables.
    What I see is some tables your packages sees in Dev (laptop) is not of the same schema once the package is deployed hence the metadata error.
    Arthur
    MyBlog
    Twitter

  • ApplicationDidReceiveMemoryWarning and exit with "error status 101"

    My application crashed with memory error. It doesn't show any memory leak, but handles a large database and it looks like, its cache causes this problem.
    I fixed it by closing database and reopen it inside "applicationDidReceiveMemoryWarning".
    It works great on the first call to applicationDidReceiveMemoryWarning (actually significantly dropping the memory usage). But the function is never called again, and my application eventually crashes after a few minutes of heavy usage with "error status 101" .
    My understanding is that "error status 101" happens when app doesn't release memory properly on didReceiveMemoryWarning, but in my case, it just crashes without giving me a chance to clean up.
    Any idea on what's going on here?

    Yes, actually, the other answer you got was wrong.
    Just throw an error inside the script, probably (given what you want to do) at the end. For example:
    osascript -e 'error "This is a test." number 9000'
    on the command line will give (on the command line) something like:
    6:22: execution error: This is a test (-128)
    If you read the man page for osascript, you will see that by default script errors are written to stderr; if you have your shell script watch stderr between the start of the script and the end of it, you'll catch the result message.
    A few things to keep in mind:
    --> AppleScript can catch its own errors using a "try" block, similar to in other languages. The basic syntax is:
    try
         (* Do some stuff here *)
    on error msg number num
         (* Process the error here *)
    end try
    --> If you throw an error yourself, try to use an error number which is "safe". Most of the negative numbers are already in use as standard signals. For example, -128 is "User canceled", while -43 is "file not found" (which pops up if you cast a string to an alias and the string does not describe a path to a valid item in the filesystem -- that's actually a very simple way to test for file existence). If you use numbers starting with 9000, which seems to be the consensus starting point, then you have the additional advantage of being able to figure out where things went wrong.

  • Unix Command Error 7 and 9?

    So I'm just starting to attempt to set up a qmaster render farm using After Effects CS3 on a small test setup before we try anything large. The issue is - it took well over 20 hours (somewhere in the neighborhood of 23-24 hours) to do what would take After Effects on its' own no more than 5 minutes. I was only rendering out 1000 frames of a comp which didn't have any heavy effects on it as well.
    My current setup:
    2 Intel Mac Pro workstations with 8cores, 8gb ram, osx 10.5.5 as Service nodes.
    1 G5 Mac Pro workstation running as the cluster controller.
    The issues I ran into: numerous Unix Command Error: 7, Unix Command Error: 9 errors. Out of the 1000 frames that were set to be rendered, 15 got rendered out as psd's (frames #: 1,111,333,370,481,518,556,630,667,703,740,778,852,815,963). The controller was trying to access aerender on the controller itself even though I don't have any rendering services setup to run on the controller.
    Any help or ideas?
    Thanks!

    Let's first try the following document:
    [iTunes for Windows: "iTunes was not installed properly. Please reinstall iTunes" message|http://support.apple.com/kb/TS3074]
    ... but if no joy with that, we'll try checking on issues relating to a damaged Apple Application Support dll. If no luck with the document, do you have a 32-bit or 64-bit Vista? (That affects how we proceed with an Apple Application Support issue.)

  • Error "Status change from READY to COMMITTED is not allowed"

    Dear experts,
    once again SAPs workflow environment drives me crazy with mysterious error messages.
    Some time ago I posted a question here concerning the problem that I cannot put back a workitem by using function module SAP_WAPI_PUT_BACK_WORKITEM due to a lock on this workitem which has been set right after it has been double clicked in the business workplace workflow inbox:
    [How can I put back a workitem before I'm back in the business workplace?;
    Since I do not want to dequeue the lock for the workitem in my application (where the user finds the appropriate detail information along with the function buttons for approval, rejection and F3/BACK) I tried it with calling a POPUP_TO_CONFIRM ("Do you want to put back the workitem?") directly from within the BO-method, right after returning from the FM that called my application. From here (the popup then shows in front of the business workplace instead of the application) the locking doesn't seem to be a problem any more! But whatever I do after the users decision to put the WI back - calling the FM SAP_WAPI_PUT_BACK_WORKITEM or trying to leave the method with macro EXIT_CANCELLED - leads to the error message "Status change from READY to COMMITTED is not allowed" and the workitem changes to status ERROR, too. This message seems to be bull***t, since the status of the item is supposed to go back to READY.
    Does anybody have experience to help me on that ?
    Thanks in advance
    regards
    Andreas

    Hello Andreas,
    Ah, sorry, there was so much talk about user decisions that I assumed you were using a standard decision task.
    Still, I would be extra careful of changing the way workflow usually works because you have an unknown target audience that are based on the standard.
    The standard SAP philosophy is quite simple: cancel/F3 or do nothing and it stays reserved. If you do not want it reserved, you need to perform an action. This is based on a majority of processes: in most cases when you execute a work item you will also be the one who is going to completed it. Replacing it is the lesser used of the two alternatives, therefore it is the only one that requires an action on the part of the user.
    Again, this is intended as constructive input. Strange quirks and unusual behaviour tend to add a black mark to software if they do not make things easier to use. In many environments users are not even aware of the reserve/replace business, so there you would be adding an additional layer of complexity.
    Personally I would find an exit popup annoying as a regular workflow user - regular decisions can be approved with one click, or I can back out with a single click if I need to make a phone call or look up some info before approving - but with this new-fangled thing I've got an extra button to click and an extra thing to think about. This is especially the case in a payment approval scenario where you may have users in some departments who may approve hundreds of payments each week.
    My suggestion would be to leave it like that. By all means put an option into the user decision to put it back or to 'un-reserve' it (and loop round if the user chooses it). That way you are adding value and not clicks.
    Cheers,
    Mike

  • BDC Sessions in Error Status

    Hello!
    I have a customer that usually have error status in BDC Sessions and they expect that original users clean up their sessions.
    But they are looking for some task in background to help them, is it possible?
    And he has another doubt:
    "How does the system store the data used in the BDC session?  If we have an error and need to correct the data or re-run the session, where will the tool pull the data for that session?  We are trying to determine if failed sessions are leaving data on the unix filesystems, etc."
    Thanks in advance,
    Daniel Kaoro Kobashigawa

    Hi,
    If you are using the BDC session methos then the error logs and other ino are stored in teh session in SM36
    We can re-process the sessiions that are error ones seen in the Error records.
    Search SDN more on this.
    We have many threads on this issue.
    If you are using the Call Transaction then we dont get the exact error but we can see the error records using BDCMSGCOLL.
    Usually both are combined to handle the data in a accurate manner.
    Regards
    Lekha

  • Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests. The http status code and text is 400, Bad Request.

    Hi All,
    I am seeing the following error for SMS_AWEBSVC_CONTROL_MANAGER component with Message ID: 8100
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    awebsctl.log file has below errors:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Management point and Application Catalog Website Point are installed on the same Server where I am seeing the error for Application Catalog Web Service Point role. Management Point and Application Catalog Website Point are functioning properly. Application
    Catalog Website is working.
    Thanks & Regards, Kedar

    Hi Jason,
    Application Catalog Web Service Point and Application Catalog Website Point; both are installed as per below configuration on same Server:
    IIS Website: Default Web Site
    Port Number: 80
    with default value for Web Application Name configured.
    For SMS_AWEBSVC_CONTROL_MANAGER component, I am getting below error in Component Status:
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    Possible cause: Internet Information Services (IIS) isn't configured to listen on the ports over which AWEBSVC is configured to communicate. 
    Solution: Verify that the designated Web Site is configured to use the same ports which AWEBSVC is configured to use.
    Possible cause: The designated Web Site is disabled in IIS. 
    Solution: Verify that the designated Web Site is enabled, and functioning properly.
    For more information, refer to Microsoft Knowledge Base.
    And awebsctl.log has the below error lines:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    STATMSG: ID=8100
    What should I check from IIS side?
    Application Catalog Website is functioning properly.
    Thanks & regards,
    Kedar
    Thanks & Regards, Kedar

  • Error 8 when starting the extracting the program-data load error:status 51

    Dear all,
    <b>I am facing a data exracton problem while extracting data from SAP source system (Development Client 220). </b>The scenario and related setting are as the flowings:
    A. Setting:
    We have created 2 source system one for the development and another for the quality in BW development client
    1. BW server: SAP NetWeaver 2004s BI 7
    PI_BASIS: 2005_1_700 Level: 12
    SAP_BW: 700 Level:13
    Source system (Development Client 220)
    2. SAP ERP: SAP ERP Central Component 6.0
    PI_BASIS: 2005_1_700 Level: 12
    OS: SunOS
    Source system (Quality Client 300)
    2. SAP ERP: SAP ERP Central Component 6.0
    PI_BASIS: 2005_1_700 Level: 12
    OS: HP-UX
    B. The scenario:
    I was abele to load the Info provider from the Source system (Development Client 220), late we create another Source system (Quality Client 300) and abele to load the Info provider from that,
    After creating the another Source system (Quality Client 300), initially I abele to load the info provider from both the Source system – , but now I am unable to load the Info provider from the (Development Client 220),
    Source system Creation:
    For both 220 and 300, back ground user in source system is same with system type with same authorization (sap_all, sap_new, S_BI-WX_RFC) And user for source system to bw connection is dialog type (S_BI-WX_RFC, S_BI-WHM_RFC, SAP_ALL, SAP_NEW)
    1: Now while at the Info Package : Start data load immediately and then get the
    e-mail sent by user RFCUSER, and the content:
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Service API .
    2:Error in the detail tab of the call monitor as under,
    <b>bi data upload error:status 51 - error: Error 8 when starting the extracting the program </b>
    Extraction (messages): Errors occurred
      Error occurred in the data selection
    Transfer (IDocs and TRFC): Errors occurred
    Request IDoc : Application document not posted (red)
      bw side: status 03: "IDoc: 0000000000007088 Status: Data passed to port OK,
                                    IDoc sent to SAP system or external program"
      r<b>/3 side: status 51:  IDoc: 0000000000012140 Status: Application document not posted
                                   Error 8 when starting the extraction program</b>
    Info IDoc 1 : Application document posted (green)
       r/3 side: "IDoc: 0000000000012141 Status: Data passed to port OK
                     IDoc sent to SAP system or external program"
       bw side: "IDoc: 0000000000007089 Status: Application document posted,
                     IDoc was successfully transferred to the monitor updating"
    Have attached screen shots showing error at BW side.
    •     check connection is ok, tried to restore the setting for bw-r3 connection – though same problem
    •     Have checked partner profile.
    <b>what's wrong with the process? </b>
    Best regards,
    dushyant.

    Hi,
       Refer note 140147.
    Regards,
    Meiy

  • Error Status Message

    Hi Vadim,
    Thanks for your help in my previous issue.
    My client wants to setup the error message when the user enter >1 value in input schedule against to each month(Jan,Feb and March etc) it is basically HC planning where as they have average headcount value is 1 (So that the user has to enter the value between 0 to 1). The requirement is when the user enters more than 1 then the system needs to thrown an error message and it has to restricted the user.
    I have found the normal excel function to setup this error status message through data validation in excel. Can you please tell me is there any EPM function available for this kind of setups in SAP BPC 10.0 EPM. So that we can use that option instead of normal excel function.
    Please see my current setup message in the above screen shot.
    Regards,
    Satish

    Hi Satish,
    No EPM functions available, you have to use Excel data validation.
    BPC can validate data only afte data was sent to database.
    Vadim

Maybe you are looking for

  • RENN item not flowing in return sales order automatically

    Hi all, When i add RENN in item category proposal for copy control of billing doc to sales doc(YDRE to YDF2) where YDRE is return and YDF2 is outbound billing. So when I create a return order with reference to invoice will the free good item flow aut

  • Digital Signature: Need More Control

    I am trying to use Digital Signatures in my form. I need to be able to specify following 1. Dialog box with Add Digital ID button is opened always even if there is only one Digital ID exists in the system. 2. Default to Ask me which Digital ID use ne

  • Exception by call an internal KM-URL at NW04s Portal

    Hello specialists, In one of my portals (NW04s SP15). The internal call of an KM-URL throws an access-denied-exception. The permissions of the called document are ok, I think so. It work if I grand the EU_Role-Role to the user, but I get also the Hom

  • BOM for consume, PR agnst the equip?

    Dear The equip BOM materails which is created by us for 1 equipment. Example Equip: pump Bom are : Casing, Bearings, Gland rope etc after some days the same equip needs a materials. for this we have created the orders and we need the bearing agst tha

  • How to insert image file as a field value into blob field type using insert statment

    i have a column named picture of datatype BLOB now i want to insert an image file into that column using INSERT state so that it can be called in a jsp file using getBLOB request method. HELP!! thank you sal