Re: Need help with network script

2013-07-17 Thread bbechdol
> In addition to reposting using copy/paste, please specify the Python > > version. There were differences between 2.6 and 2.7. > > > > Short answer is that subprocess.call() returns an integral returncode. > > So zero tells you that shelling to the subprocess succeeded. > > > > Perhaps

Re: Need help with network script

2013-07-17 Thread bbechdol
Im trying to get the output from "scselect" and display it on a new line. -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with network script

2013-07-17 Thread bbechdol
On Wednesday, July 17, 2013 7:50:44 PM UTC-6, Chris Angelico wrote: > On Thu, Jul 18, 2013 at 11:44 AM, > > > Hi everyone. I am starting to learn python and I decided to start with what > > I though was a simple script but I guess now. All I want to do is return > > what current network locatio

Need help with network script

2013-07-17 Thread bbechdol
Hi everyone. I am starting to learn python and I decided to start with what I though was a simple script but I guess now. All I want to do is return what current network location I am using on my mac. Every time I run it, it gives me back a 0. I don't know what I am doing wrong so here is my cod