shell - Netcat result as a perl script argument -
i'm traying output of netcat perl script argument in linux :) , here perl code: while(1){ if(@argv>1){some traitement ....}
in terminal tested this: netcat -l -u -p 1111 | perl myscript.pl
, not working, i'm receiving data can check on wireshark. data need redirected myscript.pl parameter. if possible .sh file ok. thank you.
you're passing output perl
's stdin. can following read it:
while (<>) { ... }
if need output parameter, use following (but keep in mind there limits on size of parameters):
perl myscript.pl "$( netcat ... )"
Comments
Post a Comment