Re: cgi and bash

2017-09-07 Thread Darac Marjal
On Thu, Sep 07, 2017 at 01:46:50PM +0200, Pol Hallen wrote: Hello all I try to formatting out put cat command cat /usr/lib/cgi-bin/test00.cgi #!/bin/bash echo "Content-type: text/html" cat /tmp/file results is: one two three four How format output like a bash script (with newline)? one two

Re: cgi and bash

2017-09-07 Thread Nicolas George
Le primidi 21 fructidor, an CCXXV, Max a écrit : > cat /tmp/file > > one > two > three > four This is not HTML, yet you pretend it is. Make it consistent. It has nothing to do with Bash nor CGI. Regards, -- Nicolas George signature.asc Description: Digital signature

Re: cgi and bash

2017-09-07 Thread Max
I need use html Pol On 09/07/2017 02:05 PM, Dominique Dumont wrote: On Thursday, 7 September 2017 13:46:50 CEST Pol Hallen wrote: How format output like a bash script (with newline)? You can try to set your cgi script to use text/plain content type instead of text/html HTH -- Max

Re: cgi and bash

2017-09-07 Thread Dominique Dumont
On Thursday, 7 September 2017 14:09:19 CEST Max wrote: > I need use html Then have your script output HTML with tags like ... HTH -- https://github.com/dod38fr/ -o- http://search.cpan.org/~ddumont/ http://ddumont.wordpress.com/ -o- irc: dod at irc.debian.org

Re: cgi and bash

2017-09-07 Thread Max
cat /tmp/file one two three four Pol cat /tmp/file Could we perhaps see the contents of this file? Regards, -- Max

Re: cgi and bash

2017-09-07 Thread Dominique Dumont
On Thursday, 7 September 2017 13:46:50 CEST Pol Hallen wrote: > How format output like a bash script (with newline)? You can try to set your cgi script to use text/plain content type instead of text/html HTH -- https://github.com/dod38fr/ -o- http://search.cpan.org/~ddumont/ http://ddumont.

Re: cgi and bash

2017-09-07 Thread Nicolas George
Le primidi 21 fructidor, an CCXXV, Pol Hallen a écrit : > cat /tmp/file Could we perhaps see the contents of this file? Regards, -- Nicolas George signature.asc Description: Digital signature

cgi and bash

2017-09-07 Thread Pol Hallen
Hello all I try to formatting out put cat command cat /usr/lib/cgi-bin/test00.cgi #!/bin/bash echo "Content-type: text/html" cat /tmp/file results is: one two three four How format output like a bash script (with newline)? one two three four thanks for help! :) Pol