Page 1 of 1

[DSHub]Basic Info 0.1

Posted: 02 Oct 2008, 17:29
by Toast

Code: Select all

#   Basic  Information 0.1
#   By Toast 08-10-02
#
#   Prints out Hostname and PID for process
#   Simple script (example for DSHub)
import sys, socket, os, sys
print "\n"
print "Basic Info:"
print "\n"
hostname = socket.gethostname()
print "Hostname:", hostname
print 'DSHub PID:', os.getpid()
print "\n"
A simple script that shows PID and Hostname
Basic Info:


Hostname: Hideaway
DSHub PID: 4380