Re: [Tutor] trouble understanding the difference

2009-04-10 Thread johnf
On Friday 10 April 2009 09:41:13 am johnf wrote: > On Friday 10 April 2009 08:35:13 am johnf wrote: > > I can get the following to work: > > os.system('lp -d printer invoice.pdf') > > > > but what I think is the correct way for the future is: > > subprocess.Popen('lp -d printer invoice.pdf') > > an

Re: [Tutor] trouble understanding the difference

2009-04-10 Thread johnf
On Friday 10 April 2009 08:35:13 am johnf wrote: > I can get the following to work: > os.system('lp -d printer invoice.pdf') > > but what I think is the correct way for the future is: > subprocess.Popen('lp -d printer invoice.pdf') > and it does not work??? > > Can someone explain what I'm doing wr

[Tutor] trouble understanding the difference

2009-04-10 Thread johnf
I can get the following to work: os.system('lp -d printer invoice.pdf') but what I think is the correct way for the future is: subprocess.Popen('lp -d printer invoice.pdf') and it does not work??? Can someone explain what I'm doing wrong? Traceback (most recent call last): File "/home/johnf/