[Wolves] python question

Ron Wellsted ron at wellsted.org.uk
Sat Feb 28 13:25:39 GMT 2004


On Saturday 28 February 2004 12:52, sparkes wrote:
> i am sure I have seen this somewhere but I can't find the command to
> use.
>
> I want to run a string as a python command, but how do I do it?
>

python -c "python commands"

eg

python -c "print dir()"

will produce the expected output.  The "print" is required if you want output, 
otherwise you will get nothing.

-- 
Ron Wellsted
http://www.wellsted.org.uk
ron at wellsted.org.uk
N 52.567623, W 2.137621




More information about the Wolves mailing list