[Tutor] accessing another system's environment
Bill Allen
wallenpb at gmail.com
Sat Feb 26 07:26:17 CET 2011
On Fri, Feb 25, 2011 at 22:39, Steve Willoughby <steve at alchemy.com> 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
> remote host to run administrative tools on your windows systems.
>
>
> I am pretty basic and no-frills about programs, particularly ones that are
utilities for my own use. I am one of those admins that has full
administrator privs on the site workstations, so I am able to run anything I
like on or against these systems. I am envisioning a little command line
program that would work like this:
$python get_set_env.py -c some_computer_name
This would then just dump the system environment variables of
some_computer_name
$python get_set_env.py -c some_computer_name -e UG_SHOW_MOD True
On the system some_computer_name, this would edit the system environment
variable UG_SHOW_MOD to a value of True.
$python get_set_env.py -c some_computer_name -s UG_RUN_DIR C:\UGII
On the system some_computer_name, this would create the system environment
variable UG_RUN_DIR and set it to the value C:\UGII
--Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110226/d2c42b75/attachment.html>
More information about the Tutor
mailing list