From: Mark W. A. <sl...@do...> - 2004-09-21 18:56:28
|
Hi, Just starting to play with pyssh. I see you want a setup.py. I can probably do one fairly easily. Do you want the modules re-structured as a package, e.g. pyssh/__init__.py, with nbpipe and ptyext underneath? (That's what I recommend to maintain your own namespace.) mwa -- Mark W. Alexander sl...@do... The contents of this message authored by Mark W. Alexander are released under the Creative Commons Attribution-NonCommercial license. Copyright of quoted materials are retained by the original author(s). http://creativecommons.org/licenses/by-nc/2.0/ |
From: Mark W. A. <sl...@do...> - 2004-09-21 21:43:53
|
On Tue, Sep 21, 2004 at 02:56:22PM -0400, Mark W. Alexander wrote: > Hi, > > Just starting to play with pyssh. I see you want a setup.py. I can > probably do one fairly easily. Do you want the modules re-structured as > a package, e.g. pyssh/__init__.py, with nbpipe and ptyext underneath? > (That's what I recommend to maintain your own namespace.) Oh, what the heck, I like it, so: http://dotnetslash.net/static/pyssh.zip Changes: * restructured as a python package * added setup.py for Distutils * added debian control directory for producing .debs There's no Distutils support for Debian, yet. debian/rules creates a package matching the version of python specified by the PYTHON variable. The version number is extracted from setup,py. The only time anything should need to be modified is if packages are needed for multiple versions of python. If so, they can be created by changing the PYTHON variable (i.e. PYTHON=python2.2) and re-run `debian/rules binary` to make a python2.2-pyssh .deb * added module fssa (Find Secure Shell Agent) to allow batch jobs to connect to a previously authenticated ssh-agent and run without intervention (posix only) Let me know if there's any problems. Also let me know when you've grabbed it so I can delete it. I don't want it to linger there unmaintained while the official version moves forward. Thanks! mwa -- Mark W. Alexander sl...@do... |
From: Mark W. A. <sl...@do...> - 2004-09-22 16:27:00
|
Anybody else here? On Tue, Sep 21, 2004 at 05:43:50PM -0400, Mark W. Alexander wrote: > Oh, what the heck, I like it, so: > > http://dotnetslash.net/static/pyssh.zip > > Changes: > * restructured as a python package > * added setup.py for Distutils > * added debian control directory for producing .debs > There's no Distutils support for Debian, yet. debian/rules > creates a package matching the version of python specified by > the PYTHON variable. The version number is extracted from setup,py. > The only time anything should need to be modified is if packages > are needed for multiple versions of python. If so, they can be > created by changing the PYTHON variable (i.e. PYTHON=python2.2) > and re-run `debian/rules binary` to make a python2.2-pyssh .deb > * added module fssa (Find Secure Shell Agent) to allow > batch jobs to connect to a previously authenticated > ssh-agent and run without intervention (posix only) I used a pyssh batch job last night to monitor a box that has been seemingly going to "sleep" on us. The first symptom is that ssh logins take forever, so pyssh was perfect for the job, and it worked well. Except.... When I came in this a.m., my workstation (where I was running the pyssh "probe" script) was dog slow. There were hundreds of zombie ssh processes that pyssh apparently was not reaping. I've added signal handling to the Ssh class to trap SIGCHLD. The signal handler retains any previously user specified signal handler, does an os.waitpid on the sshpid, then calls the original user specified handler. This eliminates the zombies. Note that I have not actually tested with a previously set signal handler. Although it should work, if it doesn't I suspect anyone who's doing signal handling can deal with any problems it exposes. The zip file at the above location has been updated. I also want to note that fssa.py is a direct port from Steve Allen's fsa.sh shell version discussed at http://www.ucolick.org/~sla/ssh/sshcron.html Direct link to script: http://www.ucolick.org/~sla/ssh/fsa It could be improved by using walk instead of getoutput(`find`), but this way was quick and It Works For Me(TM) ;) Thanks again on your work on this. It came in very handy. mwa -- Mark W. Alexander sl...@do... |
From: Rasjid W. <ra...@op...> - 2004-09-27 00:02:04
|
On Thursday 23 September 2004 02:26, Mark W. Alexander wrote: > Anybody else here? Hi Mark, Yes, there is at least me here. I am currently on holidays, and am about to enter the throws of moving to a new city and a new job. So my attention has been elsewhere, and probably will be so for a little while (the next month or two at least). Cheers, Rasjid. -- Rasjid Wilcox Canberra, Australia (UTC +10 hrs) http://www.openminddev.net |