[Tutor] Using popen
Sean 'Shaleh' Perry
shalehperry@attbi.com
Wed, 03 Apr 2002 00:52:01 -0800 (PST)
> That's helpful, Sean, yes. However, I still don't understand even in
> this case, why I got a return of 256. I should have gotten None. At
> least, that command in the shell returns an exit code of zero with
> the data I tested. Shouldn't it return the same result in Python with
> popen? (i.e. in case of exitcode = 0, popen.close() should return
> None.)
>
> Still confused...
>
one can only assume that the authenticate script is unhappy for some reason.
If you have the source, consider adding some print statements which get logged
to a file. Look for any 'exit 1' type lines, and see why you would get there.