in reply to Module Problems

waiterm,
Getting Expect, which requires IO::Tty and IO::Pty to install in a Win32 environment is not easy, let alone straight forward. Just from looking at the FAQ it says it is only possible using Cygwin. I had moderate success. I believe the issue is the Win32 concept of a tty. What are your requirements as possibly there is another solution?

Cheers - L~R

Replies are listed 'Best First'.
Re: Re: Module Problems
by waiterm (Acolyte) on Jan 26, 2004 at 20:17 UTC
    I'm basically aiming to automate the SCP process without having the need for someone to enter a pssword. I run a lot of automated programs and at the moment I'm having to SCP them all manually to the remote server.

    It's basically so that if I go away or am busy (such as next week to Florida!!) Then I simply want my server to run the updates automatically in my absense.
      waiterm,
      In my previous place of employment, I wrote numerous shell scripts that do what you want without Expect or Expect. I accomplished this by using key based authentication instead of passwords. I am sure the same would be possible with a batch file. If you need help creating and configuring key based authentication, you can look at http://www.openssh.org or reply here and I will post step by step instructions.

      Cheers - L~R

        If I'm honest I could probably do with a step-by-step guide, as you can probably tell my programming skills aren't that great yet. I greatly appreciate any help you can give me!!