Return Code after Command Line (File Adapter)

Hello all,
i execute in the File Receiver Channel a Shell Script.
Now i need a solution, when an error happens. The script returns an error code and i want that the Adapter Monitor is showing this information/error.
How can i enable this?
Or is there an other possibility to monitor this??
many thanks for your help
ilka

Hi IIka,
I have not tried this but I think
  The return code of the script cannot be shown in monitor, because the call ends (does not expect a response) once the file adapter is called.
May be you can capture the errors in a seperate file and
use that as a log.
I am not sure if there is anyother way
also check this blog /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
Regards
Vishnu

Similar Messages

  • Get return code in command line

    Hi,
    Is possible modify or get return code diferent 0 or 1 when start scenario using command line?

    i use control+M, and result with erros in E$, send to "hospital" whit this

  • 2911 ISM-SRE-300 CUE 8.6.7 install failure...Verifying ... Invalid signature in command line file !!

    ISM-SRE-300 seems to be a loop at boot with Verifying ... Invalid signature in command line file
    Any ideas?
    Log
    Install of ftp://*****:*****@10.100.64.21/cue-vm-k9.SPA.sme.8.6.7.pkg in progress
    Install status : Waiting for RBIP registration
    No localstore
    2911#
    [Resuming connection 1 to 10.102.66.254 ... ]
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    SRE step 2 - SM requests key file info...
    SRE step 3 - SM stores registration info...
    SRE configuration keeps the same. No flash update needed!
    SRE step 4 - SM downloads key-file...
    Writing keyfile to flash Size 891
    writing complete.
    Updating flash with bootloader configuration.
    Please wait .................. done.
    SRE step 5 - SM requests installer info...
    SRE step 6 - SM stores installer info...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    SRE step 7 - SM now downloads installer
    done.
    SRE step 8 - SM requests tcl header file info...
    SRE step 9 - SM now downloads the tcl header file
    TCL header file downloaded completely size: 691
    SRE step 10 - SM requests tcl file info...
    SRE step 11 - SM now downloads the tcl file
    TCL file downloaded completely size: 38933
    SRE step 12 - SM now boots Installer
    Verifying ... done.
    Starting Kernel.
    Platform: ism
    INIT: version 2.86 booting
    mounting proc fs ...
    mounting sys fs ...
    mounting /dev/shm tmpfs ...
    kernel.sem = 1900 4000 32 100
    vm.overcommit_memory = 1
    vm.min_free_kbytes = 8192
                    Welcome to Cisco Service Engine
    Setting the system time from hardware clock
    ********** rc.aesop ****************
    Populating resource values from /etc/ism_rsrc_file
    Populating resource values from /etc/default_rsrc_file
    Populating resource values from /etc/products/cue/default_rsrc_file
    Populating resource values from /etc/products/cue/ism_rsrc_file
    ==> Management interface is eth0
    ==> Management interface is eth0
    IOS IP Address Registration complete.
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    10.102.66.0    *               255.255.255.0   U         0 0          0 eth0
    default         142.102.66.254  0.0.0.0         UG        0 0          0 eth0
    Size of buff is: 65536
    65536 bytes written
    Valid License file not found: Using default values
    INIT: Entering runlevel: 2
    ********** rc.post_install ****************
    Changing owners and file permissions.
    INIT: Switching to runlevel: 4
    INIT: Sending processes the TERM signal
    STARTED: dwnldr_startup.sh
    sre_type=  1
            Welcome to Cisco Systems Service Engine Helper Software
    Downloading ftp cue-vm-k9.SPA.sme.8.6.7.pkg
    Bytes downloaded :  727736
    Validating package signature ... done
     - Parsing package manifest files... complete.
    No installed manifests found.
     - Checking Package dependencies... complete.
    Downloading ftp cue-vm-langpack.sme.8.6.7.pkg
    Error: Download error
     Can not download cue-vm-langpack.sme.8.6.7.pkg
    error code 550 : error type 'Can not ▒
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...

    ISM-SRE-300 seems to be a loop at boot with Verifying ... Invalid signature in command line file
    Any ideas?
    Log
    Install of ftp://*****:*****@10.100.64.21/cue-vm-k9.SPA.sme.8.6.7.pkg in progress
    Install status : Waiting for RBIP registration
    No localstore
    2911#
    [Resuming connection 1 to 10.102.66.254 ... ]
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    SRE step 2 - SM requests key file info...
    SRE step 3 - SM stores registration info...
    SRE configuration keeps the same. No flash update needed!
    SRE step 4 - SM downloads key-file...
    Writing keyfile to flash Size 891
    writing complete.
    Updating flash with bootloader configuration.
    Please wait .................. done.
    SRE step 5 - SM requests installer info...
    SRE step 6 - SM stores installer info...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    SRE step 7 - SM now downloads installer
    done.
    SRE step 8 - SM requests tcl header file info...
    SRE step 9 - SM now downloads the tcl header file
    TCL header file downloaded completely size: 691
    SRE step 10 - SM requests tcl file info...
    SRE step 11 - SM now downloads the tcl file
    TCL file downloaded completely size: 38933
    SRE step 12 - SM now boots Installer
    Verifying ... done.
    Starting Kernel.
    Platform: ism
    INIT: version 2.86 booting
    mounting proc fs ...
    mounting sys fs ...
    mounting /dev/shm tmpfs ...
    kernel.sem = 1900 4000 32 100
    vm.overcommit_memory = 1
    vm.min_free_kbytes = 8192
                    Welcome to Cisco Service Engine
    Setting the system time from hardware clock
    ********** rc.aesop ****************
    Populating resource values from /etc/ism_rsrc_file
    Populating resource values from /etc/default_rsrc_file
    Populating resource values from /etc/products/cue/default_rsrc_file
    Populating resource values from /etc/products/cue/ism_rsrc_file
    ==> Management interface is eth0
    ==> Management interface is eth0
    IOS IP Address Registration complete.
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    10.102.66.0    *               255.255.255.0   U         0 0          0 eth0
    default         142.102.66.254  0.0.0.0         UG        0 0          0 eth0
    Size of buff is: 65536
    65536 bytes written
    Valid License file not found: Using default values
    INIT: Entering runlevel: 2
    ********** rc.post_install ****************
    Changing owners and file permissions.
    INIT: Switching to runlevel: 4
    INIT: Sending processes the TERM signal
    STARTED: dwnldr_startup.sh
    sre_type=  1
            Welcome to Cisco Systems Service Engine Helper Software
    Downloading ftp cue-vm-k9.SPA.sme.8.6.7.pkg
    Bytes downloaded :  727736
    Validating package signature ... done
     - Parsing package manifest files... complete.
    No installed manifests found.
     - Checking Package dependencies... complete.
    Downloading ftp cue-vm-langpack.sme.8.6.7.pkg
    Error: Download error
     Can not download cue-vm-langpack.sme.8.6.7.pkg
    error code 550 : error type 'Can not ▒
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...
    Authenticating boot loader....
    Secondary Boot Loader authenticated - booting....
    Please enter '***' to change boot configuration:
    Detect and Initialze network device
    Backup current platform configurations....
    SRE step 1 - SM registration...
    Response - no installation needed (len: 422)
    SRE Installation Not Needed
    Restoring orignial configuration...
    Updating flash with bootloader configuration.
    Please wait .................. done.
    Loading disk:/bzImage ... Loading disk:/cmdlineextra ... done.
    Verifying ... Invalid signature in command line file !!
    Corrupted command line detected
    done.
    Starting Kernel.
    Initializing memory. Please wait...
    Memory initialization OK. Continue...
    DDR Memory 0512 MB detected
    Genuine Intel(R) processor              1.06GHz
    BIOS ISM 2.6,  BIOS Build date: 10/16/2009
    System now booting...

  • OS commands from File adapter Trace logs?

    Hi All,
    I am running some UNIX OS commands from File adapter as showing in below Blog.
    Problem is that in SXMB_MONI & in Runtime workbench I can not see any Trace logs written by those UNIX OS commands.
    Even I am writing echo messages.
    Runtime Workbench says only OS command file executed.
    Please guide me where I can see OS trace if some OS command fails?
    Any transaction code even at BASIS level exist?
    Or the only other way round exist is I need to write log into some files.
    /people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way
    I am using PI7.1.
    Regards

    I think no solution, other then writing ABAP code using RFC SXPG_COMMAND_EXECUTE and put log/trace in some table/application.

  • Command Line & Exception Adapter

    Hi,<BR> Can anybody help me out by figuring from wehere I cen get Command Line Adapter & Exception Adapter for Hyperion Applicaiton Link.<BR><BR>thnx<BR>

    Hi IIka,
    I have not tried this but I think
      The return code of the script cannot be shown in monitor, because the call ends (does not expect a response) once the file adapter is called.
    May be you can capture the errors in a seperate file and
    use that as a log.
    I am not sure if there is anyother way
    also check this blog /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Regards
    Vishnu

  • *"Wrong process return code"* Unix Command

    Hi,
    I have created Package with Procedure having Unix command.Unix command is only to cp data file from one folder to another archive folder.
    we are defining variable FilePath and FileName.
    cp #FILE_PATH/#FILE_NAME.tag #FILE_PATH/archive/;
    But while running this we are getting following erorr.
    *"Wrong process return code"*
    Plz suggest.
    Thanks
    Ashwini

    Hi Aswini-
    You should not use # symbol for your variable pointers, it will take as a comment line. Please use the below syntax:
    FILE_PATH=c:\temp
    FILE_NAME=test.txt
    cp $FILE_PATH/$FILE_NAME.tag $FILE_PATH/archive/
    And also you can check the exact error by executing the script file in your unix command prompt like this:
    /home/test/test.sh
    Hope this will work for you.
    Thanks,
    Saravanan Rajavel

  • OS Command in File Adapter

    Hi All,
    I am trying to encrypt a file from XI and FTP to a different location. I am using PGP software for encryption and decryption. I am able to encrypt/decrypt the file from the OS level. The command I am using at OS level is:
    pgp --home-dir /.pgp --encrypt test.txt --recipient 0xC483S9E6
    If I use the same command in Sender File adapter in Run Operating System Command After Processing it is not encrypting. But I am using the same above command:
    pgp --home-dir /.pgp --encrypt test.txt --recipient 0xC483S9E6
    Now if I run the scenario the file is writing but it is not encrypting the file. Can you guys tell me where I am exactly going wrong.
    ---Korobee

    Hi,
    Try this, write all you OS command in a BATCH file say "encrypt.bat" and then call the batch script from File adapter. Also make sure you are giving the full path for all the files that you are refering to like
    \serverfolderpgp --home-dir /.pgp --encrypt \serverfoldertest.txt --recipient 0xC483S9E6
    Any more help let me know.
    Thanks,
    Prakash

  • OS commands in File adapter

    Hi Experts,
    I have a requirement to move the xml file(size 2GB)  across the FTP server. I thought of zipping the file due to huge size before picking it up and unzip before dropping at the receiver FTP.
    I know we can use Run Operating System command before and after message processing option in File adapter, but can you please guide me how can really use this option.
    Thanks in advance,
    MK

    hi mk
    check the below blogs
    *OS COMMAND     *                    
    Executing Unix shell script using Operating System Command in XI                         
    Executing Unix shell script using Operating System Command in XI                                   
    Performing FTP Commands From ABAP                                   
    Performing FTP Commands From ABAP          
    regards
    kummari

  • FTP command using File adapter

    Hi,
    When i use the file adapter in FTP mode i need to add an xtra command before sending the file.
    I.ex: SITE LRECL=84 RECFM=VB WRAPRECORD
    Using manual connect i do this
    ftp 111.111.111.111.
    User/pass
    SITE LRECL=84 RECFM=VB WRAPRECORD
    put c:     est.txt test.txt
    quit
    But how do i add the xtra command? The Run OS command thing - thats before FTP is connected isn´t it?
    /Jakob

    If possibe, you could write the file on a file server using the NFS option of hte file adapter, and then use a simple shell script (if on UNIX) which contains your FTP commands to do the FTP part.  You will specify the script name in the the 'Run OS Command After Message Processing' parameters.
    I have used something very similar in the past...

  • Command line file read

    How do i read the command line statements using the getop function in java?
    Let's say i have 5 arguments which i enter on command line.2 of which is to read from a file and write to a file.
    for this case, how do i initialise and use the getop?
    rgds

    Hi,
    There is a GetOpt in com.sun.org.apache.xalan.internal.xsltc.cmdline.getopt.GetOpt. The source code explains how it works. The compiler does warn that the functionality may be removed in the future.
    Good Luck

  • How to run several OS commands in file adapter ?

    I can run one UNIX commands in a file receiver adapter. But could I run more than one command ? I tried to use a semicolon, but it doesn't work. Only 1st command is executed. (in UNIX, we can use semocolon to run several command in one command)

    Hi
    Create a batch file  and in that put  all the commands to be executed.
    Mention this file in file adapter configuration ( CC ).
    thanks
    Prasad

  • Possible Scenarios where we can use OS command of file adapter

    Hi all,
    I would like to know the possible scenarios in which we can use the OS command feature in file adapter,I have tried zipping the file,copying the file,unzipping the file using this option.Any other inputs on this feature are appreciated.
    Thanks,
    Amit

    Hi,
    Executing Unix shell script using Operating System Command in XI                         
    Executing Unix shell script using Operating System Command in XI                              
    Performing FTP Commands From ABAP                              
    Performing FTP Commands From ABAP                              
    Thanks,
    Madhu

  • Xjc in code - not command line

    I'm new to java xml, and may be wanting to force a square peg through a round hole but, I would like to create source files using xjc from dtd's and xjs's from datasources or other basically non file based sources. Am I looking at the wrong tool? I don't want to write the dtd's and xjs's to disk and then compile through a command line.
    Thanks
    fj

    Thanks Danny,
    I've read through the pdf's got the example to work as well as many in the java_xml_pack-spring-02-dev. Wipped up a proof of concept database, some JDBC classess, and a servlet. Went through XML Hell with Tomcat 4, then deleted the xerces from the common folder, changed some classpath statements and the example works being triggered from a servlet. Then I gabbed DTD, XJS, and XML content like so
    (1) a couple prepared statements
    first statement to retrieve an xml file from the database
    "SELECT XML_NAM, XML_CNT " +
    "FROM XML_CNT_JAXB "
    second one to retrieve the DTD and XJS content from a database
    "SELECT INFO_DTD_CNT.DTD_CNT, INFO_XJS_CNT.XJS_CNT " +
    "FROM INFO_DTDXJS_BLD " +
    "INNER JOIN " +
    "INFO_DTD_CNT ON INFO_DTDXJS_BLD.DTD_ID = INFO_DTD_CNT.DTD_ID " +
    "INNER JOIN " +
    "INFO_XJS_CNT ON INFO_DTDXJS_BLD.XJS_ID = INFO_XJS_CNT.XJS_ID " +
    "WHERE (INFO_DTDXJS_BLD.DTD_BLD_NM = ?)"
    (2) execute and get results
    ResultSet resultSet = sqlXML_CNT.executeQuery();
    etc..
    (3) place resultset XML strings in an InputStream
    sbin_XML_CNT = new StringBufferInputStream(str_XML_CNT);
    etc..
    (4) now it works fine if you already used xjc to create your java classes and compile... then you can just use the BufferedInputStream to build your trees
    buildTrees(StringBufferInputStream bIn)
    foo = foo.unmarshal(bIn);
    etc...
    (5) what I don' want to do with the DTD and XJS is stream the content write the file to disk and execute commands to build the java files..
    Process myXJC = Runtime.getRuntime().exec("myXJC.bat");
    Again I'm new to Java XML, but if people want to use an XML file that does not have a DTD or XJS within a system, say they are requesting a new content area, the app then gives them a screen to define the DTD or builds a DTD for them or whatever, and then asks them for the content they want to manipulate or reports or whatever, and them creates an XJS, Java classes are then built compiled and someone can test and approve them... etc then save them to disk, database, a distributed server,.. etc
    I'm sure there is a way to compile Java from within a application. what I'm not sure of is if there is a way avoid the Java -jar %JAXB_HOME%\lib\jaxb-xjc-1.0-ea.jar file.dtd file.xjs -d directory from command line.
    If you could point me to any articles or book chapters address this, I'd really appreciate it!
    Thanks
    fj

  • How to execute some code in command line, and read its output?

    I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
    But I want to take it one step further and read its output. is it possible?

    Hi RagnaRock,
    one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
    I hope this helps. Kind regards,
    Alvaro

  • Code for command line

    Hello everyone,
    I have a SQL SSIS package that I would like to trigger
    through Cold fusion. I looked into SQL help, it said that using
    "dtexec" at command line will work. My question is: how do I get
    Cold Fusion do a command line job? What is the sytext/code for
    that?
    Thanks in advance.

    Lei Hu wrote:
    > Hello everyone,
    > I have a SQL SSIS package that I would like to trigger
    through Cold fusion.
    > I looked into SQL help, it said that using "dtexec" at
    command line will work.
    > My question is: how do I get Cold Fusion do a command
    line job? What is the
    > sytext/code for that?
    >
    > Thanks in advance.
    >
    The <cfexecute...> tag allows ColdFusion to run command
    line code. It
    can take a lot of trial and error to get that to work
    properly. User
    permissions of the ColdFusion server standard output versus
    standard
    error, version of ColdFusion are all potential hickups with
    this type of
    code.
    Take it slow, one step at the time is the best advice I can
    give you for
    using <cfexecute...>.
    Ian

Maybe you are looking for

  • How do I post a Comment?

    QuestionHow do I post a Comment? AnswerMany users have requested a way to give Comments to multiple Friends at once, and now you can! There are a couple different ways to post Comments to all your Tagged Friends, and it's even easier with our new mul

  • Is there a way to do an automatic LZW Compression of all existing images?

    Hi,      I have spent quite some time trying various ways to compress entire folders of Canon images,  imported with the Canon Utility. Although they are TIFF,  seems some software utilities don't even offer "LZW compression". That would save half th

  • Itunes/front row Authorization Issue

    THis is the first time i al very upset with an apple software. One week into the use of my new Macbook I was extremely thrilled to see the Front Row app running with the remote. I decided to import the mostly used Audio CDs that I have (originals) an

  • How set a place which is not found by internal db and goodle

    Hi, I want to add a new place to some photos, but unfortunately neither the built in database nor google does know the place Gullfoss, Iceland for example (http://en.wikipedia.org/wiki/Gullfoss). I know that I can set a pin at any place on the map, b

  • Repeating Form from Form list

    Hi, Is there a way to properly use repeating forms entered in the formlist. Using a manual trigger, I am able to trigger as many instances of the same form as the XML needs but the subforms inside the form do not. Example: the first Form instance wil