Nov 21, 2009

Capture Command Prompt Data Into Text File

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

Capture Command Prompt Data Into Text File

krunalpatel1410
hi,

i m running several command in telnet/ssh command prompt it is a linux base server.
now i want to add some clear screen and capture the command prompt data into text file.
whole session can write into file.
and this to facility can be given into menu bar specified menu click event.

i want to add this functionality into my own applet jar file.

so . if u have any code for this or any idea then plz help me i m in vary trouble...

Comment/Reply (w/o sign-up)

truefusion
Java has a way to read lines from standard output. You need to import BufferedReader from java.io in order to read the lines of a standard output. I don't know Java enough to write you an example, but you can look up examples on how to implement BufferedReader to fit your needs, over the internet.

Comment/Reply (w/o sign-up)

krunalpatel1410
QUOTE (truefusion @ Apr 1 2009, 11:13 AM) *
Java has a way to read lines from standard output. You need to import BufferedReader from java.io in order to read the lines of a standard output. I don't know Java enough to write you an example, but you can look up examples on how to implement BufferedReader to fit your needs, over the internet.

hi,
thanks for hint...
have u implement the code for getting command prompt data into text file. if u done ..then please give me code for reference...
pl as soon as possible

Comment/Reply (w/o sign-up)

truefusion
I've only gotten into the basics of Java, and not necessarily to actually make Java programs. Java and C++ are quite similar with a few variations here and there. Because of which, i am merely in this for the sake of C++, to help me better understand C++, since it is quicker to learn a program with simpler ways of doing things than it is to just dive into a complex programming language. So, unfortunately, i cannot provide you with any example code for Java.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords :

  1. Helpful Registry Edit For Java Programmers
    Command Prompt on right click menu (3)
  2. Text Image Java Problem
    How to include text and image in some scrollable container? (1)
    Hello everyone, I am just writing some kind of text editor as practice for some school project and I
    have come to certain point where I can not solve certain problem. I wanted to make it available
    for people to insert images but I cannot figure how to combine images and text and which container
    should I use. I am working in Java and using swing. Also I would like to say that this content
    should be scrollable. So if anyone knows something about this and could be able to help me thanks in
    advance. Everyone opinion is accepted.....
  3. How Do You Make Text In A <div> Change When You Click On A Link?
    something to do with jvascript (4)
    Say I have a link and some text. How would I make it so that when I clicked on the link, that text
    changed?....
  4. Link In Search Form
    Open a link inside a text area... (2)
    i added a javascript search to my site Search basically i wanted to have links on there so that
    when u click the link it runs the search. instead of making ppl type it into the textarea and
    clicking go. or have it so when u click the link it enters text into the text area and then
    searchs... anyone know what im chatting about? ~thanks Please make sure that Topic title has to
    be descriptive. ....
  5. How Do I Check If A Parent Page Is Loading Data?
    (2)
    Hi. I have a popup window that opens when I click submit in it's parent window. Hitting submit
    (above) also request a new file from the server, and this can take some time to finish loading since
    I'm dealing with uploading files. I have tried to attach an onstop event to either window,
    document, or body in order to run some function if user hit stop button in parent window (not
    popup). I have no luck with making that work.... so I thought I might be able to check, from popup,
    if the parent window still loads the new page.... and if not then just close it. If....
  6. Is There A Way To Use Command Prompt Commands?
    To make a program execute cmd stuff (4)
    I looked in the System class because that would make the most sense, but I didn't see anything.
    In C++ it's system(stuff) in stdlib.h. Just looking for something like that.....
  7. Screen Capture From Client Machine
    (2)
    We have a client-server application. Iam trying to take a screenshot from the web-client (using
    Robot class) for which iam using signed jars. Everything works fine for me. But this requires
    java-plugin to be installed in the client browsers. This is a usability issue for me. I dont want to
    ask my customers to install the plugin. IS THERE ANY OTHER WAY TO TAKE SCREENSHOTS OF CLIENT
    MACHINE? We are stuck in solving this issue since two weeks, and still haven't got any clue
    about a possible solution. Any feasible suggestion would be of great help. Thanks.kvarnerexpress....
  8. Writing A Text File On Wen Host
    write to the text file on the webhost (1)
    Hi! i need to write a text file with applet on the wen host. It is like a guest book that the
    visitor enters his comments and the comments are stored in the text file. I found a website which
    presents a method to write text files to the visitor's computer but i need to write the text
    file to the webhost the applet is hosted. its like a log file or a guest book. I know there is a
    way and it can be done but i can't figure it out! Any help would be appreciated! Thanks!
    kvarnerexpress Topic title and description are VERY import to this forum. Edit to fit the quest....
  9. How To Store The Text Typed In A Form?
    sort of newsletter subsciption form (5)
    i would like to add a form on my site, that let's you fill in your e-mail address in order to
    subscribe to a newsletter. Actually, i just need to see their addresses somewhere (in a textfile,
    database, forward to my e-mailaddress,..). How can this be done? I mean, which script do i have to
    use? There is a database available. Php is enabled. I have no acces to cgi-bin, if that's
    needed. I hope someone can help me with this. The alternative would be that there is a link on my
    site so that they can mail it to me, but prefer a script /smile.gif' border='0' styl....
  10. File Upload Script In Java
    File Upload Script in JAVA (5)
    Hi, I am developing my personal website in JSP. I need a file upload script written in JAVA. I got a
    script that is Upload Bean from javazoom.com but the problem is its working fine on Windows
    Operating SYstem but not working on LINUX server. When i pass LINUX path (like
    /home/usr/public_html) to bean it gives me error Check UploadBean properties in your JSP. I
    think this bean aspecting a windows path. Can anyone provide me JSP Smart Upload script or any
    other file upload bean in JAVA. For your information Smart Upload website has been closed. My
    email id is ....
  11. Onclick Image ->> Add Text To Input(text)field?
    (9)
    when some images get clicked, a text should added to an input(textfield). Does someone know how this
    can be done? I suppose it can be done via javascript. thanks in advance! /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> If you need more information, just ask
    /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> ....
  12. Where Do I Put The Text?
    (0)
    I actually downloaded this menu applet from Magic Rainbow Buttons I made my own image to use for
    the eye HERE My question is how do I insert text? and where exactly?? here's the source:
    HERE'S The text edit I use: // Create a menu.txt file using the index
    editor "text:" "1" "" "" "" "text:" "1" "" "" "" "text:" "1" "" "" "" "text:" "1" "" "" "" "text:"
    "1" "" "" "" "text:" "1" "" "" "" "text:" "1" "" "" "" "text:" "1" "" "" "" "text:" "1" "" "" ""
    "text:" "1" "" "" ""....
  13. Reading From A Text File
    (8)
    Reading from a text file whats up guys, got some more questions. we are starting to learn how to
    write and read strings to/from txt files. wel thats pretty easy, but how would i retrieve only the
    first 2 lines of the txt file, for example, if i wanted the first 2 lines, not any other, how would
    i do it: 12 90 12 6 -9 how would i go baout doin this. thnks ke....
  14. Glowing text on mouseover...
    java scripting .. (4)
    One more script for today ... /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> The text glows on mouseover of the page which will draw the eyes of your
    visitor. Good to use on important lines of text that you want noticed. The colors can be changed
    easily to blend in with your background color, as can be the font style and size. Installation:
    STEP 1: Copy the code below and paste this into the of your html document. Comments have been
    inserted where you change the text size, type and colors at the top part of the scr....

    1. Looking for Capture, Command, Prompt, Data, Into, Text, File

Searching Video's for Capture, Command, Prompt, Data, Into, Text, File
See Also,
advertisement


Capture Command Prompt Data Into Text File

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com