Unix Programming - System call to different OS using Runtime Class in Java

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > System call to different OS using Runtime Class in Java





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author System call to different OS using Runtime Class in Java
Ayesha Ahsan

2004-01-23, 5:12 pm

Hi,

I use Runtime.getRuntime().exec(command) to make my system call.
For Windows based Dos, i add "cmd /c" before I type in my system
call. So for example make the system call "dir":
String command="cmd /c dir";
Runtime.getRuntime().exec(command);

What is the equivalenr of cmd /c in Unix .

Thank you in advance.
Ayesha
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com