Debug the system-call

hi all,
just a little doubt.
can we debug a system call?
while debugging i reached a point of statement ..
"system-call ict "
i couldnt debug this call and directly got the output.
plz tell me how to debug a sys-call , if at all we can.

The only thing you can try is to switch on system debugging, but I don't think this will work for these kind of calls. On that level debugging is normally forbidden.
System debugging is only set for debugging ABAP system programs, while SYSTEM-CALLS are processed on Kernel level.
P.S. Switch on system debugging: While debugging, go menu->settings (I believe)->switch system debugging on / off.

Similar Messages

  • Error in the system call 'c_rsts_open_read'

    hello all,
    i am getting the error 'OBJECT NOT FOUND  after the statement   'C_RSTS_OPEN_READ' 'in quality server but ,its working fine in development testing.
    CALL 'C_RSTS_OPEN_READ'
              ID 'HANDLE'  FIELD cs_fbhandle-handle
              ID 'CLIENT'  FIELD sy-mandt
              ID 'NAME'    FIELD cc_tsnam
              ID 'PART'    FIELD 1
              ID 'CONV'    FIELD ' '
              ID 'BINARY'  FIELD 'X'
              ID 'ALLINE'  FIELD ' '
              ID 'TYPE'    FIELD 'DATA'
              ID 'RECTYP'  FIELD 'U------'
              ID 'CHARCO'  FIELD '    '
              ID 'PROM'    FIELD 'I'
              ID 'RC'      FIELD cc_rsts_rc
              ID 'ERRMSG'  FIELD cc_rsts_msg.
    This statement is returning :cc_rsts_rc = 128 and cc_rsts_msg = 'object not found' in the quality server
    please help.....
    Regards
    Geeta Gupta

    Hi:
    There is an use of this function module, hopefully it would be helpful, have a look
    [Link|http://www.sap-img.com/abap/spool-output-greater-than-255.htm]
    Regards
    Shashi

  • The system doesn´t let me change the dock and .jar files

    Dear professionals,
    since a couple of days I come across with a weird problem:
    I am logged in as admin but the system doesn`t perform several modifications:
    such as:
    if I remove a broken link from the dock (grey questionmark) and replace it with a new link to the new app the next session everything is unchanged and the questionmark is back.
    if I want firefox not to play quicktime and try to change the preferences it flips back immediately
    if I want to open Cocktail to schek something it does not accept me as admin - whereas the systems calls me admin.
    maybe the futile attempt to alter the minecraft.jar has the same reason.
    At many files the file info shows a strange entry at the botten where the sharing/permission are listed: Name is "Laden..." meanig "Loading..." with the dots and as symbol a grey person with tiny questionmark; permission is "read only"
    History:
    Till now I never used a password and logged in automatical as admin
    I upgraded to Lion
    I installed a second account to have a workspace not as admin
    I gave a password to the admin account
    I got nuts with the second account as I couldn´t change the preferences of firefox and delete files and so on
    I gave administration rights to the second account to customize the workspace
    I realized the problems with the admin account - changes where ignored/forgotten by the system w/o warnings
    I deleted the second account as it seemed to cause the trouble
    I repaired the rights in the admin account
    I repaired the HD with HD recovery
    I try to check the system with cocktail but cocktail tells me the password is not sufficient - it opens the app but it refuses any modifications
    I switched to manual login
    System tells me that the keychain.login does not accept the password
    I set the password for keychain also
    keychain first aid tells me the password does not work ?
    I removed the password from admin account
    I removed the password from keychain first aid is happy
    Repair rights does not find any trouble
    Cocktail does not accept me anyway anymore, without password (as i logged in) or the former passwords- it blocks at all.
    And all the other stuff listed at the beginning drives me crazy
    File Info window tells me i have adapted rights- whatever it means, as i am listed with full read/write rights
    now I am stunned.
    I would like to use my Installation disk to repair anything - but as it is not the lion system I am afraid to cause more trouble.
    Does anyone have a clue?
    And sorry for the strange text- english is not my native language
    And, btw, is netinfo manager removed by lion? it does not appear on my volume.
    Thanks for Your help
    Bernhard

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy – do not type – the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Correct Forum? CGI and Server behaviour on Solaris at system()-call

    Hi to you all,
    Do not know if i am in the correct forum, but maybe it is a Webserver problem.
    I have Sun ONE Webserver 6.1 running on Solaris.
    Craete some CGI`s in C.
    Now I have a problem with one CGI, which have to call a Shellscript via system() call.
    The Client just calls the CGI with some parameters, which will write the informations in a file with some additional informations from a database, after that, the script should be startet and do some printjobs in the background.
    The CGI and the Shell-script is working fine. My Problem is, that the system() call always waits, until the ShellScript has finished, so the Webserver send the "data successful written" site after a couple of minutes, it should send it immeditatly to the client, so the session is closed.
    I have tried to put the shellscript in background with "&", also with nohup and a second shell script which justs starts the first script, also with all combinations of nohup and "&" for background process.
    also i tried with "pclose(popen(SCRIPT,"W");" to call the script, it is always the same, the session will close only, when the script has been finished.
    In an other Forum I found an entry, that , however, IPlanet webserver always will do this in this way. The session will be closed, when all called processes has benn fisnished.
    Any Ideas to solve my problem?

    The web server reads from the CGI program's stdout. It knows the HTTP response is complete when the CGI program closes its stdout.
    When you call system(), the child process inherits the CGI program's stdout and keeps it open until it finishes. If you want the child process to run asynchronously from the HTTP response, you should give the child process a new stdout with > /dev/null. (You'll still need to place the child process in the background with &.) Alternatively, you can fork(), close(1), then exec().

  • Reading output of a system call

    Hi,
    It appears that java system call does not return a value in Netware OS.
    The same code functions flawlessly on other OS'es, eg. linux and windows.
    If the following code is run on a Netware (6.5), the following error is
    returned:
    External App Returned:
    java.io.IOException: Bad file number
    Does anyone knows how to receive the values from the system call on Netware?
    To reproduce the problem, do the following:
    1) save the included source code to netware server's sys:java/classes
    with a filename ExecuteExternalApp.java
    2) compile it issuing a console command:
    javac sys:java/classes/ExecuteExternalApp.java
    3) execute the application:
    java ExecuteExternalApp volumes
    This should successfully launch the system command "volumes" but also
    would give an error message:
    External App Returned:
    java.io.IOException: Bad file number
    ---- Source code
    import java.io.*;
    public class ExecuteExternalApp{
    public static String executeSystemCommand(String command) throws
    Exception {
    String ret = "";
    try
    Process process = Runtime.getRuntime().exec(command);
    BufferedReader input = new BufferedReader(new
    InputStreamReader(process.getInputStream()));
    BufferedReader err = new BufferedReader(new
    InputStreamReader(process.getErrorStream()));
    //InputStreamReader iar = new
    InputStreamReader(process.getInputStream());
    StringBuffer sb = new StringBuffer();
    String line = "";
    //while ((line = input.readLine()) != null)
    //testi tuleeko yksi rivi
    line = input.readLine();
    sb.append(line);
    input.close();
    ret = sb.toString();
    catch (Exception err)
    ret = err.toString();
    return ret;
    public static void main(String[] args) throws Exception {
    if (args.length > 0){
    String output = executeSystemCommand(args[0]);
    System.out.println("External App Returned:");
    System.out.println(output);
    else
    System.out.println("Usage: ExecuteExternalApp <command>");

    Guenter wrote:
    > Hi Jonne,
    > Jonne Viljanen <jonne.viljanen@rmv_this.helsinki.fi> wrote in
    > news:y%[email protected]:
    >
    >> Thank you for your effort. I've been trying to write a simple program
    >> that would monitor if any cluster resource would be in comatose and in
    >> such case, it would try to online the resource on some other cluster
    >> node. For this I'd need to run these system commands and parse their
    >> output:
    >>
    >> - "cluster resources" - to see if any resource is in comatose
    >>
    >> and
    >>
    >> - "cluster view" - to determine which nodes are online.
    >>
    >> Also i'd need to run "cluster offline resource" and "cluster online
    >> resource node", but for these command I would not need to get the
    >> output.
    >>
    >> I know that my approach is a bit clumsy, but it's beauty is in its
    >> simplicity. Novell's engineer suggested that with a bit more effort one
    >> could read the data from ldap or cluster related virtual XML files on
    >> the _Admin volume. I think that I should investigate the latter
    >> approach, since I'd like to avoid handling the ldap authentication. I
    >> appreciate any comments and suggestions. Code examples are also greatly
    >> welcomed ;-)
    > hmmm, well that sounds to me as if the language doesnt matter at all since
    > finally you most likely fire your app from cron to do these tasks frequently
    > automatically, right? Therefore I'd suggest you take a look at Perl - it
    > seems better suited for these tasks; look at sys:/perl/scripts where you find
    > Perl scripts which do already some cluster stuff, and AFAICT these make use
    > of the _ADMIN volume.
    > Additional info and Perl samples can be found with the VFS NDK IIRC:
    > http://developer.novell.com/wiki/ind..._File_Services
    >
    > greetz, Gnter.
    >
    Hi Gnter,
    Thank you for your excellent help. I started to play with the _ADMIN
    -volume today. I was amazed to see how much can be done with it. I got
    my little cluster watch application almost working in just 1 hour, but
    then spent the rest of the day trying to get it fully functional ;-) I
    still cannot figure out what is wrong with my code, so I was wondering
    if I could get any help from this newsgroup.
    I'm able to read the *.xml files and determine the cluster state and all
    the information I need. However I dont seem to be able to write the
    command files. I'm trying the following:
    public void offlineClusterResource(String resourceName) {
    String fileName = "_ADMIN:/Novell/cluster/Resource.cmd";
    //String logFile = "sys:java/classes/ClusterWorker.log";
    String commandLine = "<virtualIO><datastream
    name=\"command\"></virtualIO>"+
    "<ncsRequest><offline>" +
    "<resource>" + resourceName + "</resource>" +
    "</offline></ncsRequest>";
    //Log("Turning the cluster resource " + resourceName + "
    offline!!!", logFile);
    try {
    //PrintWriter in autoFlush mode
    PrintWriter pw = new PrintWriter(new FileWriter(fileName,
    false), false);
    pw.println(commandLine);
    pw.close();
    } catch (IOException e) {
    System.out.println("Unable to write " + fileName);
    It seems not to write anything to _ADMIN:/Novell/cluster/Resource.cmd.
    If I set the file to be eg. SYS:/tmp/Resource.cmd -it writes nicely to
    the file.
    What am I missing here?
    Cheers,
    Jonne

  • Write system call results to a text box

    I am making a DOS system call that creates a file. Once this file is created it gives me a "packet created successfully" message that is written to the screen.
    I am using Netbeans 5.5.1 and Swing. and I want this message to be output into a JtextArea. The system call works fine and the file is created, I just can't get the message to write to my text area.
    Below is a sample of my code:
    private void btn_importActionPerformed(java.awt.event.ActionEvent evt) {                                          
    // TODO add your handling code here:
         String Rep = txt_Repname.getText();
         String Work = txt_Workdir2.getText();
         String VOB = txt_VOBtag.getText();
         String VOBstorage = txt_VOBName2.getText();
         String Replicapath = txt_Replicapath.getText();
         String command = ("cmd /c multitool mkreplica -import -npreserve -nc -vreplica " + Rep + " -work " + Work + " -tag \\" + VOB + " -vob " + VOBstorage + " " + Replicapath);
         StringBuffer sb = new StringBuffer();
         Process p = null;
         try {
                p = Runtime.getRuntime().exec(command);
            } catch (IOException ex) {
                ex.printStackTrace();
        Scanner s = new Scanner(p.getInputStream());
        while(s.hasNextLine()) {
            sb.append(s.nextLine()+"\n");
        String result = sb.toString();
        txt_Importresults.setText(result);
        }           

    This works okay for me.
    import java.io.IOException;
    import java.util.Scanner;
    public class Tester {
         public static void main(String[] args) throws IOException {
               StringBuffer sb = new StringBuffer();
              Process p = null;
              try {
                     p = Runtime.getRuntime().exec("HELP");
                 } catch (IOException ex) {
                     ex.printStackTrace();
             Scanner s = new Scanner(p.getInputStream());
             while(s.hasNextLine()) {
                 sb.append(s.nextLine());
                 sb.append(System.getProperty("line.separator"));
             System.out.println(sb.toString());
    }Have you read the Traps article on JavaWorld?
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Deleting System Call Handlers in Unity 7.x

    I am trying to delete a system call handler for a conference room extension we have.  When I try and delete it I get an error message  "Operation cannot be completed because the object is in use"  How can I find out what its linked to so I can remove the link and delete the system call handler.

    Bill et al,
    For handlers (interview, directory, system, etc) that refuse to go  away, follow the same process as above but use this query:
    run cuc dbquery unitydirdb select * from vw_handlerreference where  objectid in (select objectid from tbl_handler where  fn_tolower(displayname) = lower('myhandler'));
    Replace myhandler with the actual display name of the handler.
    Example:
    run cuc dbquery unitydirdb select * from vw_handlerreference where  objectid in (select objectid from tbl_handler where  fn_tolower(displayname) = lower('Goodbye'));
    objectid                             displayname                   referencetype referrerobjectid                     referrerobjecttype
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Opening Greeting              AfterMessage  3cbc5620-28b9-4757-8e20-138bbb5f8a27 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Operator                      AfterMessage  97ce3eab-4eb4-4627-acbf-627bb98cbd8d 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Primary                       AfterMessage  83b42c0c-38eb-47bd-8e95-a917b55b678d 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Primary                       AfterMessage  cd3764df-6ff9-4856-9910-abdc73e7125d 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 RobWeimann                    AfterMessage  132b5cfe-e045-42ee-bcd0-2b7d86ce7cbf 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 System Call Handler Template  AfterMessage  51f8b56a-61ac-4909-9dba-17aa18556571 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 System Directory Handler      NoInput       a6dea20d-f5a9-4f76-be60-8aa8994c3037 6               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 System Directory Handler      NoSelection   a6dea20d-f5a9-4f76-be60-8aa8994c3037 6               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 abell                         AfterMessage  b55f1562-45e3-4b54-9e55-7a6d4ac081b2 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 ebell                         AfterMessage  75c3f060-c5bf-4d24-9ffa-d056362dce47 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 manoj3                        AfterMessage  8304ac82-63fa-4e80-9cc1-6b8052d73575 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 miyazaki                      AfterMessage  8ce70dbd-9a6b-4ee6-8387-8a1dc4ced323 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 operator                      AfterMessage  d0906380-687c-448f-a078-d8b8b7bfa3d1 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 undeliverablemessagesmailbox  AfterMessage  964fd52e-ed65-4992-b9fe-22cc7e39f560 3
    99% of the cases I've seen are with users that have a caller  input option configured to point to the specific call handler.  In that  case, you'll see a "TTx" under the referencetype column where x=0-9.  Example, TT7 means caller input key 7 is configured to send to the call  handler you're trying to remove.
    Hope that helps everyone,
    Brad

  • How & when to debug a system ?

    Dear All ,
                                                     I need to know that as when i got an Abap run time error then how can i know that s debug is required at this time or not , OR the Abap run time error should be of some different type so in particular error only debug is possible , Pl guide when it is neededto debug the system .
    Thanx in adv
    sap2008

    Debug the program whenever you find that the fields have some issue.
    you get a line number marked with ">>>>>>>"
    whenever you get the runtime error .
    please put a breakpoint before this statement  in your main program and start your debugging using /h
    Good Luck!!!

  • A problem about system-call

    hi guys,
       i found in the interface IF_HTTP_ENTITY
       the method SET_HEADER_FIELD has the codes like below
       <i>system-call ict
        did
          ihttp_scid_add_header_field        " add instead of set!!!
        parameters
          m_c_msg                            " > c handle
          name                               " > header field name
          value                              " > header field value
          m_last_error.                      " < return code</i>
    i have look at the help of the system-call ,but i cant find the same help about the ICT and did
    my question is can somebody give some explanation about
    <i>system-call ict
    did
    parameter</i>
    thank you

    hi
    i just only new in BSP application,my question is why after the "system-call" we can use the parameter "did" and "ict".  
    i have just refer to the help document of the "system-call" but i can't find the information about the code
    <i>system-call ict
    did
    ihttp_scid_add_header_field " add instead of set!!!
    parameters
    m_c_msg " > c handle
    name " > header field name
    value " > header field value
    m_last_error. " < return code
    </i>
    so can you give me some explanation about this ?
    i wont do something to change them.
    thank you

  • Linux system call used in process creation from java?

    Does Runtime.getRuntime().exec("some command"); bottom out in vfork, fork or something else on Linux versions of the java 1.5 jdk?

    If the second, get the VM source and look. Or run a test case using the system call tracing utility "strace".

  • Changing the System Time

    I am using a SunBlade 1000 and C++ with Workshop 6.1. I would like to change the system time via a program written in C++ without having to log in as super-user. Is that possible ? I was thinking about using the settimeofday function, but according to the man information I only can use it as super-user.

    You are correct. Only root can set the system time. You should
    probably consult your local system admin or discuss the implications
    of trying to do this in the Solaris forum. There are possible security
    holes opened up by trying to do root's job programatically.
    In general, a C program can use the system() call to run a command
    that would be typed in at the shell. A program can also have the
    Set UID bit and run as root, but you should be well aware of the
    risks associated with that before you try to use it.

  • Unity Connection 9.1 - System Call Handler Question

    Hi,
    I would like to use Unity Conncetion 9.1 to transfer calls to different extensions depending on the time of day:
    For example; between 07.00 and 19.00, do not play a greeting and transfer to an extension (no mailbox), outside of the times above, again do not play a greeting and transfer to a different extension.
    I have configured a CTI RP and set the extension to forward all to VM. The system call handler has an active schedule of 07.00-19.00 and has a standard transfer rule set up to transfer the calls to the relevant extension. I have also configured a closed transfer rule to transfer the call to the alternative extension after 19.00. The issue I have is that when dial the original extension I get the standard greeting. How do i get Unity to transfer the call without playing the greeting?
    Thanks,
    Phil

    Hi Phil,
    You need to:
    1) enable the closed greeting
    2) set the standard and closed greetings to "callers hear nothing"
    3) in the standard and closed greetings, after the greeting, set it to call handler, select the same call handler, and set it to attempt transfer.
    4) make sure the standard and closed transfer rules are enabled, set the respective extensions to transfer to, set them to release to switch, and uncheck "Play the 'Wait While I Transfer Your Call' Prompt" for both of them.

  • Call gate for systems call

    Hi all,
    On solaris-x86 The /usr/include/sys/segment.h file has the following user selectors
    /* user selectors */
    #define USER_CS 0x17 /* user's code segment */
    #define USER_DS 0x1F /* user's data segment */
    #define USER_SCALL 0x07 /* call gate for system calls */
    #define USER_SIGCALL 0x0F /* call gate for sigreturn */
    #define USER_ALTSCALL 0x27 /* alternate call gate for system calls */
    #define USER_ALTSIGCLEAN 0x2F /* alternate call gate for sigreturn */
    USER_SCALL(0x07) and USER_ALTSCALL(0x27) are both used as call gates for system calls in ld.so and libc.so(primarily 0x27 but 0x07 is used once). A static executable seems to use 0x07 exclusively. My question is whether there is any difference between the 2 call gates ? The system call semantics seem to be the same for both(syscall no goes in %eax and followed by lcall <call-gate>, 0x00). Can I substitute one for the other and will the executable still run ok ?
    Thanks
    Naveen

    Hi Michael,
    first of all the connection to an ABAP system via portal system object as you have used it in VC7.0 should also work in VC7.1. Maybe there is an issue with your configuration. There is also another option to setup the connection via RFC connection in the SAP NetWeaver Administrator. Anyway I suggest that you try to establish a connection via RFC, which is described in the [Wiki|https://www.sdn.sap.com/irj/scn/wiki?path=/display/vc71/rfc+destination]. If this connection will work then you should investigate why the connection via system portal system object is not working.
    Please let me know if you have success with the RFC connection.
    Best Regards,
    Marcel

  • I'd like to debug and iPad problem joining a wireless network. Is there anyway to debug the network / system calls made while access an SSID?

    We have multiple 802.1x networks, where iPads on occasion are unable to connect. There is no apparent contact by the 802.1x supplicant to join the network, and the usually the network settings both on the iPad and in the wireless systems works. So it doesn't appear to be configuration related. I'd like to debug the network protocol stack on the client, or look at iPad system logs to determine what is going on when an iPad refuses to join a network. Thanks

    Yes they are centrally managed via cap/wap using PEAP/WPA1. The problem is that when this problem occurs none of that protocol is executed as far as I can tell. Hence digging into a debug log might provide a clue.

  • How Do You Debug Oracle Report Calls From Forms On The App Server?

    I am working on a system which uses oracle forms and reports 10g.
    In our system we call, we are calling oracle reports from oracle forms. How do we debug the form code when the form and report both are running on the application server in production.
    To my knowledge, this can not be done when the form is running locally since there is only OC4J forms services locally.
    I understand one views error messages through the jinitiator console but how does one turn on this facility? How do you determine what line the error occurred?
    I am looking for step by step instructions as answer to this issue.
    Please be specific. Please write in good English.

    Good afternoon,
    If you have the developer suite installed on your PC, run the report from your form and then follow this tree from the start button on your PC:
    Developer Suite Home =>
    Reports Developer =>
    Oracle Application Server Report Services =>
    Reports Queue Manager
    Select View => Past Jobs and then find your report in the list, double-click the report entry and you'll see the error message that was generated by the Report Server when you tried to run the report.
    Good luck,
    Don.

Maybe you are looking for