Loading ...
Sorry, an error occurred while loading the content.

2184getdata from database with #shell and direct cgi-mode

Expand Messages
  • schatzer.johann
    Apr 11, 2009
    • 0 Attachment
      Why does this shell-construct not work in cgi-mode? It renders the plot, but without data.

      #proc getdata
      data:
      #shell
      psql -F, -t -ddatabase -Pformat=unaligned -c"select * from table"
      #endshell

      #proc page
      etcetera ...

      -----
      The same script works fine when ploticus is invoked from the command-line.

      -----
      If I use the output of the above database command, the cgi mode works fine.
      #proc getdata
      data:
      23 41 19 17
      etc. ...
    • Show all 4 messages in this topic