<p>Richard, <br></p>
<p>Sorry, I not the quick on terms. I am assuming RERL meas Read–eval–print_loop. What you are stating is good, but the problem is, I am stuck that is why I am asking for help. I am so gun shy about asking for help, because the standard response is usually RTFM. I gave up learning Perl because I could never get help. <br>
</p>
<p>I will try what you have recommend. </p>
<p>Chuck</p>
<p>---------- Forwarded message ----------<br>
From: Richard Bronosky <<a href="mailto:Richard@bronosky.com">Richard@bronosky.com</a>><br>
Date: Thu, Nov 17, 2011 at 10:29 PM<br>
Subject: Re: [ale] Need help with a Python Script<br>
To: Atlanta Linux Enthusiasts <<a href="mailto:ale@ale.org">ale@ale.org</a>><br></p>
<p>Chuck,<br>
You really need to experiment at the REPL. That is the main reason for<br>
choosing a scripting language like python. I suggest installing<br>
ipython (or bpython) so that you get tab completion. The you would do<br>
this:<br>
$ ipython<br>
Python 2.4.3 (#1, Nov 11 2010, 13:30:19)<br>
Type "copyright", "credits" or "license" for more information.</p>
<p>IPython 0.8.4 -- An enhanced Interactive Python.<br>
? -> Introduction and overview of IPython's features.<br>
%quickref -> Quick reference.<br>
help -> Python's own help system.<br>
object? -> Details about 'object'. ?object also works, ?? prints more.</p>
<p>In [1]: import os</p>
<p>In [2]: os.get<br>
os.getcwd os.getegid os.geteuid os.getgroups<br>
os.getlogin os.getpgrp os.getppid os.getuid<br>
os.getcwdu os.getenv os.getgid os.getloadavg os.getpgid<br>
os.getpid os.getsid</p>
<p>In [2]: os.gete<br>
os.getegid os.getenv os.geteuid</p>
<p>In [2]: os.getenv('HOSTNAME')<br>
Out[2]: '<a href="http://vm1.example.com">vm1.example.com</a>'<br></p>
<p>However, os.getenv can only get was is available as environment<br>
variables. You can check those at the terminal with the env command.</p>
<p>On Thu, Nov 17, 2011 at 10:23 PM, Stephen Haywood<br>
<<a href="mailto:stephen@averagesecurityguy.info">stephen@averagesecurityguy.info</a>> wrote:<br>
> What version of Python are you using?<br>
><br>
><br>
> --<br>
> Stephen Haywood<br>
> Information Security Consultant<br>
> CISSP, GPEN, OSCP<br>
> T: @averagesecguy<br>
> W: <a href="http://averagesecurityguy.info">averagesecurityguy.info</a><br>
><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br>
><br>
><br><br></p>
<p>--<br>
.!# RichardBronosky #!.<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br><br></p>
<p>-- <br>
(678) 636-9678<br>
-----------------------------------------<br>
Discover it! Enjoy it! Share it! openSUSE Linux.<br>
-----------------------------------------<br>
openSUSE -- <a href="http://en.opensuse.org/User:Terrorpup">en.opensuse.org/User:Terrorpup</a><br>
openSUSE Ambassador/openSUSE Member<br>
skype,twiiter,identica,friendfeed -- terrorpup<br>
freenode(irc) --terrorpup/lupinstein<br>
Register Linux Userid: 155363</p>
<p>Have you tried SUSE Studio? Need to create a Live CD, an app you want to package and distribute , or create your own linux distro. Give SUSE Studio a try. <a href="http://www.susestudio.com">www.susestudio.com</a>.<br>
</p>