Capturing print command output from procedures

Is it possible to capture the output from print statements in stored procedures such as the "print" command in Sybase stored procedures? This information doesn't seem to come through the result set.
Thanks,
KP

This will be database specific. Please consult your database documentation.

Similar Messages

  • Capturing a command output from unix

    Hi All
    I am using enchanter to connect to unix and running a command but how do i capture the output of the command. Follwoing is the code i used.
    import java.io.IOException;
    import org.twdata.enchanter.SSH;
    import org.twdata.enchanter.impl.DefaultSSH;
    public class connect {
              public static void main(String[] args) throws IOException {
                   SSH ssh = new DefaultSSH();
                   ssh.connect("ip address", 22, "username", "pwd");
                   ssh.sendLine("ls -lrt");          
                   System.out.println(ssh.getLine());               
                   ssh.disconnect();
    }Thanks
    Diana

    [http://code.google.com/p/enchanter/]

  • Capture generated html output from jsf page in bean

    Hi Member,
    I have need to capture the html output coming form jsf page. means aftr rendering what html is displayed before user, we have need to get it in programm.
    like if we use:
    <h:dataTable......>
    <h:colum>heloo</h:column>
    </h:dataTable>
    then their ouput will be:
    <table>
    <tr><td>heloo</td></tr>
    </table>
    and i have need of these complete line with <table> ......</table>
    Please help me...
    Thanks
    Shailendra Kumar

    Thnx for quick reply.
    But i want to capture it in render response phase. May it will be possible??? Is render response phase is responsible for generation of HTML format?? If yes then how can we capture output coming from this phase.
    URLConnection if fine but it still hit server once. I don't want that. I want to store page html format during its view preparation for html.
    Thanks
    Shailendra Kumar

  • Any means to print the output from an abap report immediately

    Hi,
    I would like to know if there are any means to print the output of an abap program immediately. Our user wants to execute the program online and once the result list is displayed on screen, user wants the same list to be printed simultaneously without the need to press the 'Print' button.
    Thanks in advance for your help and advises.
    Francis

    Hi
      We can print the list while displaying using NEW-PAGE PRINT ON.
      below is the syntax for this.
         NEW-PAGE PRINT ON [NEW-SECTION]
                    [<params> | PARAMETERS <pripar>]
                    [ARCHIVE PARAMETERS <arcpar>]
                    [NO DIALOG].
    Regards
    Ramanjaneya Reddy.
    [email protected]

  • Capturing Unix command output in WLST

    I am trying to write a WLST/Python script that connects to a particular domain based on the machine the script is run on. My thought was to issue the 'hostname' Unix O/S command get the name of the machine, test against it, and connect based on the output. My initial thought was to do something like
    import os
    hr = os.system('hostname')
    if hr == 'name':
    ConnectToAS()
    This doesn't work of coarse because the os.system() command returns the boolean exit code of the statement and not the output. I then tried looking into using the 'subprocess' mod but that returns the following:
    Problem invoking WLST - Traceback (innermost last):
    File "/home/beaadmin/bin/scripts/wlst/wip/checkMachine.py", line 1, in ?
    ImportError: no module named subprocess
    Does anyone know of another way to run a WLST/Python script that get's the name of the machine it's running on and make that name available to the rest of the calling script?
    Any help would be greatly appreciated.

    Thanks for the reply but I was hoping to stay away from external dependencies. Since you have to set the environment to run WLST we use shell scripts as wrappers to launch WLST. I think I will look at getting the hostname from the shell script:
    hn=`hostname` and then pass that to WLST:
    java weblogic.WLST script-name.py $hn
    I am hoping to be able to test against it with Python:
    import sys
    HOSTNAME = sys.argv[1]
    if HOSTNAME == 'some-machine-name':
    connect to something
    of coarse with this I would need to hard code all the machine names in the Python script to test against and then modify the script if we ever add machines. sigh I guess if it was easy I wouldn't appreciate it.
    Edited by: user8004556 on Sep 1, 2011 11:21 AM

  • Urgent : How to print (on printer) the output of procedure

    Hi All,
    How can I divert the output or the results to printer.
    Regds
    Rajesh

    By adjusting the location of your fields you can accomplish this.
    If you move your subtotal to the tax calculation header.
    you will end up with your tax amount after the subtotal.
    You can then move the final total with tax to the top of the section.
    Then it will look like you want it to.
    Sub Total <----- Tax Area Header
    Tax Amount <----- Tax Area Footer
    Document Total <---- End of Report

  • No output from procedure

    Hi All,
    When I run the below procedure it does not return any data. But it returns stating Procedure created. When I just run the query it returns the result.
    So what am I going wrong here.
    set serveroutput on
    CREATE OR REPLACE PROCEDURE PROD.STATUS_COUNTS
    p_count IN OUT number,
    p_status IN OUT varchar2,
    p_mpp IN OUT number
    AS
    BEGIN
    select COUNT(1),STATUS,MPP
         INTO
         p_count,
         p_status,
         p_mpp
         FROM PROD.tx_tab where status IN ('failed','entityUnchanged','quarantined')
    AND DATE_UPDATED BETWEEN trunc(sysdate-1) AND trunc(sysdate) + INTERVAL '1439'
    minute GROUP BY STATUS,MPP;
         dbms_output.put_line('p_count:' || p_count);
         dbms_output.put_line('p_status:' || p_status);
         dbms_output.put_line('p_mpp:' || p_mpp);
    END ;
    Thanks

    I posted that above (3rd post):
    declare
      -- Local variables with no values assigned to them.
      v_count    number;
      v_status    varchar2(50);
      v_mpp      number;
    begin
      -- Call the procedure and return the values from that procedure
      prod.status_counts(v_count, v_status, v_mpp);
      -- View the values from the procedure
      dbms_output.put_line('v_count:' || v_count);
      dbms_output.put_line('v_status:' || v_status);
      dbms_output.put_line('v_mpp:' || v_mpp);
    end;The v_ variables are local variables. You then call your procedure and the v_ variables return the values from that procedure.
    Edited by: MLBrown on Dec 4, 2012 9:32 AM

  • Capturing verbose output from javac??

    I am tyring to capture the verbose output from javac.
    From a UNIX shell, I type "javac -verbose Test.java 2> dump.txt" and it works fine.
    The trick is that I want to do this within a Java program. I have the following code, but I can't seem to find a solution. Any help is appreciated.
    import java.io.*;
    public class GetTree {
    public static void main(String[] args) {
         try {
         Runtime r = Runtime.getRuntime();
         String options = "-verbose";
         // The java file to compile.
         String fileName = args[0];
         String command = "javac " + options + " " + fileName + " 2>dump.txt";
    // This doesn't even create the 'dump.txt' file!?
         Process p = r.exec(command);
         catch (Exception e) {
         System.err.println(e);
    -----------------------------------------------------------------------

    Try this...
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    appu

  • How to capture graphical outputs from other programs

    Does anyone know how we capture the graphical outputs from the other programs and show them
    on the swing?
    I'd like to use a java program to run gnuplot, capture the outputs, and show them using swing.

    Depends on what you mean by "graphic outputs".
    Taking a quick glance at the gnuplot homepage, it looks as if you can output to PNG files, so just run the app, and load the png file.

  • Why can't I get my printer to print out a playlist from i-tunes? It used to work but now my printer doesn't seem to receive the "print" command.

    Why can't I get my printer to print out a playlist from i-tunes? It used to work, but now the printer doesn't seem to recognize the "print" command coming from i-tunes. The printer works for other applications!

    I  finally solved this problem after toiling with it for a couple of  days.  Solution:  Once you have  burned your CD you must go back into  iTunes to your music/playlists and select the playlist you just burned  and click file; print and you will  get the mosaics that we have been  accustomed to.  I was on hold with  Apple Support when I found this  myself.  Yes......!!! Problem solved..for me anyway.  Good luck!
    Scott

  • Print command makes the programm to close

    I have recently bought a black macbook and when I use the print command (either from the menu or by pressing command and P) the programm (pages, preview, stickies, text, ms word) dissapears and a message that the programm quited unexpectedly appears. I have sent a few reports to apple from an option on that message.
    I have fully updated my software since then (firmware update too).
    Well, I can't print and asking myself if I did well quiting my powerbook.
    Any suggestions wellcome.
    macbook black   Mac OS X (10.4.8)   ram 2.0 GB

    ok, how is the printer set up?? cause i've had the same problem. in my situation my printer was connected to my mac mini, then i would print off the internet/network, but when my mac mini went into sleep, it would do exactly what you where saying, "this program unexpectedly quite, send a report to apple...blah...blah...blah...." all i had to do was to shake the mouse on my mac mini and wake the mini, then press print again, and it works so if it is set up like mine you might want to try that. hope it helps.
    troy

  • Command output redirect question

    Hi guys,
    I am putting in a kron function to transfer the command output from all the switches and routers on our network to a tftp server.
    I have the kron occurence and policy lists set up the way I want them and have tested the redirection of the command line output to the server.
    The problem I have is that I want to back up the switches 3 or 4 times once a week to compare the configs to make sure that no unwanted changes are being made over the course of the month.
    Is there a way to use a variable to change the file name when it redirects? Currently when the occurence runs the file modified time on the tftp server changes but the output doesnt append as I had hoped it would, i.e one file having the config copy in to the file over and over.
    Thanks for your help

    You might want to consider the built-in Config Archive feature instead of kron.  With Config Archive, you can periodically take backups of your config (even to a network server), and you can adjust the filenames using either date or hostname (or both).  Check out the documentation at http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtrollbk.html#wp1100253 for more details.
    In addition to Config Archive, you also have the option of going with the Embedded Event Manager.  EEM also has a cron feature which will allow you to run CLI commands periodically.  Depending on your IOS version, it may be possible to do what you want using a simple EEM applet, or you might have to use a Tcl script policy.  More on EEM can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_overview_ps10592_TSD_Products_Configuration_Guide_Chapter.html .
    All that said, most TFTP servers have a security requirement that a file must exist on the server before one can write to it.  Therefore, if you try and create new files (i.e. a new file each day), the TFTP server may reject the WRITE REQUEST unless a file with that name already exists.  In light of that, you may need to use something like SCP or FTP instead.

  • How to Save Command Output to Flash on ASA 8.4

    Hi,
    I nice easy one for you guys.
    How do you save the command output from the CLI  to a file on flash?
    With IOS, I would normally use a pipe command to redirect to tftp, but the ASA doesn't support this as far as I can tell. As a work around I was thinking I could save the output to flash and then tftp that file off the ASA.
    Thanks,
    Paul

    Hi Jennifer,
    Thanks for your help. I do use this feature at the moment, but I find every break in the output (where you need to hit space to see more) gets recorded which leaves the file quite messy. I usually have to edit the file afterwards so it reads clearly.
    I wondered if there is a way for the asa to write the output directly?
    Thanks,
    Paul

  • Long Delay When Print Commands Sent To HP Wireless Officejet

    I have an HP Officejet Pro 8500 connected via a wireless connection to my home LAN. I have a late 2009 iMac (ethernet connection) running the latest release of Snow Leopard. Both the HP printer device and scanner device show up as installed in the Print & Fax settings of preferences with full functionality and they both work. The printer is normally idle (in sleep mode) until one sends a command. Any print command sent from any Mac OS X application to the device takes about 40 seconds to wake up the device if it is idle. Print commands sent from Windows XP applications running via a bootcamp partition wake up the printer instantly.  Print commands sent from any other Windows OS based computer connected wirelessly on the LAN also wake the HP instantly.
    I would appreciate any ideas as to why there is this delay when printing from Snow Leopard.

    I installed from the HP CD that came with the Officejet. It says MAC OS X v104, v10.5, Version 9.8.0 (I assume this is the HP version) and then updated to the 2/11 Apple HP Driver update. So I appear to have followed your advice.
    Note that Print & Fax preferences shows 2 devices for the Officejet. One is the printer and the other device is the fax. The printer has both printer and scan tabs. The fax does work as I just tried it. When I open the printer utility for the printer from within preferences, two devices are listed: The printer (green) and I can access the settings. The Fax identifed in its name as being at teh same ip address, but is is in red and the settings can not be accessed.
    I opened the embedded web server to look at all the settings. I'm using DHCP.
    Here is what I found under Networking:
    Host name is correct.
    Proxy setting are blank, which is correct.
    Network Protocols are set to Both IPv4 and IPv6
    Under Wireless: IPv4 Addressing is set to Automatic IP & Automatic DNS Server. IPv6 is empty. The Advanced settings are all under Infrastructure and correct. Ad Hoc settings are blank. Compatibility has the 2nd item checked that says in an Ad Hoc network use 811.b behavior.
    Anything else that may be helpful

  • How to issue print command from report/form server to client printer on web

    1) We have a client server application which is to be deployed on the web environment. The reports generated in our application are having a destination type as File. These reports are printed after applying some print format (escape sequences) which are passed on to the printer programmatically at runtime while printing.
    Now when this application is shifted on to the Application server (Forms server & Reports Server )in web environment ,the report outputs would be generated in the application server as against the client in client server environment as the report server is on the application server.
    Now while printing/accessing the report the output file will not be available to the client unless it is pushed on to the client side from the server . I am able to see reports in pdf/html output but in this case layout of my reports gets changed and I dont want to change my layouts or reformat my report layouts.
    How do I redirect the report output from the application server on to the client within the D2k context and then execute print commands?
    Note: In this case we want to use both DMT and Laser printing. Also note that we use escape sequences to adjust reports in desired printing papers.
    2) We have second set of reports which we call as document because these are printed after capturing data from 'Form' using text_io utility (please note that for these documents we are not using any Report 6i functionality)and we print it from file using printing mechanism as mentioned above. These are working well in client server application. We adopted this methodology for getting better performance (in terms of speed as database server and network traffic is not involved) of printing. But now we are converting our application for web, we are finding it difficult how to capture Form's data from browser to client's machine and then executing printing commands which are stored in our application liabrary.
    If you help me out by giving some suggestions, I shall be grateful to you.
    null

    Hello
    I wonder if you ever solved this problem.
    I have a very similar problem with Photoshop CS5 on Mac OSX 10.6 + HP Photosmart C7180.
    If I choose "Photoshop Manages Colors" the results are lousy.
    If I choose "Printer Manages Colors" the results are OK. not necessarily great.
    I believe I have all the correct settings after going through books and web advice (and wasted a lot of paper and ink).
    As far as I can see, "ColorSync" is the internal Mac management which is the only option available with "Photoshop Manages Colors" and "Vendor Matching" appears to mean the printer vendor (ie HP) will provide the matching. Either can be selected if "Printer Manages Colors" is used. It seems the type of paper can be set in three different places. if That's all a bit academic as the results are poor regardless.
    My wife suggests I buy a new printer - Epson's looking good.
    Any words of wisdom would be appreciated.

Maybe you are looking for

  • Excel File

    Hi All, My source system is SAP, from SAP I have to retrieve data and send to XML file to the specified directory. Please let me know, how to send XML file to the specified directory. Regards Naveen

  • HT204150 Contacts missing from Outlook

    I use Outlook for my contacts. Evidently, I changed something and now my computer no longer has my contacts. They are on my iphone and iCloud. Any ideas? I am new to this cloud stuff.

  • Hi, i am looking for a decision. shall i buy a 21,5 2,7 ghz or 2,8 ghz imac?

    hi, i am looking for a decision. shall i buy a 21,5 2,7 ghz or 2,8 ghz imac?

  • Target unreachable 'row' resolved null

    What are the cases of error "*Target unreachable 'row' resolved null*" I am using choice list as one of the filed in grid and also a button in that same grid. while clicking the button i am getting a popup has error like "*Target unreachable 'row' re

  • WSRP Producer Registration and Firewall Problem

    Hi, I am trying to register a WSRP producer in JDev 11g TP3, and am running into a problem with our firewall, which requires authentication. The WSRP producer is on a system inside our firewall, however it references a WSDL outside our firewall (http