[Tutor] DOS Commands?

alan.gauld@bt.com alan.gauld@bt.com
Fri Nov 8 19:20:02 2002


>       fSMSFile = open (sSMSFile, "w")
>       popen('ncftpput -u ****** -p ****** 
> 
> I get (on one line):
> 
>       <open file 'ncftpput -u ****** -p ****** 

Notce that you assigned the first open result to a file handle.
popen also returns a file handlke but since you didn't assign 
it Python usefully told you the result of the command was an open file...

You need to assign popen to a file variable which you can then read from.

Alan g