Kevin:
>#!/usr/bin/python
>
>import os
>import urllib
>os.system("python pyq.py ibm > text1.txt")

Check the return value of os.system.

>note: currently the text1.txt outputted is just blank, however if i run 
>the command normally as 'python pyq.py ibm' in the command line, it 
>works correctly and gives me the price of ibm.

Same PATH, PYTHONPATH, current working directory, user,... ?

-- 
René Pijlman
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to