Hi
I am new to Java so please bear with me.
Is it possible to invoke UNIX utilities like grep etc from a Java program?
If so, is there a sample/class that would show me the way?
Thanks
Bikhod
Printable View
Hi
I am new to Java so please bear with me.
Is it possible to invoke UNIX utilities like grep etc from a Java program?
If so, is there a sample/class that would show me the way?
Thanks
Bikhod
Yes, Runtime.getRuntime().exec("your command goes here"). But read the API
documentation for the Runtime class, it is often more complicated than just
that.
PC2
"Bikhod" <bikhod@yahoo.co.uk> wrote in message
news:3b94e248$1@news.devx.com...
>
> Hi
>
> I am new to Java so please bear with me.
>
> Is it possible to invoke UNIX utilities like grep etc from a Java program?
> If so, is there a sample/class that would show me the way?
>
> Thanks
> Bikhod
Thanks Paul.
"Paul Clapham" <pclapham@core-mark.com> wrote:
>Yes, Runtime.getRuntime().exec("your command goes here"). But read the
API
>documentation for the Runtime class, it is often more complicated than just
>that.
>
>PC2
>
>"Bikhod" <bikhod@yahoo.co.uk> wrote in message
>news:3b94e248$1@news.devx.com...
>>
>> Hi
>>
>> I am new to Java so please bear with me.
>>
>> Is it possible to invoke UNIX utilities like grep etc from a Java program?
>> If so, is there a sample/class that would show me the way?
>>
>> Thanks
>> Bikhod
>
>