简体   繁体   English

语法错误:重定向意外的Netcat busybox

[英]Syntax error: redirection unexpected netcat busybox

I'm new to netcat and trying to use the same line in the busybox as i do in my pc. 我是netcat的新手,并尝试在busybox中使用与在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" 顺便说一句,此脚本通过发送“ info”将其获取的信息扔到屏幕上

只需更改为:

echo "info" | nc - w 30 IP 3031 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM