<div>Thanks for all the input guys. It gives me something to go on. I appreciate it!</div>
<div> </div>
<div>Dan Hull<br><br> </div>
<div><span class="gmail_quote">On 7/17/06, <b class="gmail_sendername"><a href="mailto:kc-request@pm.org">kc-request@pm.org</a></b> <<a href="mailto:kc-request@pm.org">kc-request@pm.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send kc mailing list submissions to<br> <a href="mailto:kc@pm.org">kc@pm.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit
<br> <a href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc</a><br>or, via email, send a message with subject or body 'help' to<br> <a href="mailto:kc-request@pm.org">kc-request@pm.org
</a><br><br>You can reach the person managing the list at<br> <a href="mailto:kc-owner@pm.org">kc-owner@pm.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of kc digest..."
<br><br><br>Today's Topics:<br><br> 1. Re: kc Digest, Vol 33, Issue 11 (Dan Hull)<br> 2. Re: Question (Jay Hannah)<br> 3. Re: Interactive Login in Perl (Scott Kahler)<br> 4. Re: Interactive Login in Perl (Garrett Goebel)
<br> 5. Re: Interactive Login in Perl (Eric Wilhelm)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sun, 16 Jul 2006 22:33:16 -0500<br>From: "Dan Hull" <
<a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a>><br>Subject: Re: [Kc] kc Digest, Vol 33, Issue 11<br>To: <a href="mailto:kc@pm.org">kc@pm.org</a><br>Message-ID:<br> <<a href="mailto:ff5d1c260607162033j1d7f7be2r4915222e4ccfad8@mail.gmail.com">
ff5d1c260607162033j1d7f7be2r4915222e4ccfad8@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>What this scripts purpose is to sftp backup files and log files from one<br>server to another or to a disk array that is not
<br>part of the originating servers file system. It is to run from cron at<br>periodic times yet to be determined.<br><br>Any help is greatly appreciated!<br><br><br>Dan<br><br><br>On 7/16/06, <a href="mailto:kc-request@pm.org">
kc-request@pm.org</a> <<a href="mailto:kc-request@pm.org">kc-request@pm.org</a>> wrote:<br>><br>> Send kc mailing list submissions to<br>> <a href="mailto:kc@pm.org">kc@pm.org</a><br>><br>> To subscribe or unsubscribe via the World Wide Web, visit
<br>> <a href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc</a><br>> or, via email, send a message with subject or body 'help' to<br>> <a href="mailto:kc-request@pm.org">
kc-request@pm.org</a><br>><br>> You can reach the person managing the list at<br>> <a href="mailto:kc-owner@pm.org">kc-owner@pm.org</a><br>><br>> When replying, please edit your Subject line so it is more specific
<br>> than "Re: Contents of kc digest..."<br>><br>><br>> Today's Topics:<br>><br>> 1. Interactive Login in Perl (Dan Hull)<br>> 2. Re: Interactive Login in Perl (Teal)<br>> 3. Re: Interactive Login in Perl (Eric)
<br>> 4. Lightning talks at OSCON 2006: Announcement for distribution<br>> (Garrett Goebel)<br>><br>><br>> ----------------------------------------------------------------------<br>><br>> Message: 1
<br>> Date: Sat, 15 Jul 2006 22:56:06 -0500<br>> From: "Dan Hull" <<a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a>><br>> Subject: [Kc] Interactive Login in Perl<br>> To: <a href="mailto:kc@pm.org">
kc@pm.org</a><br>> Message-ID:<br>> <<a href="mailto:ff5d1c260607152056x6c7f9aedmf9750e4391837ec@mail.gmail.com">ff5d1c260607152056x6c7f9aedmf9750e4391837ec@mail.gmail.com</a>><br>> Content-Type: text/plain; charset="iso-8859-1"
<br>><br>> I am trying to write some perl scripts which will be run from Cron which<br>> require interactive ssh or regular unix login. Can someone point me in<br>> the<br>> right direction to accomplish this.
<br>><br>> Thanks,<br>><br>> --<br>> Dan Hull<br>> eFax - 816.222.0803<br>> <a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a><br>><br>> Quality of life is a choice. It is<br>> available to everyone in any circumstance, whether good or bad.
<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL:<br>> <a href="http://mail.pm.org/pipermail/kc/attachments/20060715/43193c09/attachment.htm">http://mail.pm.org/pipermail/kc/attachments/20060715/43193c09/attachment.htm
</a><br>><br>> ------------------------------<br>><br>> Message: 2<br>> Date: Sun, 16 Jul 2006 00:30:58 -0500<br>> From: Teal <<a href="mailto:ironicface@earthlink.net">ironicface@earthlink.net</a>>
<br>> Subject: Re: [Kc] Interactive Login in Perl<br>> To: <a href="mailto:kc@pm.org">kc@pm.org</a><br>> Message-ID: <<a href="mailto:44B9CF12.50302@earthlink.net">44B9CF12.50302@earthlink.net</a>><br>> Content-Type: text/plain; charset=us-ascii; format=flowed
<br>><br>> Dan Hull wrote:<br>><br>> > I am trying to write some perl scripts which will be run from Cron which<br>> > require interactive ssh or regular unix login. Can someone point me in<br>> > the right direction to accomplish this.
<br>> ><br>> > Thanks,<br>> ><br>> > --<br>> > Dan Hull<br>> > eFax - 816.222.0803<br>> > <a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a> <mailto:<a href="mailto:dnrhull@gmail.com">
dnrhull@gmail.com</a>><br>> ><br>> > Quality of life is a choice. It is<br>> > available to everyone in any circumstance, whether good or bad.<br>> ><br>><br>><br>> Are you saying you want the script to require a shell to get the initial
<br>> settings before being handed to cron, or that it runs from cron and at<br>> that time opens a shell, and some user is then prompted to do something?<br>><br>> Teal<br>> --<br>> Five minutes of Silence,
<br>> Meditate. Breathe. Be Alive.<br>><br>><br>><br>> ------------------------------<br>><br>> Message: 3<br>> Date: Sun, 16 Jul 2006 08:14:29 -0500<br>> From: Eric <<a href="mailto:eric@alliances.org">
eric@alliances.org</a>><br>> Subject: Re: [Kc] Interactive Login in Perl<br>> To: Dan Hull <<a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a>><br>> Cc: <a href="mailto:kc@pm.org">kc@pm.org</a><br>
> Message-ID: <<a href="mailto:44BA3BB5.6040100@alliances.org">44BA3BB5.6040100@alliances.org</a>><br>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>><br>> You'll want to look at Expect - either the TCL extension or the Expect
<br>> module for Perl.<br>><br>> <a href="http://search.cpan.org/~rgiersig/Expect-1.18/Expect.pod">http://search.cpan.org/~rgiersig/Expect-1.18/Expect.pod</a><br>><br>> <a href="http://expect.nist.gov/">http://expect.nist.gov/
</a><br>><br>> Eric<br>><br>> Dan Hull wrote:<br>> > I am trying to write some perl scripts which will be run from Cron<br>> > which require interactive ssh or regular unix login. Can someone<br>> > point me in the right direction to accomplish this.
<br>> ><br>> > Thanks,<br>> ><br>> > --<br>> > Dan Hull<br>> > eFax - 816.222.0803<br>> > <a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a> <mailto:<a href="mailto:dnrhull@gmail.com">
dnrhull@gmail.com</a>><br>> ><br>> > Quality of life is a choice. It is<br>> > available to everyone in any circumstance, whether good or bad.<br>> > ------------------------------------------------------------------------
<br>> ><br>> > _______________________________________________<br>> > kc mailing list<br>> > <a href="mailto:kc@pm.org">kc@pm.org</a><br>> > <a href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc
</a><br>><br>><br>><br>> ------------------------------<br>><br>> Message: 4<br>> Date: Sun, 16 Jul 2006 12:26:28 -0500<br>> From: Garrett Goebel <<a href="mailto:ggoebel@goebel.ws">ggoebel@goebel.ws
</a>><br>> Subject: [Kc] Lightning talks at OSCON 2006: Announcement for<br>> distribution<br>> To: <a href="mailto:kc@pm.org">kc@pm.org</a><br>> Message-ID: <<a href="mailto:C4E39142-FA93-402A-B003-C458C86E767E@goebel.ws">
C4E39142-FA93-402A-B003-C458C86E767E@goebel.ws</a>><br>> Content-Type: text/plain; charset=US-ASCII; format=flowed<br>><br>> Begin forwarded message:<br>><br>> > From: Mark Jason Dominus <<a href="mailto:mjd@plover.com">
mjd@plover.com</a>><br>> ><br>> > ----------------------------------------------------------------<br>> > Subject: OSCON 2006 Lightning talks deadline extended<br>> ><br>> > There is still time to propose a lightning talk for OSCON 2006. The
<br>> > deadline has been extended through Monday, 25 July.<br>> ><br>> > Lightning Talks at the 2006 O'Reilly Open Source Convention<br>> ><br>> > Lightning talks are brief (5-minute) talks that focus on a single
<br>> > example, idea, project, or technique. Lightning talks do not attempt<br>> > to cover all aspects of their subject matter, but rather to present<br>> > one facet of the idea clearly and succinctly.
<br>> ><br>> > To submit a proposal for a lightning talk, please send your proposed<br>> > title and an abstract of up to four sentences to:<br>> ><br>> > <a href="mailto:osc-lt-2006-submit@plover.com">
osc-lt-2006-submit@plover.com</a><br>> ><br>> > For more complete information, visit:<br>> ><br>> > <a href="http://perl.plover.com/lt/osc2006/">http://perl.plover.com/lt/osc2006/</a><br>> >
<br>> > Thanks.<br>><br>><br>><br>> ------------------------------<br>><br>> _______________________________________________<br>> kc mailing list<br>> <a href="mailto:kc@pm.org">kc@pm.org</a>
<br>> <a href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc</a><br>><br>> End of kc Digest, Vol 33, Issue 11<br>> **********************************<br>><br><br><br><br>--<br>
Dan Hull<br>eFax - 816.222.0803<br><a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a><br><br>Quality of life is a choice. It is<br>available to everyone in any circumstance, whether good or bad.<br>-------------- next part --------------
<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mail.pm.org/pipermail/kc/attachments/20060716/8e2cb86e/attachment-0001.html">http://mail.pm.org/pipermail/kc/attachments/20060716/8e2cb86e/attachment-0001.html
</a><br><br>------------------------------<br><br>Message: 2<br>Date: Sun, 16 Jul 2006 22:55:15 -0500<br>From: Jay Hannah <<a href="mailto:jay@jays.net">jay@jays.net</a>><br>Subject: Re: [Kc] Question<br>To: <a href="mailto:kc@pm.org">
kc@pm.org</a>, <a href="mailto:omaha-pm@pm.org">omaha-pm@pm.org</a><br>Message-ID: <<a href="mailto:44BB0A23.1070309@jays.net">44BB0A23.1070309@jays.net</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
<br><br>[Original thread starts here <a href="http://mail.pm.org/pipermail/kc/2006-July/000501.html">http://mail.pm.org/pipermail/kc/2006-July/000501.html</a>]<br><br>Stephen Clouse wrote:<br>>> Others will tell you that Perl is a write-only language.
I.e., what one<br>>> programmer writes, no one else will be able to decipher. And extended<br>>> form of this is the complaint by some that Perl isn't appropriate for<br>>> large projects involving many developers. This is a fall out of TIMTOWTDI.
<br>><br>> Such accusations are vile and odious lies of the bourgeoisie. Be not<br>> swayed by the Party line.<br>><br>> I have personally managed a project involving 6 developers and 750,000<br>> lines of Perl code. A quality OO design and instillment of best
<br>> practices with Perl will get you as far as (or even farther than) any<br>> bondage-and-discipline language. Mind you, there are some things to<br>> like about B&D in C++, but RAD in Perl is fine also.<br>
<br>What's RAD? (Rapid Application Development?)<br><br>750,000 lines? Wow. We "only" have 42,000 lines. As far as I know that makes us the biggest Perl shop in Omaha. ~3 programmers are mucking with the code at any one time. We seem to have the same level of cooperative coder angst in Perl,
<a href="http://VB.NET">VB.NET</a>, and Informix 4GL, so I haven't seen Perl as substantively different from any other language for scalability. Good documentation is always key.<br><br>I keep thinking autodiscovery in Visual Studio (and Eclipse?) should be a huge time saver, but I always seem to struggle w/ the .NET framework anyway not knowing what the methods I just autodiscovered actually do. Seems just as easy to use the Perl debugger and perldoc.
<br><br>I also keep thinking I need to tackle some huge stuff in Java/.NET/Python/Ruby just for personal learning, but I never seem to get around to it. Don't know that I want to set myself up to compete w/ Indian and Chinese programmer markets anyway. :)
<br><br>j<br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Mon, 17 Jul 2006 08:33:41 -0500<br>From: Scott Kahler <<a href="mailto:scottk@uclick.com">scottk@uclick.com</a>><br>Subject: Re: [Kc] Interactive Login in Perl
<br>To: <a href="mailto:kc@pm.org">kc@pm.org</a><br>Message-ID: <1153143221.2506.2.camel@walkabout><br>Content-Type: text/plain; charset="us-ascii"<br><br>Maybe you are looking for Net::SSH ?<br><br><a href="http://search.cpan.org/~ivan/Net-SSH-0.08/SSH.pm">
http://search.cpan.org/~ivan/Net-SSH-0.08/SSH.pm</a><br><br><br><br><br>On Sat, 2006-07-15 at 22:56 -0500, Dan Hull wrote:<br><br>> I am trying to write some perl scripts which will be run from Cron<br>> which require interactive ssh or regular unix login. Can someone
<br>> point me in the right direction to accomplish this.<br>><br>> Thanks,<br>><br>> --<br>> Dan Hull<br>> eFax - 816.222.0803<br>> <a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a><br>>
<br>> Quality of life is a choice. It is<br>> available to everyone in any circumstance, whether good or bad.<br>><br>> _______________________________________________<br>> kc mailing list<br>> <a href="mailto:kc@pm.org">
kc@pm.org</a><br>> <a href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc</a><br><br><br>Scott Kahler<br>=-=-=-=-=-=-=-=-=-=-=-=-=<br>Unix Nerd<br><a href="http://www.uclick.com">http://www.uclick.com
</a><br>816-210-8884<br><a href="mailto:scottk@uclick.com">scottk@uclick.com</a><br>=-=-=-=-=-=-=-=-=-=-=-=-=<br><br>I don't have a big ego...<br>I'm way too cool for that !!!<br><br>-------------- next part --------------
<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mail.pm.org/pipermail/kc/attachments/20060717/1554aef5/attachment-0001.html">http://mail.pm.org/pipermail/kc/attachments/20060717/1554aef5/attachment-0001.html
</a><br><br>------------------------------<br><br>Message: 4<br>Date: Mon, 17 Jul 2006 11:20:08 -0500<br>From: Garrett Goebel <<a href="mailto:ggoebel@goebel.ws">ggoebel@goebel.ws</a>><br>Subject: Re: [Kc] Interactive Login in Perl
<br>To: Dan Hull <<a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com</a>><br>Cc: <a href="mailto:kc@pm.org">kc@pm.org</a><br>Message-ID: <<a href="mailto:BF63C0DF-C125-4D85-B823-ED8B9B3CDE5A@goebel.ws">BF63C0DF-C125-4D85-B823-ED8B9B3CDE5A@goebel.ws
</a>><br>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed<br><br>On Jul 15, 2006, at 10:56 PM, Dan Hull wrote:<br><br>> I am trying to write some perl scripts which will be run from Cron<br>> which require interactive ssh or regular unix login. Can someone
<br>> point me in the right direction to accomplish this.<br><br>require interactive ssh?<br><br>You mean setting up "login-less" public key authentication is not an<br>option? A google search on "openssh public key authentication" will
<br>turn up documentation like the following:<br> <a href="http://cfm.gs.washington.edu/security/ssh/client-pkauth/">http://cfm.gs.washington.edu/security/ssh/client-pkauth/</a><br><br>FYI: Net::SSH won't help with interactive logins. Using pre-
<br>configured RSA or DSA keys is a prerequisite. It's in the Net::SSH<br>docs in the FAQ:<br> <a href="http://search.cpan.org/dist/Net-SSH/">http://search.cpan.org/dist/Net-SSH/</a><br>SSH.pm#FREQUENTLY_ASKED_QUESTIONS
<br><br><br>regular unix login?<br><br>If by that you mean execute something locally using different<br>credentials... you might try:<br> <a href="http://search.cpan.org/dist/Sudo/lib/Sudo.pm">http://search.cpan.org/dist/Sudo/lib/Sudo.pm
</a><br><br>I've never used it. But it might do what you need.<br><br>cheers,<br><br>Garrett<br><br><br>------------------------------<br><br>Message: 5<br>Date: Mon, 17 Jul 2006 09:32:56 -0700<br>From: Eric Wilhelm <<a href="mailto:scratchcomputing@gmail.com">
scratchcomputing@gmail.com</a>><br>Subject: Re: [Kc] Interactive Login in Perl<br>To: <a href="mailto:kc@pm.org">kc@pm.org</a><br>Message-ID: <<a href="mailto:200607170932.56979.ewilhelm@cpan.org">200607170932.56979.ewilhelm@cpan.org
</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br># from Scott Kahler<br># on Monday 17 July 2006 06:33 am:<br><br>>Maybe you are looking for Net::SSH ?<br><br>=head1 FREQUENTLY ASKED QUESTIONS
<br><br>Q: How do you supply a password to connect with ssh within a perl<br>script using the Net::SSH module?<br><br>A: You don't. Use RSA or DSA keys. See the ssh-keygen(1) manpage.<br><br>The command-line client (and rsync and svn and ...) is the same way. If
<br>you need to create ssh connections in batch jobs, you *must* have a<br>password-less key.<br><br>If you need to be paranoid, setup ~/.ssh/authorized_keys on the target<br>host with an explicit set of allowed commands:
<br><br>(all one line)<br>no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,<br>command="/$some_path/commands_allowed",from="$host"<br>ssh-dss $public_key$user@$host<br><br>The command= parameter actually means "run only this command" (including
<br>parameters.) The commands_allowed script should then check<br>$ENV{SSH_ORIGINAL_COMMAND} and exec that if it decides to allow it.<br><br>--Eric<br>--<br>A counterintuitive sansevieria trifasciata was once literalized
<br>guiltily.<br>--Product of Artificial Intelligence<br>---------------------------------------------------<br> <a href="http://scratchcomputing.com">http://scratchcomputing.com</a><br>---------------------------------------------------
<br><br><br>------------------------------<br><br>_______________________________________________<br>kc mailing list<br><a href="mailto:kc@pm.org">kc@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc
</a><br><br>End of kc Digest, Vol 33, Issue 12<br>**********************************<br></blockquote></div><br><br clear="all"><br>-- <br>Dan Hull<br>eFax - 816.222.0803<br><a href="mailto:dnrhull@gmail.com">dnrhull@gmail.com
</a><br><br>Quality of life is a choice. It is<br>available to everyone in any circumstance, whether good or bad.