Anyone get Runtime on linux ?

any one get Runtime class to execute command on Linux?

hi,
I successfully got working with the following code.Try it.
<code>
try
Process p=Runtime.getRuntime().exec("whoami");
InputStream is=p.getInputStream();
InputStream eis=p.getErrorStream();
BufferedReader pout=new BufferedReader(new InputStreamReader(is));
BufferedReader perrout=new BufferedReader(new InputStreamReader(eis));
String s=pout.readLine();
String se=perrout.readLine();
System.out.println(s);
System.out.println(se);
while(s!=null)
     System.out.println(s);
     s=pout.readLine();
while(se!=null)
     System.out.println(se);
     se=perrout.readLine();
p.waitFor();
catch(Exception e)
     System.out.println(e.getMessage());
</code>
Hope it helps.
bhuvana.

Similar Messages

  • Not getting runtime errors

    I have been using Flex for 6 months and suddenly this week I
    am no longer getting runtime errors which is making it very
    dificult to debug. Does anyone know what would cause runtime errors
    to be disabled?

    Did you turn off "Strict Mode"?

  • When trying to browse itunes store I am still getting runtime error r6025. I know many others are having tjis problem. Any remedies yet?

    Still getting Runtime Error R6025 when trying to browse iTunes store. So far iTunes support has been no help. Has anyone solved this problem?

    Post this in the iTunes Store forum since it has nothing to do with your iPod nano.
    https://discussions.apple.com/community/itunes/itunes_store
    B-rock

  • DataTipFunction  anyone get this to work??

    I am trying to pass in some info using dataTipFunction when I
    create a chart but the object being passed to Javascript is empty.
    Anyone get this to work??
    Eric Haskins

    please define your problem exactly. du you get a compile error? a runtime error?
    please use the code tags, and rename your static member Array to thomething else as a classname.
    kind regards

  • I've unistalled and reinstalled the latest version of iTunes...but I continue to get 'Runtime error R6034'...followed by 'Error 7 Windows Error 1114"

    I've unistalled and reinstalled the latest version of iTunes...but I continue to get 'Runtime error R6034'...followed by 'Error 7 Windows Error 1114"....any help from anyone?

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Have anyone installed 1158 on linux AS3.0

    Have anyone installed 1158 on linux AS3.0

    when applied the i386-glibc-2.1-linux the logfile have some error message like :
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/bin/extproc': No such file or directory
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/bin/agtctl': No such file or directory
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/bin/hsalloci': No such file or directory
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/bin/hsots': No such file or directory
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/bin/hsdepxa': No such file or directory
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/bin/tnslsnr': No such file or directory
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/bin/lsnrctl': No such file or directory
    /bin/chmod: failed to get attributes of `ctxhxx': No such file or directory
    chmod: failed to get attributes of `/u02/oracle/proddb/8.1.7/ctx/bin/ctxhx': No such file or directory

  • Does anyone get a vibration sound when talking on the iPhone6? It doesn't happen all the time and happens with talking to different people.

    Does anyone get a vibration sound when talking on the iPhone6? It doesn't happen all the time and happens with talking to different people. I have tried to troubleshoot it, but can't find a answer.

    Hey CEVYNBARRY!
    Here is an article for you that will help you address this issue:
    Troubleshooting "A connection failure has occurred", "The specified server could not be found" or similar messages
    http://support.apple.com/kb/ts1843
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Getting Runtime Error while Activating Characteristics in BW sandbox system

    Hi, i m getting  runtime error while activating Characteristics. Error as All InfoObjects Already Saved(locked)
    Short Text
    SQL error 1691 occurred when accessing program "GP4H8Z73D1WOGH7XBIZ54N5GXEG "
       Runtime Errors         DBIF_REPO_SQL_ERROR
    even if creating a new Characteristics same error is comming.
    Key Figures are getting created successfully but problems is comming only with Characteristics. Please Help...
    Edited by: kush kumar on Mar 23, 2010 11:56 AM

    Hi,
    Follow bellow steps:
    a) Once check the Lock entries by useing SM13.
    Goto SM13--> Select your object lock entries --> Select delete.
    b). Acitvate the Infoobject.
    Regards.

  • Getting Runtime error while adding Second page in Smartform.

    I added 2 pages in smartform. When I worked with single page. smartform working properly. Now I added one more page(i.e Second page) I am getting runtime error.  ("The current ABAP/4 program encountered an unexpected
    situation".   A RAISE statement in the program "SAPLSTXBC" raised the exception
    condition "ERROR".)   When I debug this standard program Something width problem getting on line number 110. Both width not matched so program raising exception. Can you please tell me to solve this problem what changes will I do in my smartform?

    Please let me know the details of each page.
    Error can occur in these cases.
    1) You copied the first page to second. and later you change the width of second page
    2) You created the second page and there is template in second page. each column width is not matching with the total width of the template.
    3) windows width is greater than the page width
    Please have a look.
    Regards,
    Nikhil
    Edited by: Nikhil V Kumar on Jul 27, 2010 12:16 PM

  • Now after a year I am getting runtime error at boot u of software

    everytime I start the program I get runtime errors

    Could you explain the workflows when you see these errors.
    Also if you could help me with the event logs of the crash happening on your machine. To view those logs you can follow the steps shared at: http://www.cyberlink.com/support/faq-content.do?id=10449
    You can post a screenshot(as shown on this link with details like  .dll name and more information) of the event viewer dialog with details open.
    Regards,
    vaishali

  • In VL02N, getting runtime error "dynpro_msg_in_help" when deleting outbound delivery in production

    Hello SD members,
    I have an issue in which while executing VL02N and trying to delete the outbound delivery getting runtime error "dynpro_msg_in_help" in production system.
    Kindly suggest how to solve this...
    Regards
    Venkat

    Hi Venkata Pradeep,
    Can you please proivde more details about an error to understand the issue.
    Regards,
    Pravin

  • TS5376 I can not install itunes.  I get Runtime Error!  R6034.  An application has made an attempt to load the c runtime library incorrectly.  Please contact the application support team for more information.  I've been uninstalling, moving .dll files, re

    The other day I was prompted to update itunes.  I started to, and it crashed my itunes.  Then I tried to uninstall itunes, so that I could turn around and re-install it again.  Now I can not install itunes.  I get Runtime Error! message. R6034.  For the last two hours I have  tried deleting itunes, moving the .dll files to the desktop, restarting the computer (more times than I can count), deleting the temp files, updating my internet explorer, using the fix it program,..... 
    The two messages that I am getting are:
    Runtime Error! Program:c\Program Files (x86)\itunes\Tunes.exe     R6034   An application has made an attempt to load the c runtime library incorrectly.  Please contact the application's support team for more information.
    Also:  Service to 'Apple Mobile Device' (Apple Moblie Device) failed to start.  Verify that you have sufficient priviledges to start system services.

    I too was getting the same message regarding R6034. After many frustrating hours I went to the iTunes support page and clicked on "install and update." When that page came up I scrolled on to "removing and reinstalling iTunes......" There they tell you what files need to be removed and what order to do it in so you can reinstall iTunes. My iTunes works now and I didn't lose any music.
    About the Apple Mobile Device, well that's one of the files that has to be uninstalled. When you reinstall iTunes the Apple Mobile Device is automatically reinstalled.
    Hope this works for you as it did for me. Warning: it takes about an hour to do all this.

  • Can anyone get the SimpleVideoPlayer demo to work with 6u13?

    I have tried it on a Vista machine and a Windows Server 2003 machine both with Java 6 Update 13 and the result is the same:
    playing http://sun.edgeboss.net/download/sun/media/1460825906/1460825906_2956241001_big-buck-bunny-640x360.flv+
    Error with Media: MediaError: media unsupported:com.sun.media.jmc.MediaUnsupportedException: Unsupported media: http://sun.edgeboss.net/download/sun/media/1460825906/1460825906_2956241001_big-buck-bunny-640x360.flv+
    * mediaSourceURL=http://sun.edgeboss.net/download/sun/media/1460825906/1460825906_2956241001_big-buck-bunny-640x360.flv*
    Can anyone get this demo to actually work? If so, what's the secret?
    Thanks,
    The Gibbon

    Can someone please try it and let me know?
    This is the link:
    [http://javafx.com/samples/SimpleVideoPlayer/index.html]
    Thanks,
    The Gibbon

  • Anyone get a huge "Problem Report for iDVD" with hundreds of lines of information?

    Anyone get a huge "Problem Report for iDVD" with hundreds of lines of information? This happens right before the DVD would be finished burning but instead crashes and leaves the long report your have to scroll down several times to read. I had to take several screen captures of the screen to get the WHOLE report. Here is two:
    (If there is another thread on this - just answer the question or refer me to it. I'm past due on a big project. Don't have time to read all 21,000 discussions in the iDVD thread. Be kind. Thanks )

    Some things to try first:
    1. Disconnect any and all 3rd party devices that didn't ship with your mac directly from apple (both FW and USB included). 
    2. Restart your mac without any 3rd party devices attached whatsoever. That includes ext. hard drives, blue tooth devices, and any third party memory product/s. Basically, anything that doesn't come directly from apple has to go (at least while troubleshooting).
    3. Need you to dispose of the plist for iDvd also. Go to you Home folder, the one that looks like a house > Library > Preferences > com.apple.iDvd.plist and drag and drop this file/s to the trash. Make sure to first quit iDvd prior to disposing of this pref. file/s.
    4. Run apple's disc utility and repair permissions. Applicantions > Utilities > Disc Utility > Repair Permissions.
    5. Restart your mac yet again, and try iDvd one more time.
    6. If it's still at issue then please open iDvd from a separate user account and try your project one more time. If you don't know how to create a separate user account then just come on back and one of will show you how.
    Good luck.
    Message was edited by: SDMacuser

  • HT2434 How do I get my custom linux software to display at 1280x1024 on my iMac under Parallels? and stay that way when I reboot?

    How do I get my custom linux software to display at 1280x1024 on my iMac under Parallels? and stay that way when I reboot?

    Interesting. Comes with? you didn't have either before? Paragon is commercial and is now v. 10.0, they were the only one keeping updated and was supporting 10.7.4. I would not enable more than one.
    For writing to HFS Paragon has theirs but probably give the nod to MacDrive there.
    I never do an upgrade to a new OS over the old system, I backup (clone) and format the drive with the new OS and do the install so whatever is there I know is clean and also to keep from carrying around leftovers from years and systems past.
    I would assme Paragon is limited. Try their site and knowledge base?
    MacDrive
    http://www.mediafour.com/updates/macdrive
    Paragon HFS
    http://www.paragon-software.com/home/hfs-windows/
    Paragon NTFS
    http://www.macupdate.com/app/mac/26288/ntfs-for-mac-os-x
    http://www.paragon-software.com/home/ntfs-mac/

Maybe you are looking for

  • Slow & Incomplete Syncs

    Ipod Touch 5g : 64G  on IOS 8.1.1 Plug it into PC running Windows 7 Home Premium and Itunes 12.0.1.26 Syncing is SO slow.  Ipod has 27G open on it and it still takes FOREVER to sync.  I always get several error messages saying the ipod can't be read

  • BI 4.0 Installation - bootstrap file is invalid

    Hello, I did a fresh installation of a BI 4.0 server on a linux x86_64server. There are no errors during the installation. If I try to access the CMC (http://<myserver>:8080/BOE/CMC) I get this error: Error: Server <myserver> not found or server may

  • Messages error -1712

    The Messages app doesn't start when I restart I get error -1712 any ideas how i correct it? I'm running Mavericks 10.9.1 on a MacBook Pro 2.8 GHz Intel Core 2 Duo

  • SAP SD or CRM

    Greetings, I have a 3 months of SAP SD end user experience and I have skimmed the Text “Implementing SAP R/3  sales and distribution by Glynn C.Williams I have collated the material for the SD certification and also intended to do the training at SAP

  • Apple solution to iTunes install problem - More needed from Apple

    Apple has published a fix for the problem arising from attempts to install the latest iTunes upgrade at http://support.apple.com/kb/ts3074. In it they suggest the issue may be caused by a bad installation of a version of Microsoft's .NET Framework. F