Re: python custom command interpreter?

2008-08-21 Thread janislaw
On 21 Sie, 07:45, Martin [EMAIL PROTECTED] wrote: I guess you are looking for this: http://docs.python.org/lib/module-cmd.html OP may also would like to hack his own language using EasyExtend: http://www.fiber-space.de/EasyExtend/doc/EE.html Most likely an overkill. -- Jan Wicijowski --

Re: python custom command interpreter?

2008-08-21 Thread Derek Martin
On Thu, Aug 21, 2008 at 05:17:41AM +, Marc 'BlackJack' Rintsch wrote: On Wed, 20 Aug 2008 18:46:42 -0400, Derek Martin wrote: How so? What could be easier than rm -rf directory? C:\rm -rf directory Yeah, except the application specified by the OP is to remove directories during a

python custom command interpreter?

2008-08-20 Thread joey boggs
I've got a hopefully simple question, maybe I'm just not searching for the right information. I'm working on a project that is using kickstarts to build Fedora/CentOS variant machines. Within the kickstart in the post section we will be performing disk space reductions by removing any unnecessary

Re: python custom command interpreter?

2008-08-20 Thread Fredrik Lundh
joey boggs wrote: In the end I'd like to be able to run a custom interpreter and just feed it one command and a directory. The end result in the kickstart something like this: %post --interpreter #!/usr/bin/myinterpreter DROP /tmp/directory DROP /tmp/directory2 How would I setup the

Re: python custom command interpreter?

2008-08-20 Thread joey boggs
That's kinda what I'm looking for, but it can't be interactive as there's no way to send input during the installation. It should pass the DROP statements to the interpreter and the interpreter takes the input and runs os.rmdir() or something similar. This way the backend does all the work and the

Re: python custom command interpreter?

2008-08-20 Thread Fredrik Lundh
joey boggs wrote: That's kinda what I'm looking for, but it can't be interactive as there's no way to send input during the installation. It should pass the DROP statements to the interpreter and the interpreter takes the input and runs os.rmdir() or something similar. This way the

Re: python custom command interpreter?

2008-08-20 Thread Derek Martin
On Wed, Aug 20, 2008 at 03:19:19PM -0400, joey boggs wrote: In the end I'd like to be able to run a custom interpreter and just feed it one command and a directory. The end result in the kickstart something like this: %post --interpreter #!/usr/bin/myinterpreter DROP /tmp/directory DROP

Re: python custom command interpreter?

2008-08-20 Thread Mitko Haralanov
On Wed, 20 Aug 2008 15:19:19 -0400 joey boggs [EMAIL PROTECTED] wrote: In the end I'd like to be able to run a custom interpreter and just feed it one command and a directory. The end result in the kickstart something like this: %post --interpreter #!/usr/bin/myinterpreter DROP

RE: python custom command interpreter?

2008-08-20 Thread joey boggs
-- Forwarded message -- From: joey boggs [EMAIL PROTECTED] Date: Wed, Aug 20, 2008 at 9:46 PM Subject: Re: python custom command interpreter? To: Derek Martin [EMAIL PROTECTED] That was my first approach, but it's not clean enough -point at interpreter - DROP /directory That's

Re: python custom command interpreter?

2008-08-20 Thread Marc 'BlackJack' Rintsch
On Wed, 20 Aug 2008 18:46:42 -0400, Derek Martin wrote: How so? What could be easier than rm -rf directory? C:\rm -rf directory Illegal command: rm. Hm. ;-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: python custom command interpreter?

2008-08-20 Thread Fredrik Lundh
Marc 'BlackJack' Rintsch wrote: How so? What could be easier than rm -rf directory? C:\rm -rf directory Illegal command: rm. Hm. ;-) does CentOS/Fedora run Windows these days? /F -- http://mail.python.org/mailman/listinfo/python-list

Re: python custom command interpreter?

2008-08-20 Thread Martin
I guess you are looking for this: http://docs.python.org/lib/module-cmd.html On Wed, Aug 20, 2008 at 9:19 PM, joey boggs [EMAIL PROTECTED] wrote: I've got a hopefully simple question, maybe I'm just not searching for the right information. I'm working on a project that is using kickstarts to