- To: Steven downing <steven.downing@xxxxxxxx>
- Subject: Re: [slug-chat] Java and processes...
- From: Crossfire <xfire@xxxxxxxx>
- Date: Wed Feb 21 15:44:02 2001
- Cc: slug-chat@xxxxxxxxxxx
- User-agent: Mutt/1.2.5i
Steven downing was once rumoured to have said:
> <cursing currently restricted web access>
> I know I should ask this elsewhere, but right now e-mail is all the
> access I've got.
>
> Any Sluggers out there know if Java can start external processes,
> similar to Python's spawn kind of thing.
>
Yes. Look at java.lang.Runtime - method 'exec'.
So what you'd do would be something like:
Runtime myRuntime = java.lang.Runtime.getRuntime();
myRuntime.exec("MyCommand");
--
--==============================================--
Crossfire | This email was brought to you
xfire@xxxxxxxx | on 100% Recycled Electrons
--==============================================--