From: Roland G. <RGi...@cp...> - 2002-06-20 08:46:58
|
> On Wed, Jun 19, 2002 at 02:34:49PM -0700, Wim Verhaert wrote: > > Thanks for the replies,... > > It seems that the problem I have is related to the folowing command > > > > print $session "$argument\n"; > > > > The problem now in the windows environement is the '\n'. When I replace this > > with '\r' it works. > > I never had this problem in a unix environement. Any comments? > > > > This is an excellent question. I have had trouble with different > unix applications expecting \r, so it's not windows specific. Actually, "\r" is the correct thing to do to emulate the user pressing the <return> key. This will usually get translated to "\n" in the pty according to terminal settings, but this is of course system-specific. Please note the different semantics: you are emulating a user at a keyboard, you are not driving the application via a pipe. > Short answer: do whatever works. Right. :-) Hope this helps, Roland -- RGi...@cp... |