[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-user
Subject:    Re: [groovy-user] Execute and environment
From:       "Edward Sumerfield" <esumerfd () bitbashers ! org>
Date:       2007-01-30 16:27:31
Message-ID: 6a216ba20701300827me968aebl2a67600b993df467 () mail ! gmail ! com
[Download RAW message or body]

"ls -l".execute([], new File("c:/Windows")).text

    http://groovy.codehaus.org/groovy-jdk.html#meth264

On 1/30/07, Detering Dirk <detering@iskv.de> wrote:
> Perhaps anyone can give me a hint:
>
> I try to .execute() a command from inside a script.
> As I have to execute this command in an other directory,
> I would like to call it like:   .execute(env, file)
> as there doesn't seem to be the option to omit the env
> setting when wanting the file param.
>
> But where do I get the current env, if I do not want
> to setup an own environment for the command?
>
> Any help appreciated
> Dirk
>
> --
> ISKV
> Paul-Klinger-Straße 15
> 45127 Essen
> Telefon  +49-(0)-201-1094-0
> Fax      +49-(0)-201-1094-444
> < http://www.iskv.de/>
>
>
> ***********************************************************************
>
> Die Information in dieser email ist vertraulich und ist ausschliesslich
> fuer den/die benannten Adressaten bestimmt. Ein Zugriff auf diese
> email durch andere Personen als den/die benannten Adressaten ist
> nicht gestattet. Sollten Sie nicht der benannte Adressat sein, löschen
> Sie bitte diese email.
>
> ***********************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


-- 
Ed

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic