Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <006601c2608d$2dc44d50$db6ba1ca@graal04> From: "Alistair Grant" To: References: <200209200029 DOT g8K0TdM31769 AT tigris DOT pounder DOT sol DOT net> Subject: Re: Fw: Telnet Script? Date: Fri, 20 Sep 2002 20:04:54 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Hi Tom, Thanks for the offer, however I'm not using expect at the moment. You might also like to think about using ssh. It allows you to execute commands remotely and do neat things like: tar cf - . | ssh "cat > file.tar" The syntax might not be quite correct, however hopefully it gives you the idea that you can pipe stuff to a remote command. scp allows you to securely copy files to remote systems. Using keys (and ssh-agent), ssh, scp and sftp can be set up so that you don't have to use passwords. Cheers, Alistair. ----- Original Message ----- From: To: "Alistair Grant" ; Sent: Friday, September 20, 2002 10:29 AM Subject: Re: Fw: Telnet Script? > -------- > Alistair: > > I have been able to write cygwin expect scripts to telnet to remote > boxes running the cygwin telnetd and then subsequently invoke > bash scripts. I did this to work around the in-ability to map > network drives under cron (cron calls the expect script that > telnets in to launch the bash script :->). I can e-mail you an example > ;let me know. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/