Re: running a script with tcpserver

Ketil Froyn <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <1093281155.25221.143.camel@ketil>
On Mon, 2004-08-23 at 17:16, Payal Rathod wrote:
> On Mon, Aug 23, 2004 at 05:01:32PM +0100, Ketil Froyn wrote:
> > 
> > This probably happens because you are reading the first argument on the
> > command line with $1, but the input received over the network is on
> > STDIN. Read this page for everything you need to use tcpserver:
> > 
> > http://cr.yp.to/ucspi-tcp/tcpserver.html
> > 
> > and you can test your program directly by doing something like this:
> > 
> > echo name | ./my-program.sh
> 
> I corrected my last mail just a few minutes back. But the problem
> is still there. Can you just check it out yourself? 

Try removing \r before doing string comparison. To test when there is a
\r, try

fixcrio echo name | ./my-program.sh

Ketil Froyn
[email protected]
http://ketil.froyn.name/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.