On Tue, 18 May 1999 22:38:02 -0400, Yuet Sim Lee wrote:
>On May 12, 7:08pm, Bill Wandrack wrote:
>> Subject: Re: How to make a system call in Java
>> You can make system calls with java by using Process.
>>
>>
>> String command = "mkdir new_dir";
&
On May 12, 7:08pm, Bill Wandrack wrote:
> Subject: Re: How to make a system call in Java
> You can make system calls with java by using Process.
>
>
> String command = "mkdir new_dir";
> Process createNewDir = Runtime.getRuntime().exec(command);
>
>
>
>
Chris Abbey wrote:
...
> *note: Process.waitFor() has some ugly problems (on all platforms)
> with never returning your call
...It seemed to be a problem also when I played with this (using
JPython, not java directly, though). But then I discovered this was my
lack: I must empty both Output a
yup, that's what it would do alright. I assume you expected something like:
[cabbey@tweedle]~$ ./a.out
a.out was called
[cabbey@tweedle]~$ java runabl
a.out was called
Inside try
java.lang.UNIXProcess@156d6e
[cabbey@tweedle]~$
Right? Wrong.
This is Runtime.exec() functioning as designed. The p
ut" directly.
On May 12, 7:08pm, Bill Wandrack wrote:
> Subject: Re: How to make a system call in Java
> You can make system calls with java by using Process.
>
>
> String command = "mkdir new_dir";
> Process createNewDir = Runtime.getRuntime().exec(command);
>
You can make system calls with java by using Process.
String command = "mkdir new_dir";
Process createNewDir = Runtime.getRuntime().exec(command);
Yuet Sim Lee wrote:
> I am writing a Java code which has to
> call another C-program. I knew that
> C has a system call, exec or system.
>
> Are
I am writing a Java code which has to
call another C-program. I knew that
C has a system call, exec or system.
Are there any similar system call in Java?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubsc