Re: How to make a system call in Java

1999-05-18 Thread Michael Sinz
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"; &

Re: How to make a system call in Java

1999-05-18 Thread Yuet Sim Lee
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); > > > >

[Slightly off-topic] Re: How to make a system call in Java

1999-05-13 Thread Pavel Tolkachev
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

Re: How to make a system call in Java

1999-05-12 Thread Chris Abbey
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

Re: How to make a system call in Java

1999-05-12 Thread Yuet Sim Lee
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); >

Re: How to make a system call in Java

1999-05-12 Thread Bill Wandrack
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

How to make a system call in Java

1999-05-12 Thread Yuet Sim Lee
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