I don't do RTFM, but I do use other acronyms like REPL, and you got that one right. It is a Read Evaluate Print Loop. I prefer to use and enhanced REPL that include tab completion, but you can just type python and get into a very basic one. (CTRL-D will get you out.)<div>
<br></div><div>I'm just really big on teaching people how to get answers. I manage developers for a living. I have noticed that it does them no good to give them answers if they don't know how to find them themselves.<br>
<br><div class="gmail_quote">On Thu, Nov 17, 2011 at 10:56 PM, Chuck Payne <span dir="ltr"><<a href="mailto:terrorpup@gmail.com">terrorpup@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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><span class="HOEnZb"><font color="#888888">
<p>Chuck</p></font></span><div><div class="h5">
<p>---------- Forwarded message ----------<br>
From: Richard Bronosky <<a href="mailto:Richard@bronosky.com" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">averagesecurityguy.info</a><br>
><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">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" target="_blank">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" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">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" target="_blank">http://mail.ale.org/mailman/listinfo</a><br><br></p>
</div></div><p>-- <br></p><div class="im">
<a href="tel:%28678%29%20636-9678" value="+16786369678" target="_blank">(678) 636-9678</a><br>
-----------------------------------------<br>
Discover it! Enjoy it! Share it! openSUSE Linux.<br>
-----------------------------------------<br>
openSUSE -- <a href="http://en.opensuse.org/User:Terrorpup" target="_blank">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</div><p></p><div class="HOEnZb"><div class="h5">
<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" target="_blank">www.susestudio.com</a>.<br>
</p>
</div></div><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" target="_blank">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" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>.!# RichardBronosky #!.<br>
</div>