<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unix shell script CGI in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988590#M100170</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You need a statement at the top to set the print type for html.&lt;BR /&gt;&lt;BR /&gt;In perl it looks like this:&lt;BR /&gt;&lt;BR /&gt;print "Content-type: text/html\n\n";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo -e "Content-type: text/html\n\n"&lt;BR /&gt;&lt;BR /&gt;Should work or two line feeds after the html.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Mon, 03 Jul 2006 03:50:06 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-07-03T03:50:06Z</dc:date>
    <item>
      <title>Unix shell script CGI</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988587#M100167</link>
      <description>Hi all,&lt;BR /&gt;when I login as root on our hp9000, and execute the script test to print a file, it works fine&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;export PRINTER=lj402&lt;BR /&gt;if [ -s outsam.9001 ] ; then&lt;BR /&gt;  lp outsam.9001&lt;BR /&gt;fi &lt;BR /&gt;&lt;BR /&gt;When I post execute the above script by a html screen as a cgi script, it won't print anything.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me out please.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.</description>
      <pubDate>Mon, 03 Jul 2006 03:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988587#M100167</guid>
      <dc:creator>Rob Daniels</dc:creator>
      <dc:date>2006-07-03T03:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unix shell script CGI</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988588#M100168</link>
      <description>Check the error logfile.&lt;BR /&gt;I would use the full pathname, /usr/bin/lp</description>
      <pubDate>Mon, 03 Jul 2006 03:34:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988588#M100168</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-07-03T03:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unix shell script CGI</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988589#M100169</link>
      <description>It works. Thank you!!&lt;BR /&gt;&lt;BR /&gt;That was easy, I should have know that.&lt;BR /&gt;&lt;BR /&gt;Thank you again.&lt;BR /&gt;Rob</description>
      <pubDate>Mon, 03 Jul 2006 03:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988589#M100169</guid>
      <dc:creator>Rob Daniels</dc:creator>
      <dc:date>2006-07-03T03:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unix shell script CGI</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988590#M100170</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You need a statement at the top to set the print type for html.&lt;BR /&gt;&lt;BR /&gt;In perl it looks like this:&lt;BR /&gt;&lt;BR /&gt;print "Content-type: text/html\n\n";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo -e "Content-type: text/html\n\n"&lt;BR /&gt;&lt;BR /&gt;Should work or two line feeds after the html.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 03 Jul 2006 03:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unix-shell-script-cgi/m-p/4988590#M100170</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-07-03T03:50:06Z</dc:date>
    </item>
  </channel>
</rss>

