In <[email protected]> [email protected]
writes:
> someip = '192.168.01.01'
> var1 = 'lynx -dump http://' + someip + '/cgi-bin/xxxx.log&.submit=+++Go%21+++
> > junk'
'&' is a special character in shell commands. You'll need to quote or
escape it.
Try this:
someip = '192.168.01.01'
var1 = 'lynx -dump "http://' + someip +
'/cgi-bin/xxxx.log&.submit=+++Go%21+++" > junk'
Note the extra pair of double-quotes around the http:// part.
--
John Gordon A is for Amy, who fell down the stairs
[email protected] B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list