How to scrap data from Unix , using java?

Posted on 2012-09-11
Last Modified: 2013-11-13
Is there any tool or any other means to screen scrap Unix text into Java?
Question by:joe_suganth
    LVL 9

    Expert Comment

    What are you trying to accomplish?

    Author Comment

    We try to scrap values from the unix box which holds some hardware info.
    LVL 1

    Accepted Solution

    Use exec() from Runtime to execute any program that gets your values
    Process p = Runtime.getRuntime().exec ("inquiry");
    You can read from the according stream:

    Featured Post

    Training Course: Android App Development

    This course will involve creating widgets, customize list view, grid view, spinners, etc. Creating applications using audio, video, and SQLite database. Ending with publication on Google Play.

    Join & Write a Comment

    Suggested Solutions

    I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
    A short article about a problem I had getting the GPS LocationListener working.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now