http://www.perlmonks.org?node_id=1047474


in reply to html::htmldoc not working

CGI scripts are usually run as a different user (www-data etc.) HTML::HTMLDoc uses an external programme, htmldoc. Are you sure this user has permissions to run it? What do the logfiles say?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: html::htmldoc not working
by divinafaudan (Initiate) on Aug 01, 2013 at 17:15 UTC

    Thanks for your reply. I guess the user has permission to run the program because the file was set to 777 mode and the program able to generate the pdf with 0 bytes. I forgot to mention in my last post that the program generated pdf,and, the problem is it did not write the pdf content.

      I did not mean your script, but the htmldoc programme (use
      type htmldoc
      in a shell to find its location).
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ