BigSwifty has asked for the wisdom of the Perl Monks concerning the following question:

Hey All! I am a relative newbie and am having much difficulty! I am trying to run a perl program on a win32 machine which uses Net::Telnet to execute a program (robtest Veritas) on a Unix machine. I've done other things with the module which work fine, but I think my problem is because I need to run a pseudo terminal. I can't seem to find a compiled ppm module (again Win 32) IO::Pty to be able to do this. The output (with errors) is below. Any help as far as which module(s) I need would be greatly appreciated. Thanks in advance! Big Swifty
# remsh mmdcux17 /usr/openv/volmgr/bin/robtest Configured robots with local control supporting test utilities: TLD(0) robotic path = /dev/rac/c5t0d0 Robot Selection --------------- ioctl: Unknown error failed changing terminal characteristics (45) 1) TLD 0 2) none/quit

Replies are listed 'Best First'.
Re: win32 running unix interactive program
by thundergnat (Deacon) on Jun 02, 2005 at 11:09 UTC

    IO::Pty apparently is very difficult to get working under Windows. (You need a Cygwin environment and a lot of perserverance, and even then, it has issues.) See this node for more details.

    Unfortunately, I don't have any useful advice on other ways to accomplish what you are trying to do :-(.

Re: win32 running unix interactive program
by JSchmitz (Canon) on Jun 02, 2005 at 11:58 UTC
    I am confused as to why you would do this? If this Unix machine is the Netbackup master server and you have access to it via telnet - why don't you just log on and use robest interactively instead of trying to run a script from your win box? Not sure if you are wanting to do the same thing with robtest ever time but if you are you could just run the script on the unix box in cron and have it notify you if there is a failure. Are you using this to see if a tape is stuck in a drive or to move a tape?
      There is a script that comes with Netbackup called "Available_Media" it is in /opt/openv/netbackup/bin/goodies it will give you the info you need. You can just run via Net::Telnet and check the output on whatever intrevals you need to -

      Cheers,
      Jeffery
        Thanks Jeffery!!
      Actually the machine is located remotely and I would like to know by polling robtest when all the slots are available for reloading or removing tapes (humans on the other side). I would set an alarm on PC and then load the next 10 into the slots instead of constantly checking. There is an ancient version of Perl on the Netbackup machine and d/l modules etc. is an issue on that machine. Thanks for the reply! BigSwifty