SYSTEM-CALL statement

Hi experts,
please help to give some detials about below statment:
system-call init-text <p_text> using <p_field> program <program_name>.
and i got one issue with above statement:
system-call init-text p_text using 'SCN_PROJN' program 'SAPDBPSJ'.
it seems that to get field description of 'SCN_PROJN' of logical database 'PSJ'. but after this statement p_text get value as 'CN_PROJN' instead of 'Project Definition'. this issue happens after system upgrade.
please give some suggestion about above issue.
thanks a billion.
Aumas.

SYSTEM-CALL is for SAP internal use only and has been replaced by kernel methods (see ABAP documentation). You should not use this statement as a customer, and if there is a problem with SAP standard code, then check for OSS notes.
Thomas

Similar Messages

  • 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

  • Solaris 2.6 - System Call faults

    Hi Sun Forums.
    Machine Description : SunOS serv-sif 5.6 Generic_105181-28 sun4u sparc SUNW,Ultra-Enterprise
    Number of CPU's : 4 (400Mhz)
    Physical Memory : 5120 Mb
    Top Output :
    PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
    11115 syb119 2 10 0 506M 498M cpu4 179.6H 24.89% dataserver
    5078 syb119 1 0 0 1696K 1408K cpu0 0:00 0.51% top
    11113 syb119 2 58 0 506M 498M sleep 146.3H 0.09% dataserver
    3592 syb119 2 59 0 1030M 1023M sleep 282.6H 0.07% dataserver
    1193 root 1 58 0 7536K 3144K sleep 159:38 0.02% jre
    1199 root 1 59 0 3144K 1064K sleep 0:00 0.01% httpd
    3596 syb119 2 59 0 1030M 1023M sleep 110.6H 0.01% dataserver
    11114 syb119 2 58 0 506M 498M sleep 168.6H 0.00% dataserver
    3595 syb119 2 58 0 1030M 1022M sleep 151.6H 0.00% dataserver
    1182 root 1 58 0 5128K 2768K sleep 17:53 0.00% jre
    1 root 1 58 0 1648K 384K sleep 5:40 0.00% init
    19230 syb119 1 58 0 10M 1968K sleep 0:43 0.00% backupserver
    1253 root 1 58 0 16M 1624K sleep 0:43 0.00% ecoad
    1052 root 18 23 0 4736K 1608K sleep 0:42 0.00% syslogd
    1026 root 1 48 0 1904K 1144K sleep 0:41 0.00% inetd
    Possible Problem : vmstat
    procs memory page disk faults cpu
    r b w swap free re mf pi po fr de sr s6 s9 s1 sd in sy cs us sy id
    0 0 0 4710944 80856 0 0 392 0 0 0 0 0 0 0 0 3208 512747 1557 49 51 0
    The value Faults for System call = 512747 very high value.
    The process running in Solaris are working slowly ...
    Any idea ?
    PID

    It is possible that this card may not be compatible with this Solaris
    system.
    You may want to check these sites out for driver related information:
    http://soldc.sun.com/developer/support/driver/
    http://soldc.sun.com/developer/support/driver/IO_kit/PCI.html
    Thx
    Tushar Patel.

  • Need some information on CALL statement

    Hello All,
    There is a statement in standard program saplfpaym05 in subroutine read_data as follows
    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.
    What exactly is the statement performing? Is it possible to have different results in development system and quality system? Is it anyhow system dependent statements?
    Please suggest.
    Thanks and Regards,
    Sachin

    Hi,
    CALL -
    >   is used to Call a System Function.These calls are called Kernel C system calls .This CALL statements is for SAP internal use only.If SAP wants to allow a customer to use one, they will generally write a released ABAP function module to expose the Kernel Call.
    Following are examples for SAP internally used system functions.
    C_REMOVE C_RSPO_ASK_FOR_PRIO
    C_RSPO_CHECK_TAB_IN_DD
    C_RSPO_LAST_ERROR
    C_RSPO_PRINTJOB_STATE
    C_RSPO_PROCESS_DIALOG
    C_RSPO_SPOOL_MESSAGE
    C_RSPO_TEST
    C_RSTRB_READ_BUFFERED C_RSTRDURA_TO_P6_P6
    C_RSTRTIME_TO_P6_P6
    C_RSTS_CCC_STAT
    C_RSTS_CHECK_TAB_IN_DD
    C_RSTS_CLOSE C_RSTS_CREATE_OBJ_FOR_FILE
    C_RSTS_INVALID_CCC
    C_RSTS_LAST_ERROR
    C_RSTS_OBJ_INFO
    C_RSTS_OPEN_READ
    C_RSTS_OPEN_WRITE
    C_RSTS_READ
    C_RSTS_REMOVE
    C_RSTS_REPAIR_OBJ
    C_RSTS_WRITE C_SAPGALLPARAM
    Go through the following links:
    System Function Calls
    http://www.sapnet.ru/viewtopic.php?p=3028
    by
    Prasad gvk.

  • I fail to start the sap server with error:Operating system call recv failed

    I fail to start the sap server in SAP R3 Management Console and the message in the syslog was :
    R/3 Basis System: Operating system call           recv failed (error no. 10053)
    Is there any one could tell me how to resolve the problem or give me some advice?I will appreciate him/her very much.Thank you.

    trc file: "dev_disp", trc level: 1, release: "620"
    Sun May 07 13:14:30 2000
    kernel runs with dp version 3(ext=1) (@(#) DPLIB-INT-VERSION-3)
    length of sys_adm_ext is 304 bytes
    systemid   560 (PC with Windows NT)
    relno      6200
    patchlevel 0
    patchno    674
    intno      20020600
    pid        3628
    ***LOG Q00=> DpSapEnvInit, DPStart (00 3628) [dpxxdisp.c   978]
         shared lib "dw_xml.dll" version 674 successfully loaded
         shared lib "dw_xtc.dll" version 674 successfully loaded
         shared lib "dw_stl.dll" version 674 successfully loaded
    Sun May 07 13:14:32 2000
    WARNING => DpNetCheck: NiAddrToHostCanon() took 2 seconds
    Sun May 07 13:14:37 2000
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    ***LOG GZZ=> 2 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  3212]
    MtxInit: -2 0 0
    DpShMCreate: sizeof(wp_adm)          12784     (752)
    DpShMCreate: sizeof(tm_adm)          1690816     (8412)
    DpShMCreate: sizeof(wp_ca_adm)     18000     (60)
    DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    DpShMCreate: sizeof(comm_adm)     192000     (384)
    DpShMCreate: sizeof(wall_adm)     (22440/34344/56/100)
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 001E0040, size: 1977824)
    DpShMCreate: allocated sys_adm at 001E0040
    DpShMCreate: allocated wp_adm at 001E0560
    DpShMCreate: allocated tm_adm_list at 001E3750
    DpShMCreate: allocated tm_adm at 001E3778
    DpShMCreate: allocated wp_ca_adm at 00380438
    DpShMCreate: allocated appc_ca_adm at 00384A88
    DpShMCreate: allocated comm_adm_list at 003861F8
    DpShMCreate: allocated comm_adm at 00386210
    DpShMCreate: allocated ca_info at 003B5010
    DpShMCreate: allocated wall_adm at 003B5018
    MBUF state OFF
    Sun May 07 13:14:38 2000
    EmInit: MmSetImplementation( 2 ).
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation std
    <EsNT> Memory Reset enabled as NT default
    <EsNT> EsIUnamFileMapInit: Initialize the memory 2458 MB
    <ES> 2457 blocks reserved for free list.
    ES initialized.
    ***LOG Q0K=> DpMsAttach, mscon ( db01) [dpxxdisp.c   9115]
    CCMS: Initalizing shared memory of size 20000000 for monitoring segment.
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 6200, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   941]
    DpMsgAdmin: Set patchno for this platform to 674
    Release check o.K.
    Sun May 07 13:15:18 2000
    ERROR => W2 (pid 4776) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W2
    Sun May 07 13:15:38 2000
    ERROR => W5 (pid 4548) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W5
    ERROR => W8 (pid 4592) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W8
    ERROR => W9 (pid 4584) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W9
    ERROR => W12 (pid 4676) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W12
    ERROR => W13 (pid 4272) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W13
    my types changed after wp death/restart 0xbf --> 0xb7
    Sun May 07 13:15:58 2000
    ERROR => W4 (pid 4888) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W4
    ERROR => W6 (pid 4788) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W6
    ERROR => W15 (pid 4596) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W15
    Sun May 07 13:16:18 2000
    ERROR => W1 (pid 4892) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W1
    ERROR => W3 (pid 4904) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W3
    ERROR => W7 (pid 4000) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W7
    ERROR => W10 (pid 4864) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W10
    my types changed after wp death/restart 0xb7 --> 0xb5
    Sun May 07 13:16:38 2000
    ERROR => W0 (pid 4900) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W0
    ERROR => W11 (pid 4500) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W11
    ERROR => W14 (pid 4636) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W14
    ERROR => W16 (pid 3532) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W16
    my types changed after wp death/restart 0xb5 --> 0x80
    DP_FATAL_ERROR => DpEnvCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    DpModState: change server state from STARTING to SHUTDOWN
    Sun May 07 13:16:42 2000
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c   9341]
    MBUF state OFF
    MBUF component DOWN
    ***LOG Q05=> DpHalt, DPStop ( 3628) [dpxxdisp.c   7883]

  • 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.

  • SYSTEM-CALL CONVERT ID no

    Dear Experts,
    What is the <no> in the below syntax ?
    Where can we get the info for which number is what ..
    SYSTEM-CALL CONVERT ID <no>
    I need this info for conversion of Binary data to ASCII.
    Thanks in advance.
    Regards,
    Matt.

    Hi,
    Pls refer the below SAP F1 Help.
    Conversion
    Note
    This statement is for internal use only.
    It cannot be used in application programs.
    Syntax
    CONVERT ID id DATA data ENCODING code ENDIAN endian IGNORE_CERR error N n POSITION position REPLACEMENT rep LEN len BUFFER buf AUX aux TYPE type.
    Effect
    Text and lines are converted between different formats.
    Note
    This statement is only provided for use in the conversion classes "CL_ABAP_CONV_...".

  • How to get swap size by using system call?

    How can I get the size of swap.What system call or library Routines can be used? please help me.

    Hi,
    Threre's an interface called swap_ctl by wich you can get more information related to virtual memory. Here's an example:
    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <sys/stat.h>
    #include <sys/swap.h>
    #include <sys/param.h>
    int
    main(int argc, char*argv[])
    swaptbl_t *st;
    int swap_count, i;
    long long swap_total=0, swap_avail=0;
    long pgsize_in_kbytes = sysconf(_SC_PAGE_SIZE) / 1024L;
    if ((swap_count=swapctl(SC_GETNSWP, NULL)) == -1)
    perror("swapctl(SC_GETNSWP)"), exit(-1);
    if (swap_count == 0)
    (void)printf("No swap files/partitions allocated\n"), exit(0);
    * Although it's not particularly clear in the documentation, you're
    * responsible for creating a variable length structure (ie. the
    * array is within the struct rather than being pointed to
    * by the struct). Also, it is necessary for you to allocate space
    * for the path strings (see /usr/include/sys/swap.h).
    st = (swaptbl_t*)malloc(sizeof(int) + swap_count * sizeof(struct swapent));
    if (st == NULL)
    perror(argv[0]), exit(-1);
    st->swt_n = swap_count;
    for (i=0; i < swap_count; i++) {
    if ((st->swt_ent.ste_path = (char*)malloc(MAXPATHLEN)) == NULL)
    perror(argv[0]), exit(-1);
    if ((swap_count=swapctl(SC_LIST, (void*)st)) == -1)
    perror("swapctl(SC_LIST)"), exit(-1);
    for (i=0; i < swap_count; i++) {
    swap_total += st->swt_ent.ste_pages * pgsize_in_kbytes;
    swap_avail += st->swt_ent.ste_free * pgsize_in_kbytes;
    (void)printf("Total swap = %lld available swap = %lld\n",
    swap_total, swap_avail);
    return 0;
    There's a very interesting document about Solaris Kernel/Performance Stats available at http://www.idiom.com/~gford/admin/howto/perf.html. Very interesting.
    Hope this helps

  • Is system call multithread safe?

    Dear all
    Is system call are multithread safe?
    i want to use system call eg (sysinfo)
    is it multithread safe?
    if you check man sysinfo
    you couldnot find if it is multithread safe or not.
    no any statement about it
    could any of you give me some hints?

    what do you mean by, 'would it help'? Help thread safety? No. The method returns quicker because it is native, but it does not impact thread safety (unless you consider a quicker return to some how increase thread safety).

  • C programming System calls

    Ok I am starting to program in C and I would like to make useful apps
    but I don't know how to call other programs within linux from C
    I'm looking for guides that help on linux "C" programming.
    I've tried some guides I googled but I tried their examples and don't get anything
    they appear obsolete (1996 or 1999)
    Guide I found
    Any sugestions?
    Thanks

    toofishes wrote:Note that calling other programs is not a common occurrence for C programs...nor is that a "system call". A system call is calling a kernel-provided function such as stat or access, not calling another user-space program on the system.
    U call other programs with a system call, u can open a file and do operations on it with system calls too.
    What he want is a GUI like gtk or a framework

  • Error during installation of ECC6- system call failed

    Dear all,
    i encounter the error as below during sap installation. its looks like the ID issue, but this id (fbqadm) is using by me to log into the windows. please help me.
    thank
    ERROR      2009-03-17 10:07:25.583 [syxxsyshlp.cpp:78]
               syslib::printOSError(const iastring &, int, DWORD, const iastring &, CMessage::eLogMessage)
    FSL-00001  System call failed. Error 1326 (Logon failure: unknown user name or bad password.
    ) in execution of system call 'LogonUser' with parameter (fbqadm, SAPFBWDEV01, *******, LOGON32_LOGON_INTERACTIVE,LOGON32_PROVIDER_DEFAULT,&hUserToken), line (1014) in file (synxccuren.cpp).
    TRACE      2009-03-17 10:07:25.813 [iaxxejsbas.hpp:408]
               handleException<ESyException>()
    Converting exception into JS Exception ESyException.
    TRACE      2009-03-17 10:07:25.813
    Function setMessageIdOfExceptionMessage: modlib.jslib.caughtException

    problem fix after reboot the server

  • Error on WAS no. 10054 SAP Basis System: Operating system call

    Hi All,
    Error on WAS no. 10054 SAP Basis System: Operating system call
    we got the following error message in the syslog of the WAS:
    SAP Basis System: Operating system call  recv failed (error no. 10054)
    The system still works. What can we do?
    Thanks.
    Best Regards,

    Hi,
    Please check the folloiwng notes
    Error no. 10054
    34116 - Syslog: "Operating System call xxxx failed"
    Thanks
    Adil

  • Jabber for Windows 9.2 call stats

    Does anyone know how to view call stats in Jabber for Windows 9.2 (or if it is even possible)?
    Thanks,  Mike

    No.  I mean call stats like dropped packets, codec, video resolution etc.  I heard from my Cisco SE that Cisco doesn't have any immediate plans to implement this feature, which I think is a terrible oversight.   How are we supposed to troubleshoot with call stats?  Even an IP phone has ability to do that.

  • How to call statement's execute function to execute procedure in Oracle?

    I made a very simple procedure in oracle logged as internal user.
    the procedure as the following:
    create or replace procedure temptest
    as
    begin
    insert into indextab(idx) values(100);
    commit;
    end temptest;
    in Java program,I use Oracle's jdbc driver to connect database, still connect as internal user.
    I can call statement.executeUpdate("insert into indextab(idx) values(100)"). and 100 row was added in database.
    then,I delete this row, try to run procedure in java,
    but the call of statement.execute("temptest") throw a exception
    the error message is:"java.sql.SQLException: ORA-00900: invalid SQL statement"
    then, I write the same procedure in sql server.
    all things work right.( I use jdbc-odbc bridge connect to sql server database)
    who can tell me what's the reason?
    I'm so urgent, please help me as soon as fast, thank you very much

    Instead of a Statement object, use a CallableStatement. CallableStatement is the JDBC wrapper for a stored proc. JDBC requires that the vendor specific call be wrapped in a {CALL ....}.
    So, your code would look like the following:
    Connection con = some connection;
    CallableStatement cs = con.prepareCall("{CALL temptest}");
    cs.execute();
    Take a look at the Javadoc. You can set both IN and OUT parameters using a CallableStatement.

  • 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().

Maybe you are looking for

  • Sales module-Dealer wise

    Hi All, In Sales module- Dealer wise Report. Ie. Related to Particular Dealer, Howmany Orders he have done, how many pending and closed. it Possible by Pld or Xl reports ,plz tell me Regards, nagababu

  • Who's Who: How to refine employee search using customer defined indicator?

    Hello, It is possible to refine employee search using status indicator STAT2 (Employees' Employment Status). I would like to refine employee search using e.g. Customer defined status indicator STAT1. I created an entry identical to STAT2 but with STA

  • FCP X does not recognize my sony dsr-11.

    Just upgraded to final cut pro x and having my first problem.  Trying to edit and view video on an external video monitor and the a/v out will not recognize my deck.  So when all else fails I go to FCP X help and find that it requires a third party v

  • Need & architecture of web services

    I wat to know in detail about the need of web services & architecture

  • 0DOC_CATEG_TEXT data load issue

    Hi Experts, Please see below the error message while loading 0DOC_CATEG_TEXT. Data record 2 & with the key '§ D &' is invalid in value '§ &' of the   attribute/characteristic 0DOC_CATEG &. Can you please suggest any way out for this? Regards, Pratap