Veritas-bu

[Veritas-bu] Scripting question

2002-05-27 07:17:20
Subject: [Veritas-bu] Scripting question
From: plb AT iotk DOT com (Peter L. Buschman)
Date: Mon, 27 May 2002 13:17:20 +0200
Andy:

Ordinary shell scripts can't wait for prompts like logins and passwords.
There are a few ways I'd approach this problem:

1. Use Perl and the Net::Telnet module:

         http://search.cpan.org/search?dist=Net-Telnet

2. Use TCL and Expect:

         http://expect.nist.gov/

3. Run an SSH server on your Windows box:

         http://www.networksimplicity.com/openssh/

My preference is number 3 since it avoids sending any passwords over
the network in cleartext.  However, the OpenSSH server is really only good
for issuing simple commands.  I haven't found any apps using screen control
that work (even edit.)  For kicking off NetBackup tasks, though, it should 
suffice,
and you could use this solution from ordinary shell scripts.

Best regards,

--PLB

At 05:28 AM 05/27/2002 -0500, Andy Skates wrote:
>I know this isn't entirely a NBU question, but.....
>
>I have recently moved back from the dark side (I'm setting up
>NBU under UNIX, after previously using NT/W2K).
>
>I am setting up a script to telnet from Tru64 into a W2K server
>(running Telnet server), to run a pre-backup process.
>
>Does anyone have an idea how I can pass the USERID and PASSWORD
>from the Tru64 server to the W2K server using this script?
>
>When replying, please bare in mind you are talking to a UNIX virgin.
>
>
>Thanks,
>
>Andy Skates
>
>email: andyskates AT iname DOT com
>--
>_______________________________________________
>Sign-up for your own FREE Personalized E-mail at Mail.com
>http://www.mail.com/?sr=signup
>
>_______________________________________________
>Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


<Prev in Thread] Current Thread [Next in Thread>