-
Invoking UNIX shell commands from Java
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
-
Re: Invoking UNIX shell commands from Java
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
-
Re: Invoking UNIX shell commands from Java
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
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|