Re: [Tutor] accessing another system's environment

2011-02-26 Thread Bill Allen
Wow! What an overwhelming response to my inquiry. All the post have been very informative and have given me plenty to consider. I can see now this is a win32 api question, not really Python. There has been more than enough here to point to some resources for win32 api and I have found libra

Re: [Tutor] accessing another system's environment

2011-02-26 Thread Modulok
On 2/26/11, Modulok wrote: ... > The server then replies with any variables that the client needs to > set and their values. You could do this with a python script running > on a server sending ajax responses. (There's an ajax module in the > standard library.) ... Sorry, I meant a 'json' module,

Re: [Tutor] accessing another system's environment

2011-02-26 Thread Modulok
I'm coming into this thread late so I might be off the mark here, but it seems like you're going about it backwards: Instead of trying to reach in and modify a user's environment, which is highly variable and process dependent, why not just wrap the software they're running? Have a python script w

Re: [Tutor] accessing another system's environment

2011-02-26 Thread David
On 26 February 2011 22:42, Walter Prins wrote: > > On 26 February 2011 04:26, Bill Allen wrote: >> >> I administrate the workstations in our engineering environment and some of >> the major pieces of software we use are configured via the Windows system >> environment variables. Being able to re

Re: [Tutor] accessing another system's environment

2011-02-26 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Steve Willoughby wrote: On 26-Feb-11 01:19, ALAN GAULD wrote: Bill, That's the same thing we are talking about. The problem is those environment variables are highly variable so you can't talk about a machine's environment. Two users on the same machine (at the same t

Re: [Tutor] accessing another system's environment

2011-02-26 Thread Walter Prins
On 26 February 2011 04:26, Bill Allen wrote: > Yes, that's it exactly.:-) > > I administrate the workstations in our engineering environment and some of > the major pieces of software we use are configured via the Windows system > environment variables. Being able to reach out to a PC and ch

Re: [Tutor] accessing another system's environment

2011-02-26 Thread python
Bill, Coming into this thread late: If you are working with Windows workstations, try posting your question on the Python Windows API mailing list. http://mail.python.org/mailman/listinfo/python-win32 You may be able to use WMI (via Python) to accomplish what you're trying to do. Malcolm __

Re: [Tutor] accessing another system's environment

2011-02-26 Thread David
On 25 February 2011 14:30, Bill Allen wrote: > > I have times when it is useful for me to check the environment of a user > system on our lan remotely while trouble shooting and issue with them.  Now, > this is quite easy to do while I am using a windows system via the computer > management consol

Re: [Tutor] accessing another system's environment

2011-02-26 Thread Steve Willoughby
lt for an admin to do anything reliably based on environment variable settings. Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ <http://www.alan-g.me.uk> *From:* Bill Allen *To:* Alan Gauld *Cc:* tutor@python.org *Sent:* Saturday, 26 February

Re: [Tutor] accessing another system's environment

2011-02-26 Thread ALAN GAULD
ent: Saturday, 26 February, 2011 2:50:39 >Subject: Re: [Tutor] accessing another system's environment > >I apologize for not have been clear previously. What I am trying to access >are >the Windows system environment variables. The same ones that are listed out &

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Bill Allen
On Fri, Feb 25, 2011 at 22:39, Steve Willoughby wrote: > > One question you need to figure out is how interactive you want this to be, > or how automated. That will drive the implementation of what comes after. > As will the list of available options at your site for securely allowing a > remot

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Steve Willoughby
On 25-Feb-11 20:26, Bill Allen wrote: On Fri, Feb 25, 2011 at 21:33, Steve Willoughby mailto:st...@alchemy.com>> wrote: On 25-Feb-11 19:27, Steve Willoughby wrote: Or are you saying you want to, from a remote Unix system, reach out to a Windows system and see that Windows system'

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Bill Allen
On Fri, Feb 25, 2011 at 21:33, Steve Willoughby wrote: > On 25-Feb-11 19:27, Steve Willoughby wrote: > > > Or are you saying you want to, from a remote Unix system, reach out to a > Windows system and see that Windows system's system environment variables? Yes, that's it exactly.:-) I admi

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Steve Willoughby
On 25-Feb-11 19:27, Steve Willoughby wrote: Wait. Are you trying to figure out how, on a Unix system, to read Unix system environment variables as you're accustomed to doing on Windows? Or are you saying you want to, from a remote Unix system, reach out to a Windows system and see that Windo

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Steve Willoughby
On 25-Feb-11 18:50, Bill Allen wrote: I apologize for not have been clear previously. What I am trying to access are the Windows system environment variables. The same ones that are listed out if you type the set command at a command prompt in Windows. There isn't a "system" set of environm

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Bill Allen
I apologize for not have been clear previously. What I am trying to access are the Windows system environment variables. The same ones that are listed out if you type the set command at a command prompt in Windows. --Bill On Fri, Feb 25, 2011 at 03:11, Alan Gauld wrote: > > "Bill Allen

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Chris Fuller
My "etc" would be the loopback device and an iso image, optionally accompanied by wget and cdrecord (or whatever the kids are using these days). I was also reminded of this story: http://thedailywtf.com/Articles/ITAPPMONROBOT.aspx Cheers On Friday 25 February 2011, Corey Richardson wrote: > On

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Corey Richardson
On 02/25/2011 04:49 AM, Steven D'Aprano wrote: > Alan Gauld wrote: > >> Anything you can do locally you can do on the remote >> machine with a combination of ssh, rsh, rlogin, telnet etc. > > I'd like to remove a CD from the CD drive, and replace it with a > different disk. > > > Being difficu

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Steven D'Aprano
Alan Gauld wrote: Anything you can do locally you can do on the remote machine with a combination of ssh, rsh, rlogin, telnet etc. I'd like to remove a CD from the CD drive, and replace it with a different disk. Being difficult just for the sake of it-ly y'rs, -- Steven _

Re: [Tutor] accessing another system's environment

2011-02-25 Thread Alan Gauld
"Bill Allen" wrote I have times when it is useful for me to check the environment of a user system on our lan remotely while trouble shooting and issue with them. Now, this is quite easy to do while I am using a windows system via the computer management console. I think we are meaning d

Re: [Tutor] accessing another system's environment

2011-02-24 Thread Steve Willoughby
On 24-Feb-11 19:30, Bill Allen wrote: I have times when it is useful for me to check the environment of a user system on our lan remotely while trouble shooting and issue with them. Now, this is quite easy to do while I am using a windows system via the Are you sure you're talking about the sa

Re: [Tutor] accessing another system's environment

2011-02-24 Thread Bill Allen
I have times when it is useful for me to check the environment of a user system on our lan remotely while trouble shooting and issue with them. Now, this is quite easy to do while I am using a windows system via the computer management console. However, I am trying to do this via a linux worksta

Re: [Tutor] accessing another system's environment

2011-02-24 Thread Alan Gauld
"Bill Allen" wrote I know that I can use the following to get a listing of the environment of my own system. How can I do similar for another system on my network. This is for administrative purposes. Environments are user and process specific so you would need to access the remote machin