Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-05 Thread Frederik Holljen
On 04/02/2009, Tobias Schlitt wrote: > Hi Fred, > > btw. nice to see you being so active here. :) Hehe, you know me. Once I feel strongly about something I'm not letting it go that easily. Something caught my eye and now I have to follow up on it :) > > On 02/04/2009 05:08 PM Frederik Holljen w

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Gaetano Giunta
Alexandru Stanoi a écrit : > ... > > I guess all ways of calling should be supported in order to please > everybody. +1 > So you can write: > > $p->argument( 'arg1' )->argument( 'arg2' )->execute(); > > or: > > $p->arguments( 'arg1', 'arg2' )->execute(); > > Some questions about SystemProcess: >

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Jakob Westhoff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tobias Schlitt wrote: > Hi Fred, > > btw. nice to see you being so active here. :) > > On 02/04/2009 05:08 PM Frederik Holljen wrote: >> On 04/02/2009, Jakob Westhoff wrote: >>> >> $p = new ezcSystemProcess( 'foobar' ); >>> >> $p->workingDirecto

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Tobias Schlitt
Hi Fred, btw. nice to see you being so active here. :) On 02/04/2009 05:08 PM Frederik Holljen wrote: > On 04/02/2009, Jakob Westhoff wrote: >> >> $p = new ezcSystemProcess( 'foobar' ); >> >> $p->workingDirectory( 'my/directory' ) >> >> ->environment( 'MY_ENVIRONMENT_VARIABLE', '42' ) >>

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Frederik Holljen
On 04/02/2009, Jakob Westhoff wrote: > >> $p = new ezcSystemProcess( 'foobar' ); > >> $p->workingDirectory( 'my/directory' ) > >> ->environment( 'MY_ENVIRONMENT_VARIABLE', '42' ) > >> ->environment( 'MY_OTHER_ENVIRONMENT_VARIABLE', '23' ) > >> ->redirect( ezcSystemProcess::STDERR, ezc

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Jakob Westhoff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederik Holljen wrote: > On 04/02/2009, Jakob Westhoff wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> Frederik Holljen wrote: >> >>> Design goals >> >>> >> >>> The workflow of a creating a SystemProcess object ap

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Jakob Westhoff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexandru Stanoi wrote: > Frederik Holljen wrote: >>> > Design goals >>> > >>> > >>> > The workflow of a creating a SystemProcess object applying certain >>> arguments as >>> > well as options to it and finally spawning the process s

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Tobias Schlitt
On 02/04/2009 02:32 PM Frederik Holljen wrote: > On 04/02/2009, Tobias Schlitt wrote: >> On 02/04/2009 02:14 PM Alexandru Stanoi wrote: >> > Some questions about SystemProcess: >> > * Are arguments values abstracted? If I use $p->argument( 'arg1' ) does >> > it mean the command takes the argu

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Alexandru Stanoi
Frederik Holljen wrote: >> > Design goals >> > >> > >> > The workflow of a creating a SystemProcess object applying certain >> arguments as >> > well as options to it and finally spawning the process should be >> intuitive as >> > possible. The best way to achieve such an intui

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Frederik Holljen
On 04/02/2009, Tobias Schlitt wrote: > On 02/04/2009 02:14 PM Alexandru Stanoi wrote: > > > Some questions about SystemProcess: > > > * Are arguments values abstracted? If I use $p->argument( 'arg1' ) does > > it mean the command takes the argument 'arg1' or does it mean it takes > > the argum

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Tobias Schlitt
On 02/04/2009 02:14 PM Alexandru Stanoi wrote: > Some questions about SystemProcess: > * Are arguments values abstracted? If I use $p->argument( 'arg1' ) does > it mean the command takes the argument 'arg1' or does it mean it takes > the argument '-arg1' or '--arg1' or '/arg1'? Also some comman

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Alexandru Stanoi
Kore Nordmann wrote: > On Wed, 2009-02-04 at 11:46 +0100, Jakob Westhoff wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Frederik Holljen wrote: > Design goals > > The workflow of a creating a SystemProcess object applying > certain arguments as well a

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Frederik Holljen
On 04/02/2009, Jakob Westhoff wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Frederik Holljen wrote: > >>> Design goals > >>> > >>> The workflow of a creating a SystemProcess object applying > >>> certain arguments as well as options to it and finally spawning >

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Kore Nordmann
On Wed, 2009-02-04 at 11:46 +0100, Jakob Westhoff wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Frederik Holljen wrote: > >>> Design goals > >>> > >>> The workflow of a creating a SystemProcess object applying > >>> certain arguments as well as options to it and final

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Jakob Westhoff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederik Holljen wrote: >>> Design goals >>> >>> The workflow of a creating a SystemProcess object applying >>> certain arguments as well as options to it and finally spawning >>> the process should be intuitive as possible. The best wa

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-04 Thread Frederik Holljen
> > Design goals > > > > > > The workflow of a creating a SystemProcess object applying certain > arguments as > > well as options to it and finally spawning the process should be intuitive > as > > possible. The best way to achieve such an intuitive API would be to design > i

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-02 Thread Jakob Westhoff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Derick Rethans wrote: [... snip ...] >> The SystemProcess component needs to fulfill the following >> requirements from the current point of view: >> >> Execution - >> >> - Provide an easy but yet effective way of executing external >> proces

Re: [Components] Proposal: SystemProcess - External command execution component

2009-02-02 Thread Derick Rethans
On Wed, 28 Jan 2009, Jakob Westhoff wrote: > I would like to propose a new component to ease the execution of > external processes. > > I created an object oriented execution wrapper some time ago for another > project I am currently working on. After all the positive feedback I got > from differ

[Components] Proposal: SystemProcess - External command execution component

2009-01-28 Thread Jakob Westhoff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I would like to propose a new component to ease the execution of external processes. I created an object oriented execution wrapper some time ago for another project I am currently working on. After all the positive feedback I got from differe