Differences between revisions 1 and 2
Revision 1 as of 2005-12-28 00:36:50
Size: 194
Editor: rrcs-67-53-83-75
Comment:
Revision 2 as of 2005-12-28 00:40:47
Size: 309
Editor: rrcs-67-53-83-75
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:

= Download =
This program has been uploaded to the Wiki. You can download it as an attachment from this page.

Description

This is a simple ["Powerful Python One-Liners"]. It prints the systems's hostname to the screen.

Code

from socket import gethostname; print gethostname()

Download

This program has been uploaded to the Wiki. You can download it as an attachment from this page.

Powerful Python One-Liners/Hostname (last edited 2009-03-07 22:21:04 by adsl-75-30-178-145)

Unable to edit the page? See the FrontPage for instructions.