Skip to content

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

@gitcnd

Description

@gitcnd

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]$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions