----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Alan R Williamson wrote:
>
> Yeah, but its not at all portable, its also a lot more resource hungry as
> your having to shell a separate process to do this. It would be much easier
> to use the java.io.File suite of classes/methods to do this, will making it
> all portable.
Morning Alan, I'll have a look at it. I can see the sense in having Java
do a load of the work. Esp when doing things like listing directories
and such.
There are times however when I will need to run specfic system commands,
for instance cvs checkout and sudo. In those cases it still looks like I
will need to start a sub process via Runtime but that will be okay
because they would occur on rarer occasions.
I was going to ask about how resource hungry but I've just seen the
figures, 600k mem and around 2.5% cpu on a 450. This was for running a
cvs checkout.
> I have seen this many times before, where people say, 'but it will only ever
> run on Unix', but somebody somewhere wants it on another before too long.
In this instance, in theory, it will. The requirement for a CVS Servlet
frontend is part of an inhouse proposal to move the companies work areas
to being stored on a Linux server and just made available as a network
drive via samba. Everyone in the company uses Windows boxes, bar us
(Linux), and the guy putting the propsal forward is a Linux bod (and a
contracter). To do part of this we need to run sudo, so that the project
gets checked out from CVS as the particular user and to his or her home
directory.
> Save yourself lots of work in the future, and allow Java do as much as
> possible.
Thank you :)
Rob
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]