#!/usr/bin/python from sys import * from os import * print "You are running the program ", argv[0] print "Command line arguments" i = 1 while i < len(argv): print i,argv[i] i += 1 print print "The environment" for key in environ: print key, environ[key] print print "the process parent was ", getppid() print "by the way, this process is ", getpid() print "which was run by ", getlogin() print "And the euid is ", geteuid() print "And the real uid is ", getuid() print "or all three " , getresgid()