I am running a shell command via pty, and I get this error:
No such file or directory - fork failed (Errno::ENOENT)
This is the command I run:
PTY.spawn("telnet localhost 12345") do |r_f,w_f,pid|
w_f.print "ls"
end
Any suggestions?
you have no telnet command available directly. you can try one of several ways to handle it