Catch the output of PLINK.exe (PUTTY)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Catch the output of PLINK.exe (PUTTY)

Post by admin »

I switched my system to Croatian but still can get no error.

Code: Select all

System Locale ID: 1050 (hr-HR)
Thread Locale ID: 1031 (de-DE)
Default ANSI Code Page: 1252  (ANSI - Lateinisch I)
Active ANSI Code Page: 1250  (ANSI - Osteuropa)
Default OEM code page: 850   (OEM - Multilingual Lateinisch I)
Active OEM Code Page: 852   (OEM - Lateinisch II)
What do I need to do to reproduce the issue?

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Catch the output of PLINK.exe (PUTTY)

Post by highend »

Maybe it's OS related?

01. Windows Server 2012 R2 U1 x64 German, English language pack installed (not active)
All regional settings are in German
Server 2012 R2 U1.png
02. Windows 7 SP1, x64 German, English language pack installed (not active)
All regional settings are in German
Windows 7.png
As you can see both settings are identical but:
on 01. the output of: text runret("cmd /c chcp", , 1);
is correct

while 02. shows nothing

It's definitely not the codepage alone. Which makes sense because PeterH uses 850 as well and it doesn't work for him, too.
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Catch the output of PLINK.exe (PUTTY)

Post by PeterH »

As I've written several times: my CP *is* 850, (I hope in general it's a) typical German installation. But I see the empty runcmd()!

Some more info:
System Locale ID: 1031 (de-DE)
Thread Locale ID: 1031 (de-DE)
Default ANSI Code Page: 1252 (ANSI - Lateinisch I)
Active ANSI Code Page: 1252 (ANSI - Lateinisch I)
Default OEM code page: 850 (OEM - Multilingual Lateinisch I)
Active OEM Code Page: 850 (OEM - Multilingual Lateinisch I)
Is DBCS Code Page: No

So, if I see it right, the problem is a bit more complex.
But no idea, what additional info I could supply :(
(To be sure: tested with fresh - no change.)

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Catch the output of PLINK.exe (PUTTY)

Post by admin »

PeterH wrote:As I've written several times: my CP *is* 850, (I hope in general it's a) typical German installation.
Sorry, I somehow overlooked that.

Well, out of ideas here as well. It's also weird that there is no error message. :?

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Catch the output of PLINK.exe (PUTTY)

Post by highend »

Addendum:

It doesn't work on Windows XP, Vista, Windows 7

It does work on Windows 8.1, 10

Windows 8(.0) not tested

All regional settings are the same for all operating systems...

It doesn't matter if it's a 32 or 64-bit OS. E.g. Windows 7 x86 + x64 -> Both don't work

---

On Win 10 x64 I switch all language dependent setting to english (united states) (formats, location, regional settings, ...) and change the on screen language to english as well (the systems have an english language pack installed).

Results in:
Win 10.png
Execute the runret() -> Works fine

It's not a codepage issue, it's an OS issue. PeterH is using Win 7 + XP, LittleBig Win 7. I'm Win 8.1 (Server version), Don Win 8.(0|1). Makes perfect sense...
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Catch the output of PLINK.exe (PUTTY)

Post by admin »

Cool, thanks!

But it does not help me. All APIs I'm using here (should) work fine under all those OSs.

In the meantime I had another idea. Let's see how the next beta does...

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Catch the output of PLINK.exe (PUTTY)

Post by highend »

Yeah, even an older version (v15.80.0200) doesn't work on Win 7 so you didn't cut off older OS support in the last 6 months :)

I've posted a few scripts that rely on runret. Wondering why I never got replies like "it's not working on my system"...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Catch the output of PLINK.exe (PUTTY)

Post by admin »

Indeed, that's another mystery. ...shudder... :ghost:

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Catch the output of PLINK.exe (PUTTY)

Post by highend »

v16.80.0012 - 2016-05-29 17:19
! SC runret: Issue on Windows XP, Vista, Windows 7. Fix attempt.
Doesn't make a difference on Win 7...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Catch the output of PLINK.exe (PUTTY)

Post by admin »

Argh!

What if you place the script into a Custom Column (this changes one parameter for which I otherwise would have to upload a new beta to test)?

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Catch the output of PLINK.exe (PUTTY)

Post by highend »

With:

Code: Select all

return runret("cmd /c chcp", , 1);
?

Done, all cells empty (Browse trigger)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Catch the output of PLINK.exe (PUTTY)

Post by admin »

OK, thanks.

So it remains a mystery. :|

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Catch the output of PLINK.exe (PUTTY)

Post by highend »

Porting the .ahk code to VB6 (http://www.autohotkey.com/board/topic/1 ... var/page-7) isn't an option? That one runs on Win 7 (x64 as well)...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Catch the output of PLINK.exe (PUTTY)

Post by admin »

highend wrote:Porting the .ahk code to VB6 (http://www.autohotkey.com/board/topic/1 ... var/page-7) isn't an option? That one runs on Win 7 (x64 as well)...
Not bad, there is a call I did not use. I'll add it and we'll see what happens...

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Catch the output of PLINK.exe (PUTTY)

Post by highend »

013: Nope (neither as a single command, not in a CC with return)...
One of my scripts helped you out? Please donate via Paypal

Post Reply