I need to do the following and havent seen anything
on the internet.
I'm trying to send multiple commands over one
socket connection. The reason I'd like to do this
is that the server requires a command prior to the
information that a user will provide. I dont want
the user to issue the command required by the piece of
equipment. I only want them to setup what they know
will be required.
So what I'd like to do is this
$def_cmd="ls"
So what i have is this
while ($user_cmd=<STDIN>)
{
chomp $user_cmd;
$socket->send($def_cmd,$user_cmd)
}
But its not sending the command. Heres an example using ls as the example cmd as shown above.
the user enters dog .. the INET connect would then send
ls dog
to the listening port.
Any help would be great
on the internet.
I'm trying to send multiple commands over one
socket connection. The reason I'd like to do this
is that the server requires a command prior to the
information that a user will provide. I dont want
the user to issue the command required by the piece of
equipment. I only want them to setup what they know
will be required.
So what I'd like to do is this
$def_cmd="ls"
So what i have is this
while ($user_cmd=<STDIN>)
{
chomp $user_cmd;
$socket->send($def_cmd,$user_cmd)
}
But its not sending the command. Heres an example using ls as the example cmd as shown above.
the user enters dog .. the INET connect would then send
ls dog
to the listening port.
Any help would be great