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: <42E00CB4.3010500@orion.duhs.duke.edu> Date: Thu, 21 Jul 2005 16:59:32 -0400 From: Lucy Upchurch User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: [Fwd: Cygwin 1.5.9 on Windows XP using ssh within perl] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I have a perl script running on another machine. within the perl script I do an ssh to the XP machine running cygwin 1.5.9. The command I use is: ssh XPPC dir /home/myfiles >From within the perl script I receive the following error: Remote pc cmd failed: ssh XPPC dir /home/myfiles If I do this same command from a shell remotely, it gives me a listing of my directory on the pc. I have generated all my keys so I am not prompted for a password from the command line. Do I need something to redirect my output to the remote machine? I am just trying to count the files within the directory. Thanks for any assistance. Lucy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/