Thanks for all the input guys. It gives me something to go on. I appreciate it!
Dan Hull
On 7/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Send kc mailing list submissions to
[email protected]
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
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
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" < [EMAIL PROTECTED]>
Subject: Re: [Kc] kc Digest, Vol 33, Issue 11
To: [email protected]
Message-ID:
< [EMAIL PROTECTED]>
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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Send kc mailing list submissions to
> [email protected]
>
> 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
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> 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" <[EMAIL PROTECTED]>
> Subject: [Kc] Interactive Login in Perl
> To: [email protected]
> Message-ID:
> <[EMAIL PROTECTED]>
> 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
> [EMAIL PROTECTED]
>
> 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 <[EMAIL PROTECTED]>
> Subject: Re: [Kc] Interactive Login in Perl
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> 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
> > [EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]>
> >
> > 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 < [EMAIL PROTECTED]>
> Subject: Re: [Kc] Interactive Login in Perl
> To: Dan Hull <[EMAIL PROTECTED]>
> Cc: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> 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
> > [EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]>
> >
> > Quality of life is a choice. It is
> > available to everyone in any circumstance, whether good or bad.
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > kc mailing list
> > [email protected]
> > http://mail.pm.org/mailman/listinfo/kc
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 16 Jul 2006 12:26:28 -0500
> From: Garrett Goebel <[EMAIL PROTECTED] >
> Subject: [Kc] Lightning talks at OSCON 2006: Announcement for
> distribution
> To: [email protected]
> Message-ID: < [EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Begin forwarded message:
>
> > From: Mark Jason Dominus < [EMAIL PROTECTED]>
> >
> > ----------------------------------------------------------------
> > 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:
> >
> > [EMAIL PROTECTED]
> >
> > For more complete information, visit:
> >
> > http://perl.plover.com/lt/osc2006/
> >
> > Thanks.
>
>
>
> ------------------------------
>
> _______________________________________________
> kc mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/kc
>
> End of kc Digest, Vol 33, Issue 11
> **********************************
>
--
Dan Hull
eFax - 816.222.0803
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Subject: Re: [Kc] Question
To: [email protected], [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
Subject: Re: [Kc] Interactive Login in Perl
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
>
> Quality of life is a choice. It is
> available to everyone in any circumstance, whether good or bad.
>
> _______________________________________________
> kc mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/kc
Scott Kahler
=-=-=-=-=-=-=-=-=-=-=-=-=
Unix Nerd
http://www.uclick.com
816-210-8884
[EMAIL PROTECTED]
=-=-=-=-=-=-=-=-=-=-=-=-=
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 <[EMAIL PROTECTED]>
Subject: Re: [Kc] Interactive Login in Perl
To: Dan Hull <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID: <[EMAIL PROTECTED] >
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 < [EMAIL PROTECTED]>
Subject: Re: [Kc] Interactive Login in Perl
To: [email protected]
Message-ID: <[EMAIL PROTECTED] >
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 [EMAIL PROTECTED]
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
[email protected]
http://mail.pm.org/mailman/listinfo/kc
End of kc Digest, Vol 33, Issue 12
**********************************
--
Dan Hull
eFax - 816.222.0803
[EMAIL PROTECTED]
Quality of life is a choice. It is
available to everyone in any circumstance, whether good or bad.
_______________________________________________ kc mailing list [email protected] http://mail.pm.org/mailman/listinfo/kc
