Connecting Tech Pros Worldwide Help | Site Map

Re: python custom command interpreter?

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 21st, 2008, 05:55 AM
Martin
Guest
 
Posts: n/a
Default Re: python custom command interpreter?

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 <jboggs7@gmail.comwrote:
Quote:
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 directories on
the machine.
>
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 interpreter to take the DROP command? I've been
reading and searching all day but I haven't found anything close to what I'm
doing. I realize that using custom commands in this case is overkill but in
the end is used to make the users life easier. If anyone can point me to
some documentation I would be more than grateful.
>
Thanks,
Joey
>
>
>
--
http://mail.python.org/mailman/listinfo/python-list
>


--
http://www.xing.com/profile/Martin_Marcher

You are not free to read this message,
by doing so, you have violated my licence
and are required to urinate publicly. Thank you.

  #2  
Old August 21st, 2008, 09:05 AM
janislaw
Guest
 
Posts: n/a
Default Re: python custom command interpreter?

On 21 Sie, 07:45, Martin <mar...@marcher.namewrote:
Quote:
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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.