From toddr at null.net Mon Jan 3 09:31:49 2011 From: toddr at null.net (Todd Rinaldo) Date: Mon, 3 Jan 2011 11:31:49 -0600 Subject: [pm-h] January meeting In-Reply-To: <20101229213616.3c2e93ac@sovvan> References: <20101229213616.3c2e93ac@sovvan> Message-ID: On Wed, Dec 29, 2010 at 9:36 PM, G. Wade Johnson wrote: > I haven't heard from anybody with a topic they would like to present > for the upcoming meeting on January 13. Does anyone have a presentation > they would like to make... > > or should we do another social meeting. > We discussed doing something related to Houston hackerspace. Does anyone remember? I think this is the link: http://www.txrxlabs.org/ I actually have a project on the back burner where I'm trying to re-verse engineer a zwave controller. Think X10 with meaningful 2 way communication over a mesh and relaying network. I've got the hardware if anyone's interested in a show and tell. https://github.com/toddr/p5-ZWave-Controller From flbaker at sbcglobal.net Mon Jan 3 10:37:59 2011 From: flbaker at sbcglobal.net (Fraser Baker) Date: Mon, 3 Jan 2011 12:37:59 -0600 Subject: [pm-h] January meeting In-Reply-To: References: <20101229213616.3c2e93ac@sovvan> Message-ID: Hey Todd: If I get time on my hands, I have always wanted to X10 my home. I'll be there. Fraser ----- Original Message ----- From: "Todd Rinaldo" To: "Houston.pm located in Houston, TX." Sent: Monday, January 03, 2011 11:31 AM Subject: Re: [pm-h] January meeting > On Wed, Dec 29, 2010 at 9:36 PM, G. Wade Johnson > wrote: >> I haven't heard from anybody with a topic they would like to present >> for the upcoming meeting on January 13. Does anyone have a presentation >> they would like to make... >> >> or should we do another social meeting. >> > > We discussed doing something related to Houston hackerspace. Does > anyone remember? > > I think this is the link: http://www.txrxlabs.org/ > > I actually have a project on the back burner where I'm trying to > re-verse engineer a zwave controller. Think X10 with meaningful 2 way > communication over a mesh and relaying network. > > I've got the hardware if anyone's interested in a show and tell. > https://github.com/toddr/p5-ZWave-Controller > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ From toddr at null.net Tue Jan 4 17:14:53 2011 From: toddr at null.net (Todd Rinaldo) Date: Tue, 4 Jan 2011 19:14:53 -0600 Subject: [pm-h] January meeting In-Reply-To: References: <20101229213616.3c2e93ac@sovvan> Message-ID: Friends don't let friends do X10. It's a crappy over valued, 1 way, sometimes works protocol. On Mon, Jan 3, 2011 at 12:37 PM, Fraser Baker wrote: > Hey Todd: > > If I get time on my hands, I have always wanted to X10 my home. I'll be > there. > > Fraser > > ----- Original Message ----- From: "Todd Rinaldo" > To: "Houston.pm located in Houston, TX." > Sent: Monday, January 03, 2011 11:31 AM > Subject: Re: [pm-h] January meeting > > >> On Wed, Dec 29, 2010 at 9:36 PM, G. Wade Johnson >> wrote: >>> >>> I haven't heard from anybody with a topic they would like to present >>> for the upcoming meeting on January 13. Does anyone have a presentation >>> they would like to make... >>> >>> or should we do another social meeting. >>> >> >> We discussed doing something related to Houston hackerspace. Does >> anyone remember? >> >> I think this is the link: http://www.txrxlabs.org/ >> >> I actually have a project on the back burner where I'm trying to >> re-verse engineer a zwave controller. Think X10 with meaningful 2 way >> communication over a mesh and relaying network. >> >> I've got the hardware if anyone's interested in a show and tell. >> https://github.com/toddr/p5-ZWave-Controller >> _______________________________________________ >> Houston mailing list >> Houston at pm.org >> http://mail.pm.org/mailman/listinfo/houston >> Website: http://houston.pm.org/ > > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ > -- Todd Rinaldo toddr at null.net From gwadej at anomaly.org Thu Jan 6 05:21:46 2011 From: gwadej at anomaly.org (G. Wade Johnson) Date: Thu, 6 Jan 2011 07:21:46 -0600 Subject: [pm-h] January meeting, part two. Message-ID: <20110106072146.5718a33d@sovvan> It's only a week until the next meeting. We haven't really had an avalanche of response to Todd's offer on the zwave controller project. Does someone have a better idea? Or should we do another social meeting and regroup for next month? G. Wade -- "The avalanche has already started. It is too late for the pebbles to vote." -- Ambassador Kosh, "Believers" From toddr at null.net Thu Jan 6 09:51:07 2011 From: toddr at null.net (Todd Rinaldo) Date: Thu, 6 Jan 2011 11:51:07 -0600 Subject: [pm-h] January meeting, part two. In-Reply-To: <20110106072146.5718a33d@sovvan> References: <20110106072146.5718a33d@sovvan> Message-ID: On Thu, Jan 6, 2011 at 7:21 AM, G. Wade Johnson wrote: > It's only a week until the next meeting. > > We haven't really had an avalanche of response to Todd's offer on the > zwave controller project. > > Does someone have a better idea? > > Or should we do another social meeting and regroup for next month? > > G. Wade > -- > "The avalanche has already started. It is too late for the pebbles to > vote." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -- Ambassador Kosh, "Believers" I vote Black Lab. Great quote by the way. one of my favorites! From erin at morderwerk.de Thu Jan 6 10:49:15 2011 From: erin at morderwerk.de (Erin Schoenhals) Date: Thu, 06 Jan 2011 12:49:15 -0600 Subject: [pm-h] January meeting, part two. In-Reply-To: References: <20110106072146.5718a33d@sovvan> Message-ID: <1294339760.13122.5.camel@deathscythe.local> Yes! I think you should demo anything you have about the ZWave controller project, though! ----- Original message ----- > On Thu, Jan 6, 2011 at 7:21 AM, G. Wade Johnson > wrote: > > It's only a week until the next meeting. > > > > We haven't really had an avalanche of response to Todd's offer on the > > zwave controller project. > > > > Does someone have a better idea? > > > > Or should we do another social meeting and regroup for next month? > > > > G. Wade > > -- > > "The avalanche has already started. It is too late for the pebbles to > > vote." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -- Ambassador Kosh, "Believers" > > > I vote Black Lab. Great quote by the way. one of my favorites! > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rasto at cm4msaa7.com Thu Jan 6 12:43:06 2011 From: rasto at cm4msaa7.com (lee latham) Date: Thu, 6 Jan 2011 14:43:06 -0600 Subject: [pm-h] January meeting, part two. In-Reply-To: <1294339760.13122.5.camel@deathscythe.local> References: <20110106072146.5718a33d@sovvan> <1294339760.13122.5.camel@deathscythe.local> Message-ID: The zwave demo would be cool, as would a social meeting. :-) On Thu, Jan 6, 2011 at 12:49 PM, Erin Schoenhals wrote: > Yes! I think you should demo anything you have about the ZWave controller > project, though! > > ----- Original message ----- >> On Thu, Jan 6, 2011 at 7:21 AM, G. Wade Johnson >> wrote: >> > It's only a week until the next meeting. >> > >> > We haven't really had an avalanche of response to Todd's offer on the >> > zwave controller project. >> > >> > Does someone have a better idea? >> > >> > Or should we do another social meeting and regroup for next month? >> > >> > G. Wade >> > -- >> > "The avalanche has already started. It is too late for the pebbles to >> > vote." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -- Ambassador Kosh, "Believers" >> >> >> I vote Black Lab. Great quote by the way. one of my favorites! >> _______________________________________________ >> Houston mailing list >> Houston at pm.org >> http://mail.pm.org/mailman/listinfo/houston >> Website: http://houston.pm.org/ > > > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ > From toddr at null.net Thu Jan 6 14:50:11 2011 From: toddr at null.net (Todd Rinaldo) Date: Thu, 6 Jan 2011 16:50:11 -0600 Subject: [pm-h] January meeting, part two. In-Reply-To: References: <20110106072146.5718a33d@sovvan> <1294339760.13122.5.camel@deathscythe.local> Message-ID: I'd happily demo over beer. I'm not confident there's enough content to do a meeting over it. This way the people who wanna hack can hack and the people who want to chat can chat. On Thu, Jan 6, 2011 at 2:43 PM, lee latham wrote: > The zwave demo would be cool, as would a social meeting. > > :-) > > On Thu, Jan 6, 2011 at 12:49 PM, Erin Schoenhals wrote: >> Yes! I think you should demo anything you have about the ZWave controller >> project, though! >> >> ----- Original message ----- >>> On Thu, Jan 6, 2011 at 7:21 AM, G. Wade Johnson >>> wrote: >>> > It's only a week until the next meeting. >>> > >>> > We haven't really had an avalanche of response to Todd's offer on the >>> > zwave controller project. >>> > >>> > Does someone have a better idea? >>> > >>> > Or should we do another social meeting and regroup for next month? >>> > >>> > G. Wade >>> > -- >>> > "The avalanche has already started. It is too late for the pebbles to >>> > vote." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -- Ambassador Kosh, "Believers" >>> >>> >>> I vote Black Lab. Great quote by the way. one of my favorites! From mikeflan at att.net Thu Jan 6 15:12:35 2011 From: mikeflan at att.net (Mike Flannigan) Date: Thu, 06 Jan 2011 17:12:35 -0600 Subject: [pm-h] January meeting, part two. In-Reply-To: <20110106072146.5718a33d@sovvan> References: <20110106072146.5718a33d@sovvan> Message-ID: <4D264C63.7090900@att.net> On 1/6/2011 7:21 AM, G. Wade Johnson wrote: > It's only a week until the next meeting. > > We haven't really had an avalanche of response to Todd's offer on the > zwave controller project. > > Does someone have a better idea? > > Or should we do another social meeting and regroup for next month? > > G. Wade It sounds like a great program presentation to me, but I can't make it to that meeting. I'm hoping for a job change in a few weeks that might allow me to attend some of these. Mike From rasto at cm4msaa7.com Thu Jan 6 16:28:16 2011 From: rasto at cm4msaa7.com (lee latham) Date: Thu, 6 Jan 2011 18:28:16 -0600 Subject: [pm-h] January meeting, part two. In-Reply-To: References: <20110106072146.5718a33d@sovvan> <1294339760.13122.5.camel@deathscythe.local> Message-ID: Sounds like fun! On Thu, Jan 6, 2011 at 4:50 PM, Todd Rinaldo wrote: > I'd happily demo over beer. I'm not confident there's enough content > to do a meeting over it. This way the people who wanna hack can hack > and the people who want to chat can chat. > > On Thu, Jan 6, 2011 at 2:43 PM, lee latham wrote: >> The zwave demo would be cool, as would a social meeting. >> >> :-) >> >> On Thu, Jan 6, 2011 at 12:49 PM, Erin Schoenhals wrote: >>> Yes! I think you should demo anything you have about the ZWave controller >>> project, though! >>> >>> ----- Original message ----- >>>> On Thu, Jan 6, 2011 at 7:21 AM, G. Wade Johnson >>>> wrote: >>>> > It's only a week until the next meeting. >>>> > >>>> > We haven't really had an avalanche of response to Todd's offer on the >>>> > zwave controller project. >>>> > >>>> > Does someone have a better idea? >>>> > >>>> > Or should we do another social meeting and regroup for next month? >>>> > >>>> > G. Wade >>>> > -- >>>> > "The avalanche has already started. It is too late for the pebbles to >>>> > vote." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -- Ambassador Kosh, "Believers" >>>> >>>> >>>> I vote Black Lab. Great quote by the way. one of my favorites! > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ From erin at morderwerk.de Thu Jan 6 23:38:57 2011 From: erin at morderwerk.de (Erin Schoenhals) Date: Fri, 07 Jan 2011 01:38:57 -0600 Subject: [pm-h] January meeting, part two. In-Reply-To: References: <20110106072146.5718a33d@sovvan> <1294339760.13122.5.camel@deathscythe.local> Message-ID: <1294385937.13167.5.camel@deathscythe.local> I'll bring some stuff, too, and somehow make it Perl-related, too! Gordon, I think you should do the same, assuming you're subscribed to this list and all that. ----- Original message ----- > Sounds like fun! > > On Thu, Jan 6, 2011 at 4:50 PM, Todd Rinaldo wrote: > > I'd happily demo over beer. I'm not confident there's enough content > > to do a meeting over it. This way the people who wanna hack can hack > > and the people who want to chat can chat. > > > > On Thu, Jan 6, 2011 at 2:43 PM, lee latham wrote: > > > The zwave demo would be cool, as would a social meeting. > > > > > > :-) > > > > > > On Thu, Jan 6, 2011 at 12:49 PM, Erin Schoenhals > > > wrote: > > > > Yes! I think you should demo anything you have about the ZWave > > > > controller project, though! > > > > > > > > ----- Original message ----- > > > > > On Thu, Jan 6, 2011 at 7:21 AM, G. Wade Johnson > > > > > wrote: > > > > > > It's only a week until the next meeting. > > > > > > > > > > > > We haven't really had an avalanche of response to Todd's offer > > > > > > on the zwave controller project. > > > > > > > > > > > > Does someone have a better idea? > > > > > > > > > > > > Or should we do another social meeting and regroup for next > > > > > > month? > > > > > > > > > > > > G. Wade > > > > > > -- > > > > > > "The avalanche has already started. It is too late for the > > > > > > pebbles to vote." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -- Ambassador > > > > > > Kosh, "Believers" > > > > > > > > > > > > > > > I vote Black Lab. Great quote by the way. one of my favorites! > > _______________________________________________ > > Houston mailing list > > Houston at pm.org > > http://mail.pm.org/mailman/listinfo/houston > > Website: http://houston.pm.org/ > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwadej at anomaly.org Mon Jan 10 16:16:05 2011 From: gwadej at anomaly.org (G. Wade Johnson) Date: Mon, 10 Jan 2011 18:16:05 -0600 Subject: [pm-h] January Meeting Message-ID: <20110110181605.64513604@sovvan> Based on the fact that Todd has recommended that his technical presentation would be better over beer, I guess we will have a social meeting this time. We'll meet at the Black Labrador again at 7pm on Thursday (1/13). Ask for "Wade" or "the Perl Group" to find us. Info and directions are available at http://www.blacklabradorpub.com/lab_about_us.html See you there. G. Wade -- DON'T PANIC! I'm a trained professional, and far more qualified to panic in this situation than you are. From szabgab at gmail.com Wed Jan 19 11:11:48 2011 From: szabgab at gmail.com (Gabor Szabo) Date: Wed, 19 Jan 2011 21:11:48 +0200 Subject: [pm-h] Texas Linux Fest: The 2011 Call for Papers is Open Message-ID: hi, Thanks for approving my registration to the mailing list! According to my maps Houston isn't far from Austin so I hope you'll be interested in this. See the CFP for the Texas Linux Fest (in Austin) below. I have asked for a Perl community booth there and already got approved. I setup a page on the TPF wiki to coordinate the Perl presence there: https://www.socialtext.net/perl5/index.cgi?events_2011_texas_linux_fest Just to compare, SCALE in Los Angeles will have 2 Perl related talks - one of them by chromatic, sponsored by the Perl Ecosystem Group - and they will also have an LA.pm / Perl booth. It would be nice to have a few Perl related talk here too. Oh, Patrick Michaud already indicated that he is planning to submit a Perl 6 related talk. It should be fun. regards ?Gabor Szabo ? ? ? ? ? ? ? ? ? ? http://szabgab.com/ ?Perl Ecosystem Group ? ? ? http://perl-ecosystem.org/ ---------- Forwarded message ---------- From: Nathan Willis Date: Tue, Jan 18, 2011 at 3:00 AM Subject: The 2011 Call for Papers is Open To: texaslinuxfest at googlegroups.com Texas Linux Fest 2011 Call For Papers open! ******************************************************* We are proud to officially open the call for papers for Texas Linux Fest 2011, scheduled for April 2 at the Hilton Austin hotel in downtown Austin, Texas. Texas Linux Fest 2011 is the second annual Linux and open source software event for Texas and the surrounding region.? We are assembling a one day program for the business and home Linux user, and for the experienced developer and newcomer alike. -- Join in: submit your talk -- In that spirit, we invite you to share your work with the rest of the community by submitting your talk for this year's schedule. Topics of interest include (but are not limited to): ---------------------------------- ?- The Linux Kernel ?- Open Source Programming Languages ?- Databases ?- Desktop Linux Distributions ?- Embedded Linux ?- Linux in the Server Environment ?- Network Services and Cloud Computing ?- Free Software Licensing ?- Community Management ?- Open Source Multimedia ?- Green Computing ?- Open Source in Government ?- Linux For Beginners ?- Open Source For Small Businesses ?- Open Source Marketing and Evangelism ?- Open Source in Education ---------------------------------- Slots will be available for two lengths of presentations: 45 minutes in length and shorter, 25 minute sessions.? Basic technical setup will include an overhead projector and a Linux laptop with PDF and OpenOffice.org presentation software.? Special setup needs will be accommodated, simply notify us when sending your proposal. To submit your talk for consideration, visit http://www.texaslinuxfest.org/callforpapers/ .? For questions or help with the talk submission process, please contact the team at info at texaslinuxfest.org -- Important Dates -- ?- January 17: Call For Papers opens ?- February 14, 11:59 p.m.: Deadline for proposals ?- February 25: Last date for notification of submission acceptance From rasto at cm4msaa7.com Tue Jan 25 08:17:31 2011 From: rasto at cm4msaa7.com (lee latham) Date: Tue, 25 Jan 2011 10:17:31 -0600 Subject: [pm-h] Automating sudo/bash terminal Message-ID: Hi Y'all, I'm having a surprisingly difficult time automating a terminal session, so I thought I'd see if you guys have any thoughts. I'm in a situation where I need to issue commands in a sudo environment. So I've got to authenticate the sudo, issue commands after that (this is the part I'm having trouble with), read the output of the commands and issue new commands based on that output. So basically I need to do like 'sudo bash' and then issue commands in that bash session. I've tried various tricks to no avail, and I'd really rather avoid using Expect, as I expect the process to get a little lengthy at times. The main problem, for example, is that if I simply execute `sudo dowhatever` via backticks or system, I still need to authenticate, and even if I do that then that session is immediately closed. A similar situation is when using Net::OpenSSH, and I need to, say, become a different user on the remote machine and issue commands as that user. I suspect my unix knowledge is inadequate to even properly understanding the problem :-) Any thoughts? Any input would be greatly appreciated! Best, Lee From estrabd at gmail.com Tue Jan 25 08:18:13 2011 From: estrabd at gmail.com (B. Estrade) Date: Tue, 25 Jan 2011 10:18:13 -0600 Subject: [pm-h] Automating sudo/bash terminal In-Reply-To: References: Message-ID: <20110125161813.GL8488@x2045.x.rootbsd.net> On Tue, Jan 25, 2011 at 10:17:31AM -0600, lee latham wrote: > Hi Y'all, > > I'm having a surprisingly difficult time automating a terminal > session, so I thought I'd see if you guys have any thoughts. > > I'm in a situation where I need to issue commands in a sudo > environment. So I've got to authenticate the sudo, issue commands > after that (this is the part I'm having trouble with), read the output > of the commands and issue new commands based on that output. So > basically I need to do like 'sudo bash' and then issue commands in > that bash session. > > I've tried various tricks to no avail, and I'd really rather avoid > using Expect, as I expect the process to get a little lengthy at > times. > > The main problem, for example, is that if I simply execute `sudo > dowhatever` via backticks or system, I still need to authenticate, and > even if I do that then that session is immediately closed. > > A similar situation is when using Net::OpenSSH, and I need to, say, > become a different user on the remote machine and issue commands as > that user. > > I suspect my unix knowledge is inadequate to even properly > understanding the problem :-) > > Any thoughts? Any input would be greatly appreciated! Your biggest issue is going to be maintaining security. Sounds like you either have to store the password somewhere or allow certain commands to be executed via sudo unencombered via password. Do you have root on this box? And I hate to give you the typical "Perlish" response, but what exactly are you trying to do? I would imagine that if you've painted yourself into a corner where you have to issue sudo in batch process, there are like better solutions to what you're needing to accomplish. Cheers, Brett > > Best, > Lee > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ -- B. Estrade From rasto at cm4msaa7.com Tue Jan 25 08:38:49 2011 From: rasto at cm4msaa7.com (lee latham) Date: Tue, 25 Jan 2011 10:38:49 -0600 Subject: [pm-h] Automating sudo/bash terminal In-Reply-To: <20110125161813.GL8488@x2045.x.rootbsd.net> References: <20110125161813.GL8488@x2045.x.rootbsd.net> Message-ID: Thanks for the response, Brett! No, I do not have root access or the ability to change the infrastructure I'm working under. I figured I'd pass the sudo password as an argument to the script. But can it be done? On Tue, Jan 25, 2011 at 10:18 AM, B. Estrade wrote: > On Tue, Jan 25, 2011 at 10:17:31AM -0600, lee latham wrote: >> Hi Y'all, >> >> I'm having a surprisingly difficult time automating a terminal >> session, so I thought I'd see if you guys have any thoughts. >> >> I'm in a situation where I need to issue commands in a sudo >> environment. ?So I've got to authenticate the sudo, issue commands >> after that (this is the part I'm having trouble with), read the output >> of the commands and issue new commands based on that output. ?So >> basically I need to do like 'sudo bash' and then issue commands in >> that bash session. >> >> I've tried various tricks to no avail, and I'd really rather avoid >> using Expect, as I expect the process to get a little lengthy at >> times. >> >> The main problem, for example, is that if I simply execute `sudo >> dowhatever` via backticks or system, I still need to authenticate, and >> even if I do that then that session is immediately closed. >> >> A similar situation is when using Net::OpenSSH, and I need to, say, >> become a different user on the remote machine and issue commands as >> that user. >> >> I suspect my unix knowledge is inadequate to even properly >> understanding the problem :-) >> >> Any thoughts? ?Any input would be greatly appreciated! > > Your biggest issue is going to be maintaining security. Sounds like > you either have to store the password somewhere or allow certain > commands to be executed via sudo unencombered via password. > > Do you have root on this box? > > And I hate to give you the typical "Perlish" response, but what > exactly are you trying to do? I would imagine that if you've painted > yourself into a corner where you have to issue sudo in batch process, > there are like better solutions to what you're needing to accomplish. > > Cheers, > Brett > >> >> Best, >> Lee >> _______________________________________________ >> Houston mailing list >> Houston at pm.org >> http://mail.pm.org/mailman/listinfo/houston >> Website: http://houston.pm.org/ > > -- > B. Estrade > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ > From estrabd at gmail.com Tue Jan 25 08:52:36 2011 From: estrabd at gmail.com (B. Estrade) Date: Tue, 25 Jan 2011 10:52:36 -0600 Subject: [pm-h] Automating sudo/bash terminal In-Reply-To: References: <20110125161813.GL8488@x2045.x.rootbsd.net> Message-ID: <20110125165236.GN8488@x2045.x.rootbsd.net> On Tue, Jan 25, 2011 at 10:38:49AM -0600, lee latham wrote: > Thanks for the response, Brett! > > No, I do not have root access or the ability to change the > infrastructure I'm working under. > > I figured I'd pass the sudo password as an argument to the script. > > But can it be done? I wrote a test bash script that worked: #/bin/sh sudo -S ls< > On Tue, Jan 25, 2011 at 10:18 AM, B. Estrade wrote: > > On Tue, Jan 25, 2011 at 10:17:31AM -0600, lee latham wrote: > >> Hi Y'all, > >> > >> I'm having a surprisingly difficult time automating a terminal > >> session, so I thought I'd see if you guys have any thoughts. > >> > >> I'm in a situation where I need to issue commands in a sudo > >> environment. ?So I've got to authenticate the sudo, issue commands > >> after that (this is the part I'm having trouble with), read the output > >> of the commands and issue new commands based on that output. ?So > >> basically I need to do like 'sudo bash' and then issue commands in > >> that bash session. > >> > >> I've tried various tricks to no avail, and I'd really rather avoid > >> using Expect, as I expect the process to get a little lengthy at > >> times. > >> > >> The main problem, for example, is that if I simply execute `sudo > >> dowhatever` via backticks or system, I still need to authenticate, and > >> even if I do that then that session is immediately closed. > >> > >> A similar situation is when using Net::OpenSSH, and I need to, say, > >> become a different user on the remote machine and issue commands as > >> that user. > >> > >> I suspect my unix knowledge is inadequate to even properly > >> understanding the problem :-) > >> > >> Any thoughts? ?Any input would be greatly appreciated! > > > > Your biggest issue is going to be maintaining security. Sounds like > > you either have to store the password somewhere or allow certain > > commands to be executed via sudo unencombered via password. > > > > Do you have root on this box? > > > > And I hate to give you the typical "Perlish" response, but what > > exactly are you trying to do? I would imagine that if you've painted > > yourself into a corner where you have to issue sudo in batch process, > > there are like better solutions to what you're needing to accomplish. > > > > Cheers, > > Brett > > > >> > >> Best, > >> Lee > >> _______________________________________________ > >> Houston mailing list > >> Houston at pm.org > >> http://mail.pm.org/mailman/listinfo/houston > >> Website: http://houston.pm.org/ > > > > -- > > B. Estrade > > _______________________________________________ > > Houston mailing list > > Houston at pm.org > > http://mail.pm.org/mailman/listinfo/houston > > Website: http://houston.pm.org/ > > > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ -- B. Estrade From rasto at cm4msaa7.com Tue Jan 25 15:43:58 2011 From: rasto at cm4msaa7.com (lee latham) Date: Tue, 25 Jan 2011 17:43:58 -0600 Subject: [pm-h] Automating sudo/bash terminal In-Reply-To: <20110125165236.GN8488@x2045.x.rootbsd.net> References: <20110125161813.GL8488@x2045.x.rootbsd.net> <20110125165236.GN8488@x2045.x.rootbsd.net> Message-ID: That's awesome, Brett, thanks. I used that in combination with the last post on my perlmonks question to get the job done: http://perlmonks.org/?node_id=884031 It really is hideous, but it does work :-) On Tue, Jan 25, 2011 at 10:52 AM, B. Estrade wrote: > On Tue, Jan 25, 2011 at 10:38:49AM -0600, lee latham wrote: >> Thanks for the response, Brett! >> >> No, I do not have root access or the ability to change the >> infrastructure I'm working under. >> >> I figured I'd pass the sudo password as an argument to the script. >> >> But can it be done? > > I wrote a test bash script that worked: > > #/bin/sh > sudo -S ls< y0urP at ssword > END > ##-- end of script > > You may need to do a wrapper sudo script and have your actual work in > another script; I don't immediately know if passing a stream of > commands to sudo would necessarily be what you wanted to do: > > #/bin/sh > sudo -S ./realscript.sh< y0urP at ssword > END > ##-- end of script > > I suppose you could simply chmod to 700 or 600 and issue 'sh > ./yoursudoscript.sh' via ssh. Ultimately, the issue protecting your > password. > > Hope that helps.. > > Brett > >> >> On Tue, Jan 25, 2011 at 10:18 AM, B. Estrade wrote: >> > On Tue, Jan 25, 2011 at 10:17:31AM -0600, lee latham wrote: >> >> Hi Y'all, >> >> >> >> I'm having a surprisingly difficult time automating a terminal >> >> session, so I thought I'd see if you guys have any thoughts. >> >> >> >> I'm in a situation where I need to issue commands in a sudo >> >> environment. ?So I've got to authenticate the sudo, issue commands >> >> after that (this is the part I'm having trouble with), read the output >> >> of the commands and issue new commands based on that output. ?So >> >> basically I need to do like 'sudo bash' and then issue commands in >> >> that bash session. >> >> >> >> I've tried various tricks to no avail, and I'd really rather avoid >> >> using Expect, as I expect the process to get a little lengthy at >> >> times. >> >> >> >> The main problem, for example, is that if I simply execute `sudo >> >> dowhatever` via backticks or system, I still need to authenticate, and >> >> even if I do that then that session is immediately closed. >> >> >> >> A similar situation is when using Net::OpenSSH, and I need to, say, >> >> become a different user on the remote machine and issue commands as >> >> that user. >> >> >> >> I suspect my unix knowledge is inadequate to even properly >> >> understanding the problem :-) >> >> >> >> Any thoughts? ?Any input would be greatly appreciated! >> > >> > Your biggest issue is going to be maintaining security. Sounds like >> > you either have to store the password somewhere or allow certain >> > commands to be executed via sudo unencombered via password. >> > >> > Do you have root on this box? >> > >> > And I hate to give you the typical "Perlish" response, but what >> > exactly are you trying to do? I would imagine that if you've painted >> > yourself into a corner where you have to issue sudo in batch process, >> > there are like better solutions to what you're needing to accomplish. >> > >> > Cheers, >> > Brett >> > >> >> >> >> Best, >> >> Lee >> >> _______________________________________________ >> >> Houston mailing list >> >> Houston at pm.org >> >> http://mail.pm.org/mailman/listinfo/houston >> >> Website: http://houston.pm.org/ >> > >> > -- >> > B. Estrade >> > _______________________________________________ >> > Houston mailing list >> > Houston at pm.org >> > http://mail.pm.org/mailman/listinfo/houston >> > Website: http://houston.pm.org/ >> > >> _______________________________________________ >> Houston mailing list >> Houston at pm.org >> http://mail.pm.org/mailman/listinfo/houston >> Website: http://houston.pm.org/ > > -- > B. Estrade > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ > From estrabd at gmail.com Wed Jan 26 09:20:34 2011 From: estrabd at gmail.com (B. Estrade) Date: Wed, 26 Jan 2011 11:20:34 -0600 Subject: [pm-h] Automating sudo/bash terminal In-Reply-To: References: <20110125161813.GL8488@x2045.x.rootbsd.net> <20110125165236.GN8488@x2045.x.rootbsd.net> Message-ID: <20110126172034.GE8488@x2045.x.rootbsd.net> On Tue, Jan 25, 2011 at 05:43:58PM -0600, lee latham wrote: > That's awesome, Brett, thanks. I used that in combination with the > last post on my perlmonks question to get the job done: You are very welcome. > > http://perlmonks.org/?node_id=884031 > > It really is hideous, but it does work :-) I had not been on Perl Monks in ages! I updated my profile to reflect my current info. I am, "perlfan". I need to get back into th habit of visiting the site. :) Brett > > On Tue, Jan 25, 2011 at 10:52 AM, B. Estrade wrote: > > On Tue, Jan 25, 2011 at 10:38:49AM -0600, lee latham wrote: > >> Thanks for the response, Brett! > >> > >> No, I do not have root access or the ability to change the > >> infrastructure I'm working under. > >> > >> I figured I'd pass the sudo password as an argument to the script. > >> > >> But can it be done? > > > > I wrote a test bash script that worked: > > > > #/bin/sh > > sudo -S ls< > y0urP at ssword > > END > > ##-- end of script > > > > You may need to do a wrapper sudo script and have your actual work in > > another script; I don't immediately know if passing a stream of > > commands to sudo would necessarily be what you wanted to do: > > > > #/bin/sh > > sudo -S ./realscript.sh< > y0urP at ssword > > END > > ##-- end of script > > > > I suppose you could simply chmod to 700 or 600 and issue 'sh > > ./yoursudoscript.sh' via ssh. Ultimately, the issue protecting your > > password. > > > > Hope that helps.. > > > > Brett > > > >> > >> On Tue, Jan 25, 2011 at 10:18 AM, B. Estrade wrote: > >> > On Tue, Jan 25, 2011 at 10:17:31AM -0600, lee latham wrote: > >> >> Hi Y'all, > >> >> > >> >> I'm having a surprisingly difficult time automating a terminal > >> >> session, so I thought I'd see if you guys have any thoughts. > >> >> > >> >> I'm in a situation where I need to issue commands in a sudo > >> >> environment. ?So I've got to authenticate the sudo, issue commands > >> >> after that (this is the part I'm having trouble with), read the output > >> >> of the commands and issue new commands based on that output. ?So > >> >> basically I need to do like 'sudo bash' and then issue commands in > >> >> that bash session. > >> >> > >> >> I've tried various tricks to no avail, and I'd really rather avoid > >> >> using Expect, as I expect the process to get a little lengthy at > >> >> times. > >> >> > >> >> The main problem, for example, is that if I simply execute `sudo > >> >> dowhatever` via backticks or system, I still need to authenticate, and > >> >> even if I do that then that session is immediately closed. > >> >> > >> >> A similar situation is when using Net::OpenSSH, and I need to, say, > >> >> become a different user on the remote machine and issue commands as > >> >> that user. > >> >> > >> >> I suspect my unix knowledge is inadequate to even properly > >> >> understanding the problem :-) > >> >> > >> >> Any thoughts? ?Any input would be greatly appreciated! > >> > > >> > Your biggest issue is going to be maintaining security. Sounds like > >> > you either have to store the password somewhere or allow certain > >> > commands to be executed via sudo unencombered via password. > >> > > >> > Do you have root on this box? > >> > > >> > And I hate to give you the typical "Perlish" response, but what > >> > exactly are you trying to do? I would imagine that if you've painted > >> > yourself into a corner where you have to issue sudo in batch process, > >> > there are like better solutions to what you're needing to accomplish. > >> > > >> > Cheers, > >> > Brett > >> > > >> >> > >> >> Best, > >> >> Lee > >> >> _______________________________________________ > >> >> Houston mailing list > >> >> Houston at pm.org > >> >> http://mail.pm.org/mailman/listinfo/houston > >> >> Website: http://houston.pm.org/ > >> > > >> > -- > >> > B. Estrade > >> > _______________________________________________ > >> > Houston mailing list > >> > Houston at pm.org > >> > http://mail.pm.org/mailman/listinfo/houston > >> > Website: http://houston.pm.org/ > >> > > >> _______________________________________________ > >> Houston mailing list > >> Houston at pm.org > >> http://mail.pm.org/mailman/listinfo/houston > >> Website: http://houston.pm.org/ > > > > -- > > B. Estrade > > _______________________________________________ > > Houston mailing list > > Houston at pm.org > > http://mail.pm.org/mailman/listinfo/houston > > Website: http://houston.pm.org/ > > > _______________________________________________ > Houston mailing list > Houston at pm.org > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ -- B. Estrade