Re: Need help with network script

2013-07-17 Thread Chris Angelico
On Thu, Jul 18, 2013 at 11:59 AM, wrote: > On Wednesday, July 17, 2013 7:50:44 PM UTC-6, Chris Angelico wrote: >> >> Copy and paste your actual code, don't re-type it :) > > This is as far as I have gotten. THis is all my code and it has been copied > and pasted. Thats why I am posting here. I k

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 Dave Angel
On 07/17/2013 09:50 PM, Chris Angelico wrote: On Thu, Jul 18, 2013 at 11:44 AM, wrote: 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. Ever

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

Re: Need help with network script

2013-07-17 Thread Chris Angelico
On Thu, Jul 18, 2013 at 11:44 AM, wrote: > 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

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