Hi,
I have an application that listens to port 5744. I send to it a command from a terminal like this
Code:
echo my-command > /dev/tcp/localhost/5744
and replies
I need to built a script doing the job so I make one as simple as this
Code:
#!/bin/sh
# $1 = command
# $2 = hostname
# $3 = port
echo $1 > /dev/tcp/$2/$3
then in terminal I write..
Code:
sh myscript.sh command localhost 5744
and I come up with this error
cannot create /dev/tcp/localhost/5744: Directory nonexistent
Any ideas?