Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn pty failed: fork/exec /usr/bin/telnet: invalid argument #56

Open
gitcnd opened this issue Jul 18, 2024 · 2 comments
Open

spawn pty failed: fork/exec /usr/bin/telnet: invalid argument #56

gitcnd opened this issue Jul 18, 2024 · 2 comments

Comments

@gitcnd
Copy link

gitcnd commented Jul 18, 2024

Using wsl1 (Ubuntu) on windows 10N, I get the following:

[cnd:~/Downloads]$ trzsz telnet 192.168.1.106
spawn pty failed: fork/exec /usr/bin/telnet: invalid argument

[cnd:~/Downloads]$ telnet 192.168.1.106
Trying 192.168.1.106...
Connected to 192.168.1.106.
Escape character is '^]'.
Password: 
Welcome to esp32-cam-cb - esp32 Micropython v1.24.0-preview.98.g4d16a9cce on 2024-07-05 on LOLIN_C3_MINI with ESP32-C3FH4

>>> 
telnet> q
Connection closed.

[cnd:~/Downloads]$ 

Not sure what that means, but telnet works fine by itself I know.
The telnet protocol is quite simple - should be possible to let trzsz emulate that without needing to use any external program if that helps?

The problem seems to be with trzsz code, not the program it needs to run - same error no matter what program I try to run:

[cnd:~/Downloads]$ trzsz /usr/bin/perl ~/Downloads/mcu_serial.pl -port $PORT -setdtr -setrts -norts -nodtr
spawn pty failed: fork/exec /usr/bin/perl: invalid argument

[cnd:~/Downloads]$ 
@lonnywong
Copy link
Member

Which version of trzsz? Is it the Linux version or the Windows version?

@lonnywong
Copy link
Member

trzsz in WSL

  • trzsz ( Windows version ) + telnet ( Windows version )

  • trzsz ( Linux version ) + telnet ( Windows or Linux version )

    • You also need to install zenity in WSL.
    • Older versions of WSL may not support the zenity to open the file dialog.
    • You may be able to select files only in WSL but not in Windows.
  • trzsz ( Windows version ) + telnet ( Linux version )

    • Not support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants