If you'd like, I'd be more than happy to show you some stuff in a Google+ Hangout or a shared GNU Screen session on an SSH server.<br><br><div class="gmail_quote">On Thu, Nov 17, 2011 at 11:36 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;">Thanks I have download the app, will try it. I am sys. admin by trade.<br>
I gotten good with bash, but now I am need to do better script, python<br>
seem the best path to take. A long with it, I am having to teach. So<br>
thank you for the help.<br>
<span class="HOEnZb"><font color="#888888"><br>
Chuck<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Nov 17, 2011 at 11:22 PM, Richard Bronosky <<a href="mailto:Richard@bronosky.com">Richard@bronosky.com</a>> wrote:<br>
> I don't do RTFM, but I do use other acronyms like REPL, and you got that one<br>
> right. It is a Read Evaluate Print Loop. I prefer to use and enhanced REPL<br>
> that include tab completion, but you can just type python and get into a<br>
> very basic one. (CTRL-D will get you out.)<br>
> I'm just really big on teaching people how to get answers. I manage<br>
> developers for a living. I have noticed that it does them no good to give<br>
> them answers if they don't know how to find them themselves.<br>
><br>
> On Thu, Nov 17, 2011 at 10:56 PM, Chuck Payne <<a href="mailto:terrorpup@gmail.com">terrorpup@gmail.com</a>> wrote:<br>
>><br>
>> Richard,<br>
>><br>
>> Sorry, I not the quick on terms. I am assuming RERL meas<br>
>> Read–eval–print_loop. What you are stating is good, but the problem is, I am<br>
>> stuck that is why I am asking for help. I am so gun shy about asking for<br>
>> help, because the standard response is usually RTFM. I gave up learning Perl<br>
>> because I could never get help.<br>
>><br>
>> I will try what you have recommend.<br>
>><br>
>> Chuck<br>
>><br>
>> ---------- 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>
>><br>
>> 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.<br>
>><br>
>> 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.<br>
>><br>
>> In [1]: import os<br>
>><br>
>> 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<br>
>><br>
>> In [2]: os.gete<br>
>> os.getegid os.getenv os.geteuid<br>
>><br>
>> In [2]: os.getenv('HOSTNAME')<br>
>> Out[2]: '<a href="http://vm1.example.com" target="_blank">vm1.example.com</a>'<br>
>><br>
>> However, os.getenv can only get was is available as environment<br>
>> variables. You can check those at the terminal with the env command.<br>
>><br>
>> 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>
>> > --<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">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>
>> --<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" 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>
>> <a href="tel:%28678%29%20636-9678" value="+16786369678">(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<br>
>><br>
>> Have you tried SUSE Studio? Need to create a Live CD, an app you want to<br>
>> package and distribute , or create your own linux distro. Give SUSE Studio a<br>
>> try. <a href="http://www.susestudio.com" target="_blank">www.susestudio.com</a>.<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" 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>
><br>
> --<br>
> .!# RichardBronosky #!.<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" 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>
<br>
<br>
--<br>
<a href="tel:%28678%29%20636-9678" value="+16786369678">(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<br>
<br>
Have you tried SUSE Studio? Need to create a Live CD, an app you want<br>
to package and distribute , or create your own linux distro. Give SUSE<br>
Studio a try. <a href="http://www.susestudio.com" target="_blank">www.susestudio.com</a>.<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" 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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>.!# RichardBronosky #!.<br>