running a script with tcpserver
Payal Rathod <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I want to make and run a simple script on port say 1234 which will print output of ls -l /usr/designs when user types "name" and exit if something else. Something like, if [ "$1" = "name" ] then ls -l /usr/designs else # echo "hello" exit fi But this does not work. I also tried running recordio before it. But all it does it exits ( or prints hello ). Any ideas why? I have a feeling that some extra characters are insrted but no idea of knowing which I am trying to connect to it from windows by using, telnet 192.168.0.1 1234 Can someone help? With warm regards, -Payal