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
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
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
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
cat /tmp/file
one
two
three
four
Pol
cat /tmp/file
Could we perhaps see the contents of this file?
Regards,
--
Max
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.
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
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
8 matches
Mail list logo