Matt Herzog wrote:
On Tue, Oct 20, 2009 at 02:49:53PM +, Tiago Saboga wrote:
On Tue, Oct 20, 2009 at 2:44 PM, Matt Herzog wrote:
Yes, thanks. What failed was the invocation of PIPE. Apparently I had to
explicitly import PIPE from subprocess or python had no clue as to what PIPE
On Tue, Oct 20, 2009 at 07:53:17AM -0700, Steve Willoughby wrote:
> On Tue, Oct 20, 2009 at 10:44:16AM -0400, Matt Herzog wrote:
> > Yes, thanks. What failed was the invocation of PIPE. Apparently I had to
> > explicitly import PIPE from subprocess or python had no clue as to what
> > PIPE was!
On Tue, Oct 20, 2009 at 02:49:53PM +, Tiago Saboga wrote:
> On Tue, Oct 20, 2009 at 2:44 PM, Matt Herzog wrote:
> > Yes, thanks. What failed was the invocation of PIPE. Apparently I had to
> > explicitly import PIPE from subprocess or python had no clue as to what
> > PIPE was!
> >
> > Dare
On Tue, Oct 20, 2009 at 10:44 AM, Matt Herzog wrote:
> Yes, thanks. What failed was the invocation of PIPE. Apparently I had to
> explicitly import PIPE from subprocess or python had no clue as to what PIPE
> was!
>
> Dare I say, "wtf?" since when fo I have to specify such? Shouldn't importing
On Tue, Oct 20, 2009 at 10:44:16AM -0400, Matt Herzog wrote:
> Yes, thanks. What failed was the invocation of PIPE. Apparently I had to
> explicitly import PIPE from subprocess or python had no clue as to what PIPE
> was!
>
> Dare I say, "wtf?" since when fo I have to specify such? Shouldn't im
On Tue, Oct 20, 2009 at 2:44 PM, Matt Herzog wrote:
> Yes, thanks. What failed was the invocation of PIPE. Apparently I had to
> explicitly import PIPE from subprocess or python had no clue as to what PIPE
> was!
>
> Dare I say, "wtf?" since when fo I have to specify such? Shouldn't importing
>
On Tue, Oct 20, 2009 at 08:29:59AM +0100, Alan Gauld wrote:
> "Matt Herzog" wrote
>
> >Anyway, I'd like a hint as to how I could convert this:
> >
> >ifcfg_lines = os.popen("/sbin/ifconfig fxp0").readlines()
> >x = string.split(ifcfg_lines[3])[1]
> >
> >to the subprocess module. The os module is
"Matt Herzog" wrote
Anyway, I'd like a hint as to how I could convert this:
ifcfg_lines = os.popen("/sbin/ifconfig fxp0").readlines()
x = string.split(ifcfg_lines[3])[1]
to the subprocess module. The os module is going away, right?
The os module is not going away although the popen
functio
On Mon, Oct 19, 2009 at 07:51:06PM -0400, Matt Herzog wrote:
> On Mon, Oct 19, 2009 at 08:07:47PM +0100, Alan Gauld wrote:
> >
> > "Matt Herzog" wrote
> >
> > >remembered that strings are immutable.
> > >So how was I able to change the strings for my dotted quad?
> >
> > You didn't.
> >
> >
On Mon, Oct 19, 2009 at 08:07:47PM +0100, Alan Gauld wrote:
>
> "Matt Herzog" wrote
>
> >remembered that strings are immutable.
> >So how was I able to change the strings for my dotted quad?
>
> You didn't.
>
> >LASTKNOWN = '173.48.204.168'
> > lns = cf.readlines()
> > lns = "".join(lns)
"Matt Herzog" wrote
remembered that strings are immutable.
So how was I able to change the strings for my dotted quad?
You didn't.
LASTKNOWN = '173.48.204.168'
lns = cf.readlines()
lns = "".join(lns)
lns = re.sub(LASTKNOWN, CURRENT, lns)
I assume this is the line in question?
s
11 matches
Mail list logo