On 02Feb2015 17:01, [email protected] <[email protected]> wrote:
On 02/02/15 13:46, [email protected] wrote:
Basically I have trouble with two things:
1) Get the server to take the hostname and use it to run a command against
it
os.uname() will return a tuple.
The second item is the hostname
That gets this machine's hostname. The OP wants to use an arbitrary machine's
hostname, since he's looking up an asset db. He needs to use the sys.argv
array. (We he's doing as it turns out, so not to worry.)
Cheers,
Cameron Simpson <[email protected]>
I must really get a thinner pencil. I can't manage this one a bit. It writes
all manner of things I don't intend.
- [email protected] (Bolo Mk XXXIX)
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor