문제

I'm new to netcat and trying to use the same line in the busybox as i do in my pc.

I want to know how I can change the redirection operator.

nc -w 30 IP 3031 -e <<<"info"

this is the error

-sh: syntax error: redirection unexpected

I think it doesn't like <<<, but what should I change it to?

btw this script throws the information it gets to the screen, by sending "info"

도움이 되었습니까?

해결책

Just change to:

echo "info" | nc - w 30 IP 3031 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top