[Kc] kc Digest, Vol 33, Issue 12

Dan Hull dnrhull at gmail.com
Mon Jul 17 21:08:01 PDT 2006


Thanks for all the input guys.  It gives me something to go on.  I
appreciate it!

Dan Hull


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



-- 
Dan Hull
eFax - 816.222.0803
dnrhull at gmail.com

Quality of life is a choice. It is
available to everyone in any circumstance, whether good or bad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/kc/attachments/20060717/a963c95c/attachment-0003.html 


More information about the kc mailing list