Re: Run Unix shell command $ parse command line arguments in python

2005-04-23 Thread Terry Hancock
On Friday 22 April 2005 01:39 am, [EMAIL PROTECTED] wrote: > I am a newbie to python. I have a makefile which i can compile in > UNIX/LINUX, But i > I am planning to write a python script which actually does what my > MAKEFILE does. The make file is [...] > I want to write a python script to r

Re: Run Unix shell command $ parse command line arguments in python

2005-04-22 Thread Simon Brunning
On 22 Apr 2005 03:16:02 -0700, hue <[EMAIL PROTECTED]> wrote: > Thanks for your reply > > I started writing the script.. I have gone through documentation for > getopt (snip) Good start. I tend to prefer optparse over getopt these days, but if you've got it working the way you want it, you shoul

Re: Run Unix shell command $ parse command line arguments in python

2005-04-22 Thread hue
Thanks for your reply I started writing the script.. I have gone through documentation for getopt import string, getopt, sys def usage(): print '''myscript.py -- uses getopt to recognize options Options: -n -- No -t -- T -h -- help -i -- i -o -- Outp

Re: Run Unix shell command $ parse command line arguments in python

2005-04-22 Thread Simon Brunning
On 21 Apr 2005 23:39:03 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Kindly suggest me some ideas/comments. Why don't you make a start, and come back to us with whatever problems you encounter? We're happy to help, but we aren't going to do it for you. Andrew Dalke's "Wrapping command-li

Run Unix shell command $ parse command line arguments in python

2005-04-21 Thread rkoida
Hello evryone I am a newbie to python. I have a makefile which i can compile in UNIX/LINUX, But i I am planning to write a python script which actually does what my MAKEFILE does. The make file is #Makefile and some scripts to give output #numbers #Change till sign #END var1:=564-574 a1 =