Re: pexpect and logging integration

2010-03-11 Thread Lars Stavholm
It works like a charm, thank you! /Lars Jean-Michel Pichavant wrote: > Lars Stavholm wrote: >> Hi all, >> >> has anyone managed to integrate pexpect and logging? >> >> I.e., I'd like to be able to pick up the dialog, >> commands sent and responses

pexpect and logging integration

2010-03-09 Thread Lars Stavholm
Hi all, has anyone managed to integrate pexpect and logging? I.e., I'd like to be able to pick up the dialog, commands sent and responses received, in my logging. I know about the pexpect logfile, and I can log things to stdout or stderr, but I really need to log using the python logging library.

Re: open a shell prompt froma python program

2008-10-30 Thread Lars Stavholm
gaurav kashyap wrote: > Dear all, > > Can u tell me a python program that when executed in a shell > prompt,opens another shell prompt. > > Simply i want to open a shell prompt from a python program. I think you're looking for: import os os.system("/bin/sh") -- http://mail.python.org/mailman/l

Re: equivalent of py2exe in other os

2008-10-07 Thread Lars Stavholm
Almar Klein wrote: > Hi, > I was going to say "try google", but it seems quite hard to find indeed. > Use "freeze" for linux and "py2app" for osx. http://python.net/crew/atuining/cx_Freeze /L > I know of a program called gui2exe which is a gui which uses the three > to compile executables of your

Re: python for *nix system admins

2008-09-28 Thread Lars Stavholm
Thank you all for your input. /Lars Lars Stavholm wrote: > Hi All, > > I'm new to this list and hoping that this is not off-topic. > If it is, please point me in the right direction. > > I seem to recollect a python module or library for *nix sysadmins, > but I can&#x

Re: python for *nix system admins

2008-09-27 Thread Lars Stavholm
km wrote: > import os Thanks, but I'm aware of the standard libraries like os, sys, commands, and whatnot. I'm looking for a non-standard library that acts like a wrapper for the unix commands. I have seen it, I just can't find it again. /L > On Sat, Sep 27, 2008 at 1

python for *nix system admins

2008-09-27 Thread Lars Stavholm
pabilities to the python language. It seemed like a lesser known, perhaps new, python library or module. Any input or ideas appreciated /Lars Stavholm -- http://mail.python.org/mailman/listinfo/python-list