G
Guest
Guest
Archived from groups: microsoft.public.windowsxp.help_and_support (More info?)
Hi,
My problem is some what related to KB892099. In Windows XP SP2, when I try
to run a program which accepts data from STDIN using rsh.exe; if I manually
type the input in the console, it works fine and the program accepts the
input. But if I try to send the program the input using the "<" operator, it
doesn't get the input. It worked perfectly in the Windows XP pre-sp2
versions. I tried it with the hotfixed version for KB892099 too but it
doesn't seem to help.
Before applying the hotfix, it wrote "Terminal invalid" message to the
console and after applying the hotfix, just the message is gone but the
behavior is unmodified.
Also, are we allowed to redistribute rsh.exe from XP SP1 to our customers
since the one in XP SP2 is broken?
Example for reproducing the problem:
rsh.exe myhost -l mylogin script.pl < myinput.txt
Here are the contents of script.pl and myinput.txt
<myinput.txt>
This is input line 1
This is input line 2
</myinput.txt>
<script.pl>
open (MYOUT, "results.out");
while( $line = <STDIN> ) {
print MYOUT $line
}
close MYOUT
<script.pl>
Any help in this regard would be appreciated.
Thanks in advance,
Subhash
Hi,
My problem is some what related to KB892099. In Windows XP SP2, when I try
to run a program which accepts data from STDIN using rsh.exe; if I manually
type the input in the console, it works fine and the program accepts the
input. But if I try to send the program the input using the "<" operator, it
doesn't get the input. It worked perfectly in the Windows XP pre-sp2
versions. I tried it with the hotfixed version for KB892099 too but it
doesn't seem to help.
Before applying the hotfix, it wrote "Terminal invalid" message to the
console and after applying the hotfix, just the message is gone but the
behavior is unmodified.
Also, are we allowed to redistribute rsh.exe from XP SP1 to our customers
since the one in XP SP2 is broken?
Example for reproducing the problem:
rsh.exe myhost -l mylogin script.pl < myinput.txt
Here are the contents of script.pl and myinput.txt
<myinput.txt>
This is input line 1
This is input line 2
</myinput.txt>
<script.pl>
open (MYOUT, "results.out");
while( $line = <STDIN> ) {
print MYOUT $line
}
close MYOUT
<script.pl>
Any help in this regard would be appreciated.
Thanks in advance,
Subhash