From: <ex...@ih...> - 2002-07-03 07:46:26
|
I'm not completely confident that I understand how $obj->slave->stty() syntax works. Can I do this: obj->slave->stty(qw('rows 45' 'columns 80'); I'm having trouble running some scripts. They work fine interactively but when I run them through a command server they fail and I think it may have something to do with window sizes. My expect runs a bourne shell script if I run my perl script by hand it executes the sh script fine responding with the right answer when needed via expect. I have a command server (perl) that accepts commands from remote hosts and runs them as a specified user. The same expect that worked when run on the command line fails when run through the command server. It's not clear to me what is happening but I'm guessing that it's window sizes and that the sh script responds differently depending on the window size and that causes a different response/answer pair then what I get when I run manually. Is this all horribly vague? Or does it ring a bell for anyone? |