On 02Feb2015 17:01, alan.ga...@btinternet.com <alan.ga...@btinternet.com> wrote:
On 02/02/15 13:46, maurice.ho...@thomsonreuters.com 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 <c...@zip.com.au>

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.
       - rhe...@csugrad.cs.vt.edu (Bolo Mk XXXIX)
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to