How to get a CLI aplications output in an applet???

Hello!!
I have a java CLI (dos) application that take 3 arguments and then do some stuff and then print the output to dos.
Now I want that program to print the output in an applet instead. What I relly would like is to control the cli application from the applet like put in the arguments in the applet and then the applet start the cli applikation, and the the output comes out in the applet(or an GUI applikation)
anyone know how to do this or even better have an example of some similar code to do such a thing???? -the simpler the better

I'm not sure what the rules are on applets running other programs (starting other processes). But in general the way to do this is to use Runtime.getRuntime.exec(<cli command>). Th is call returns a process, and you can in turn ask for the process output stream and hand a read on it.

Similar Messages

  • How to get Variable name in output (Report Writer/Painter)

    Hello Experts,
    We have maintained one Repot by using Report Writer, this is the report for Cost center (periodic report), input fields are Fiscal year, Period and Cost Center. In out put system will display the selected cost center balances for individual cost element.
    Output: Excel format: in first sheet it will display balance of the total cost centers selected and from second sheet it will display individual cost center balances.
    My requirement is in the output system is displaying sheet name as CC1,CC2,CC3.......CC50, but my user want to display this as Cost Center 1, Cost Center 2, Cost Center 3...... like this. we have maintained variable name as Cost center 1, cost center 2....., but why system is displaying as CC1,CC2,.... .
    Please help me how to get the full description as sheet name in excel.
    Thanks ......Sudheer

    Hello Everybody,
    Please help me how to get variable name in Report Painter outout ( Excel format ).
    Thanks

  • How to get that colorful 'ls' output dmz keeps on showing us

    A lot of people keeps on sending me emails and asking how I get ls to look like this:
    So I figured I'd write this down so I can direct them here instead. :-)
    First of - I've made my LS_COLORS (dircolors, really) configuration public. It contains about 300 different filetypes as of this writing. It's grouped by ... uh, group. Music files, video, pictures, text documents etc. Follow the link for more information and installation instructions.
    Second, I use ls++ - colorized ls on steroids. It can colorize files matching PATTERN, thus allowing you to also differentiate files missing an extension. It also calculates the relative mtimes - see the above screenshot.
    See ls++(3) and ls++.conf(3) after installation for more information.
    Last edited by dmz (2011-07-16 14:55:01)

    Stalafin wrote:As I see it, ls++ by default acts more like $ ls -lh. Are you planning to extend ls++ to the full functionality of ls?
    It's more like ls -hAlv --group-directories-first --time=ctime --time-style=+%s . :-)
    I wont make any attempt to include every possible combination of ls options - if there's something special you're missing I can look at it though.
    Stalafin wrote:Also, the default color you use for your terms is #121212 (for instance the background of the terms you took the screenshots of)? I am using #1e1e1e and especially the timestamp of files that haven't been changed for a long time are hardly visible :-( .
    If you fire up  man ls++.conf you'll see what numbers corresponds to what element; for example, color index 4 is used for 'day'. So change the value of $c[4] in the config to any color you'd like.
    Stalafin wrote:And on another note: I checked your Xresources: what is the definition the definition of all colors from 0 to 255 good for? Isn't one usually defining only 16?
    Normally, yes. But I'm not too happy with the default colors, so I've changed some of them.
    See colorcoke and my urxvt fork for more information.

  • How to get RECORD data in output parameter of stored procedure

    I would like to return some data through RECORD structure from stored procedure.
    I have defined the RECORD as below:
    type ShipmentStatus is record(
    Booked integer,
    OnWater integer,
    OnRoad integer,
    InAir integer,
    OnRail integer,
    InWarehouse integer,
    Idle integer);
    the stored procedure is defined as
    create or replace procedure SP_MC_GET_SHIPMENT_STATUS
    iCustId in nvarchar2,
    oResult out ShipmentStatus
    I can get result in Sql*plus or PL/SQL developer, but I failed in get the result in Toplink.
    How can I get the output result, and convert it to an ENTITY by Toplink?
    Could you give me some advices on how to do mapping, how to call the stored procedure etc.., or code snip?
    Your answer is deeply appreciated. :)

    I'm not sure it is possible to get the PL/SQL record type through JDBC. Please try to access this procedure through JDBC to see if it is possible.
    You may need to convert the record type, to an object-type, i.e. wrap the procedure in another procedure that converts the record type. You could also just wrap the procedure in another that expands the record values into individual output parameters.

  • HOW TO GET A CLI WITH DISCOVER

    taxi818 wrote:
    sylviagarcia wrote:
    Taxi818; Sorry you kind of lost me there...  What I am understanding is: "IF" I want to request a CLI I have to wait 90 days.. from the day I opened the account... right?  BUT, you are saying that they will auto CLI if I use the card alot?  I thought we were suppose to keep out balance at $0 to make our score go up.. am I completely lost???  I do use another secured card ALOT because it gives me points but I PIF every month.. every now and then I'll leave like 7% balance on it.. but that's it.. all the other cards are $0.. Can you please clarify? Because I do want to make sure Discover is my #1 Thanks Ok will clarify. Keep in mind each lender is different from the other. In the Case of Discover specifically. You as Card holder can request a cli every 90days. even from time of getting card. It will more than likely be hp cli and small increase.However.Knowing Discover the way most of us know them. That is not the best case of action with them.I will explain below best case.But history. I got my disco last August with 2500 limit. 90 days asked for cli. got 500 increase and hp.Waited another 90 days and did it again. got another 500 increase to 3500 total limit.Only after i started using my Discover for every thing even little purchases did they show some love. I does not matter if you leave a balance as it is 0 percent interest as least for me it was for 15 months. most now are 12 months. its not about always paying in full. you need to show need for the Cli with Discover and the only way to do that. is a simple trick. Almost max that puppy out. Let it report on your credit report that is what you did. Then pay most of it off. and repeat. and Discover will be smiling as they give you auto increase. You will not have to request. so now. im even getting more 0 percent offers. another year for balance transfers because discover beleives they are my number 1. hehehe. But i have Sded them. because i need to pay my high balance off now. which i will take a year to do it. Hope you understand now. Usage with Discover is always the best route. let it report the balance. Then pay. then do it again.Okay, le taxi, I want only 500 increase.  They based initial CL on income, which does not warrant maxing a 4500 card out, then pay down (if it's my one and only, MAYBE 2k).  How does one get the magic even number?  For my income, I cannot complain about starting limits (even Aviator is overkill).  Just want 5k vs 4.5k.

    sylviagarcia wrote:
    Taxi818; Sorry you kind of lost me there...  What I am understanding is: "IF" I want to request a CLI I have to wait 90 days.. from the day I opened the account... right?  BUT, you are saying that they will auto CLI if I use the card alot?  I thought we were suppose to keep out balance at $0 to make our score go up.. am I completely lost???  I do use another secured card ALOT because it gives me points but I PIF every month.. every now and then I'll leave like 7% balance on it.. but that's it.. all the other cards are $0.. Can you please clarify? Because I do want to make sure Discover is my #1 Thanks Ok will clarify. Keep in mind each lender is different from the other. In the Case of Discover specifically. You as Card holder can request a cli every 90days. even from time of getting card. It will more than likely be hp cli and small increase.However.Knowing Discover the way most of us know them. That is not the best case of action with them.I will explain below best case.But history. I got my disco last August with 2500 limit. 90 days asked for cli. got 500 increase and hp.Waited another 90 days and did it again. got another 500 increase to 3500 total limit.Only after i started using my Discover for every thing even little purchases did they show some love. I does not matter if you leave a balance as it is 0 percent interest as least for me it was for 15 months. most now are 12 months. its not about always paying in full. you need to show need for the Cli with Discover and the only way to do that. is a simple trick. Almost max that puppy out. Let it report on your credit report that is what you did. Then pay most of it off. and repeat. and Discover will be smiling as they give you auto increase. You will not have to request. so now. im even getting more 0 percent offers. another year for balance transfers because discover beleives they are my number 1. hehehe. But i have Sded them. because i need to pay my high balance off now. which i will take a year to do it. Hope you understand now. Usage with Discover is always the best route. let it report the balance. Then pay. then do it again.

  • How to get the CSV,DATA output from RTF template

    Hi Jorge
    Thanks for your help.
    as in the link you have given RTF template can have the output type CSV,DATA but in the preview i can see only html,powerpoint,pdf,html excel .
    How to see the output in SCV,DATA format using my RTF template do i need to do specific design for those outputs.
    Thnaks in Advance

    It is because it has been preconfigured with such outputs.
    To modify and add more output types simply go to:
    1. Edit your Report
    2. Click on "View a List" (upper right hand corner)
    3. Click on the "output formats" (corresponding to your layout) and
    4. Check (add) the additional output formats you want your report to have.
    cheers
    Jorge

  • How to get a stable DA output without feedback in PCI-7344

    I have a motion controoler PCI-7344 to control a PZT stage without any kind of feedback. And PCI-7344 is expected to act as a DA output with trajectory generation and onboard programming. But I am confused about how to configurate this motion card.
    Another thing I want to know is what is the normal noise level of the DA output. My card's noise is very large(roughly 70mV RMS). Is this noise is normal for the PCI-7344? Or this noise is caused by my incorrect configuration and use of PCI-7344. I have tried to use the analog feedback and none feedback to configurate motion card, and the noise are the same.

    If you just want to output a trajectory profile without feedback a multifunction board like the PCI-6229 would be a better choice. Simply precalculate your trajectory profiles and send them to the outputs of the board.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • How to get a txt file output of Bookmarks or Annotations

    I just tried to get a txt file report for the bookmarks. but its not working.
    var root = this.bookmarkRoot;
    var Report = new Report();
    PrintBookmark(Report, root, 0);
    Report.save("/c/temp/newreport.txt");
    function PrintBookmark(Report, Bm, nLevel)
    Report.writeText(Bm.name);
    if (Bm.children != null)
      for (var i = 0; i < Bm.children.length; i++)
       PrintBookmark(Report, Bm.children[i], nLevel + 1);
    This is the result i got in console.
    NotAllowedError: Security settings prevent access to this property or method.
    Report.save:5:Batch undefined:Exec
    Whats wrong i did?

    First of all, a Report is a PDF that you can generate with JavaScript, not a text file. It might be better to create a text data object (doc.createDataObject), which you can then export (doc.exportDataObject).
    Edit: corrected mistake

  • How to get itunes movies to output via firewire port or other

    I work for a small school tv station in which I'd like to move the students to serving up videos via itunes because it would be easier to add new content to the loop than what they are doing now (which is basically adding a quicktime movie to another and rerendering.)
    To get it "on air" the signal currently uses simplevideo out to send quicktime playback thru firewire which is hooked to a deck. the analog of the deck is hooked to a VCR which sends feeds the on air broadcast.
    What I'd like to be able to do is have a playlist called "on air", set Itunes to show in separate window and have that window feed on air.
    The only solution I can think of is to to ask for a laptop for them and use a dual monitor-like setup and put the expanded window on the 2nd screen which would actually be a VGA to analog converter which could then be hooked to the VCR.
    Is there anything simpler, hardware or software which might interface with itunes to play the movies out to a VCR/TV? AppleTV won't work because I don't have anything HD unless there is some converter I am overlooking.
    Thanks for any suggestions.

    Well I found one software solution but it is out of our price range. Here it is for anyone else who might be facing this..
    On The Air
    http://www.softronmedia.com/products/products/otav.html

  • How to get the card serial number while installing applet

    I understand that I can retreive the card serial number from CPLC data. The getCPLCData () requires APDU objects in which it is not available at installation time.
    Does anyone suggust to me how to retrieve serial number while applet installation?

    while INSTALL is running?
    I guess there is no way to do this...

  • How to get Flex to communicate with a Java applet?

    We are building a Flex 2.0 app which needs to talk to a Java
    applet. The applet lives in the same HTML page as the Flex app. My
    guess is that we can use the Flex-Ajax bridge combined with some
    Javascript-java bridge. Any suggestions on specific libraries to
    use, web sites to consult, or techniques to use?

    Maybe this could help:
    http://www.kellyjo.com/code/flexjava/FlexJava.html

  • How  to get java plug-in to work for applet?

    Hello!
    I have a simple applet which I want to run in a browswe (Explorer and Netscape). I want to use the "java plug in" for this but my code does�nt seem to work? Can someone help me??? Code listed below...
    <!-- HTML CONVERTER -->
    <OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB">
    <COMMENT>
    <EMBED pluginspage="$NSFileLocation$"><NOEMBED>
    </COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <applet code="Gui.class" width=700 height=400>
    </applet>

    Hello agin...
    I have used a new code but this does�nt work either... help???
    <OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB"
    codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#Version=1,4,1,0"
    WIDTH = "800" HEIGHT = "400" ALIGN = "bottom">
    <PARAM NAME = CODE VALUE = "Gui.class" >
    <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
    <PARAM NAME = "scriptable" VALUE = "false">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.4"
    CODE = "Gui.class"
    WIDTH = "800"
    HEIGHT = "400"
    ALIGN = "bottom"
    scriptable = false
    pluginspage = "http://java.sun.com/products/plugin/index.html#do
    wnload">
    </EMBED>
    </COMMENT>
    </OBJECT>

  • How to get subquery field in the output

    Hi,
    How to get segment_name in the output.
    select file_name,tablespace_name form dba_data_files where tablespace_name in(SELECT a.tablespace_name from dba_data_files a,user_segments b
    where a.tablespace_name=b.tablespace_name and b.segment_name='EMP')
    Regards,
    Venkat

    Hi,
    Any one can Answer my question.
    Regards,
    Venkat

  • How to get value in a web page automatically  and sava output in database

    how to get value this table output is
    row 1, cell 1
    row 1, cell 2
    row 2, cell 1
    row 2, cell 2
    <table border="1">
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
    </tr>
    </table>

    Note: This thread was originally posted in the [Java Technologies for Web Services|http://forums.sun.com/forum.jspa?forumID=331] forum, but moved to this forum for closer topic alignment.

  • How to get XML format output from Hyperion Financial Reporting

    Dears,
    We are using Hyperion Financial Reporting to replace FSG in fusion. I found that Hyperion FR report can be exported to html/excel/pdf format. However, I would like the report to export to xml format.It means I only need the xml data source.
    Anyone who knows how to get the xml format output from Hyperion FR, is there any avaiable API?

    I think if you export the report, you will be able to open the .des file in Notepad/Wordpad and see xml content.

Maybe you are looking for

  • How can i remove my apple ID account?

    plz help me my email adress is stole by hacker tell me how can i remove it

  • Communication problems: A device attached to the system is not functioning.

    Hi all, I'm developing an applet and using the OMNIKEY 5321 CL reader for communication and testing. One of the requirements for our card is to read large binary data. For this purpose i used extented lenght APDU to read the data from card. When I te

  • RMAN DUPLICATE FOR STANDBY FROM ACTIVE DATABASE fails

    Hello I'm trying to use RMAN DUPLICATE to create a standby database using Oracle 11.2.0.3 with PSU 6 on HP-UX. Primary is 2 node RAC. Standby is also 2 node RAC. Standby database instance is started in nomount mode. I use: duplicate target database f

  • Link Webi Report to External URL using URL contained in Dim Object

    I am trying to create a link in my WebI report to an external URL which is stored in a Dimension object. The object is simply a string format which contains a link to a Lotus Notes database Example: Notes:///CA2573920000079B/0B4D8972EDD5DE7CCA2571090

  • New Macbook Gaming

    Hey guys, I am looking at getting a new Macbook (1299.00) I am wondering if anybody has tried gaming on it because aside from school work, I am big on gaming, such as "Counter-Strike source," "Call of Duty," ect. I am not sure if the graphics card an