A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows Service Pack 2
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

problem with XP SP2 rsh.exe (post KB892099 hotfix)



 
 
Thread Tools Display Modes
  #1  
Old August 5th 05, 06:56 AM
Subhash Balaji
external usenet poster
 
Posts: n/a
Default problem with XP SP2 rsh.exe (post KB892099 hotfix)

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

Ads
  #2  
Old August 5th 05, 05:52 PM
Mark L. Ferguson
external usenet poster
 
Posts: n/a
Default

Just a guess, but I would suspect that the pearl is seeing some spinoff of 'Lockdown" in SP2.

Pictures do not appear as expected, or you receive an error message when you open an HTML file :
http://support.microsoft.com/?kbid=878461

--
Mark L. Ferguson
FAQ for Windows Antispy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Subhash Balaji" wrote in message
...
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



  #3  
Old August 7th 05, 08:20 AM
Subhash Balaji
external usenet poster
 
Posts: n/a
Default

Hi Mark,

Thanks for replying. This doesn't appear to be a perl problem because
everything works fine when I copy over the rsh.exe from XP SP1 to SP2.

Also, in no way perl should come into picture here as this command should
get executed only on the remote host. rsh.exe should just treat it as a
command and try to execute it on the remote host only after establishing the
connection.

Thanks,
Subhash

"Mark L. Ferguson" wrote:

Just a guess, but I would suspect that the pearl is seeing some spinoff of 'Lockdown" in SP2.

Pictures do not appear as expected, or you receive an error message when you open an HTML file :
http://support.microsoft.com/?kbid=878461

--
Mark L. Ferguson
FAQ for Windows Antispy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Subhash Balaji" wrote in message
...
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




  #4  
Old August 7th 05, 12:05 PM
Mark L. Ferguson
external usenet poster
 
Posts: n/a
Default

Again, I'm just throwing it out, but the Windows Script Host does indeed handle stdout and stdin. I would think there would be no
limitation on any other scripting engine.

http://msdn.microsoft.com/library/en...asp?frame=true

--
Mark L. Ferguson
FAQ for Windows Antispy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
"Subhash Balaji" wrote in message
...
Hi Mark,

Thanks for replying. This doesn't appear to be a perl problem because
everything works fine when I copy over the rsh.exe from XP SP1 to SP2.

Also, in no way perl should come into picture here as this command should
get executed only on the remote host. rsh.exe should just treat it as a
command and try to execute it on the remote host only after establishing the
connection.

Thanks,
Subhash

"Mark L. Ferguson" wrote:

Just a guess, but I would suspect that the pearl is seeing some spinoff of 'Lockdown" in SP2.

Pictures do not appear as expected, or you receive an error message when you open an HTML file :
http://support.microsoft.com/?kbid=878461

--
Mark L. Ferguson
FAQ for Windows Antispy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Subhash Balaji" wrote in message
...
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






  #5  
Old August 16th 05, 01:46 PM
Subhash Balaji
external usenet poster
 
Posts: n/a
Default

Hi Mark,

Problem here is not with the script engine but the rsh.exe is not able to
read input from STDIN if fed using a redirection "" operator.

BTW, Can you tell me if it is OK to redistribute rsh.exe of XP SP1 along
with our application since the one in XP SP2 and Win 2k SP4 are broken?.

Thanks in advance,
Subhash

"Mark L. Ferguson" wrote:

Again, I'm just throwing it out, but the Windows Script Host does indeed handle stdout and stdin. I would think there would be no
limitation on any other scripting engine.

http://msdn.microsoft.com/library/en...asp?frame=true

--
Mark L. Ferguson
FAQ for Windows Antispy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
"Subhash Balaji" wrote in message
...
Hi Mark,

Thanks for replying. This doesn't appear to be a perl problem because
everything works fine when I copy over the rsh.exe from XP SP1 to SP2.

Also, in no way perl should come into picture here as this command should
get executed only on the remote host. rsh.exe should just treat it as a
command and try to execute it on the remote host only after establishing the
connection.

Thanks,
Subhash

"Mark L. Ferguson" wrote:

Just a guess, but I would suspect that the pearl is seeing some spinoff of 'Lockdown" in SP2.

Pictures do not appear as expected, or you receive an error message when you open an HTML file :
http://support.microsoft.com/?kbid=878461

--
Mark L. Ferguson
FAQ for Windows Antispy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Subhash Balaji" wrote in message
...
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







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem copying or moving folders/files (mp3s) after XP clean install-- permissions help Pegasus \(MVP\) Windows XP Help and Support 0 December 23rd 04 06:49 AM
Not "burning" to Cd after SP2 upgrade \old\ devildog Windows Service Pack 2 4 December 2nd 04 06:33 PM
Not "burning" to Cd after SP2 upgrade \old\ devildog Windows XP Help and Support 0 November 30th 04 06:18 PM
Not "burning" to Cd after SP2 upgrade \old\ devildog Windows XP Help and Support 0 November 30th 04 06:15 PM
'spare' SP2 stuff after uninstall k2lim Windows Service Pack 2 3 October 7th 04 04:26 PM






All times are GMT +1. The time now is 11:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.