[Tutor] Using sys.argv[]
Rick Pasotto
rick@niof.net
Sun, 1 Jul 2001 23:32:57 -0400
On Sun, Jul 01, 2001 at 10:35:38PM -0400, Cliff Martin wrote:
>
> #! /usr/bin/python
>
> import os
> import sys
> os.system("Mathprogram sys.argv[1] sys.argv[2]")
The following should work:
import os
import sys
os.system("Mathprogram %s %s" % (sys.argv[1],sys.argv[2]))
--
Start with the idea that society is contrary to Nature; devise
contrivances to which humanity can be subjected; lose sight of the
fact that humanity has its motive force within itself; consider
men as base raw materials; propose to impart to them movement at
will, feeling and life, set oneself up apart, immeasurably above
the human race -- these are the common practices of the social
planners. The plans differ; the planners are all alike...
-- Frédéric Bastiat (1801-1850)
Rick Pasotto rickp@telocity.com http://www.niof.net