Finding Full Path to Process EXE

2008-03-28 Thread misceverything
Hello,

I would like to write a script that would enumerate all running
processes and return the full path to the EXE of each running
process.  However, I can't seem to find any good info on how to do
this..any help is greatly appreciated.  Thanks.

T
-- 
http://mail.python.org/mailman/listinfo/python-list


Web Server

2008-07-20 Thread misceverything
As part of a Python app I wrote recently (for Windows), I would like
to give the option of an HTTP (HTTPS if possible, but not necessary)
front end, which would then call some existing python scripts.  My
question is - I know I can write a simple HTTP server in Python, but
if there's something simple already out there, I'd prefer to just use
that.  Basically all I need is a simple (i.e. preferably a single
executable) web server that can serve up my content - the only thing I
want the user to be able to configure is the port the web server
listens on (or ports if HTTPS also), and the location of the HTML
files... thanks in advance for your help.
--
http://mail.python.org/mailman/listinfo/python-list


Run as Service

2008-07-20 Thread misceverything
I have, in the past, used SRVANY to run a Python app as a Windows
service.  However, now I am interested in distributing my scripts and
want to make it as painless for the end user as possible (hands-off is
best :).  How can you go about running a Python app as a Windows
service without SRVANY?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Web Server

2008-07-20 Thread misceverything
Thanks, Fredrik - that definitely works.  Now to get a little greedy -
is there something along those lines that is a bit more secure (i.e.
allows HTTPS, possibly with authentication)?  Basically something that
you would feel more comfortable opening up to the Internet..

--
http://mail.python.org/mailman/listinfo/python-list


Re: Web Server

2008-07-23 Thread misceverything
Thanks, guys..I think I am going to go the route Fredrik suggested.
Thanks for all your help!

--
http://mail.python.org/mailman/listinfo/python-list


Re: Run as Service

2008-07-23 Thread misceverything
Jay/Larry - Thanks for the suggestions!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Finding Full Path to Process EXE

2008-03-29 Thread misceverything
On Mar 28, 4:53 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hello,
>
> > I would like to write a script that would enumerate all running
> > processes and return the full path to the EXE of each running
> > process.  However, I can't seem to find any good info on how to do
> > this..any help is greatly appreciated.  Thanks.
>
> I have this strange feeling of deja vu. Try this:
>
> http://timgolden.me.uk/python/wmi_cookbook.html#running_processes
>
> (You want the .ExecutablePath or .CommandLine attributes I imagine)
>
> TJG

Thanks, Tim!  I was able to find plenty out there about enumerating
processes, but the .ExecutablePath was exactly what I needed.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Finding Full Path to Process EXE

2008-03-30 Thread misceverything
That's not a problem - I'm only interested in Win2k+.  Thanks for the
caveat.

On a similar note, is there a way (preferably using WMI) to get the
full path to the executable that has a port open (the same thing that
fport does, just implemented in Python)?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Finding Full Path to Process EXE

2008-03-31 Thread misceverything
On Mar 31, 2:50 am, Tim Golden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > That's not a problem - I'm only interested in Win2k+.  Thanks for the
> > caveat.
>
> > On a similar note, is there a way (preferably using WMI) to get the
> > full path to the executable that has a port open (the same thing that
> > fport does, just implemented in Python)?
>
> It looks as though it might be possible with the (not
> installed by default) SNMP WMI provider. Haven't tried
> it myself, but there's some info here:
>
> http://groups.google.com/group/microsoft.public.win32.programmer.wmi/...
>
> and here:
>
> http://msdn2.microsoft.com/en-us/library/aa393621(VS.85).aspx
>
> Alternatively, look around for the GetExtendedTcpTable functionality
> and so on.
>
> Sorry, this isn't really my area -- all I've done here is to let
> my fingers do the walking.
>
> TJG

Sounds good - I'm going to check those links out now.  Thanks again
for all your help.
-- 
http://mail.python.org/mailman/listinfo/python-list


Recursively Backup Directories

2008-04-05 Thread misceverything
I am writing a script that will backup specified folders from one hard
drive to another (for example, backup source "C:\DATA", destination "D:
\Backup"), and was thinking of using shutil.  What I would like to do
is recursively backup the specified directories (which copytree will
do), but be able to specify exclusion directories (which copytree does
not appear to allow you to do).  My initial thoughts were I'll
probably have to use os.path.walk for the backup source directory, but
I'm not sure how to go from there.  Thanks in advance.
-- 
http://mail.python.org/mailman/listinfo/python-list