Skip to main content

Perl Script running through cPanel

Comments

3 comments

  • cPanelMichael
    This script is working fine in the command line when the path to it is entered directly in ssh However running the exact same command through Cpanel doesnt seem to run at all

    Hello, Could you elaborate on how you are running the command through cPanel? Thank you.
    0
  • kiteboy
    Hi - Ive tried setting a cron job and puttting the full path to the file as the command So something like www/data/script.pl for example Everything I try doesnt seem to run it Ive also tried perl www/data/script.pl as the command and many other commands too so not sure which would be the right format to do it
    0
  • cPanelMichael
    Hello, Try using the full path the Perl script. EX:
    perl /home/$username/public_html/cgi-bin/script.pl
    You may also want to move the Perl script to the cgi-bin within the public_html directory and ensure it uses correct file permissions (e.g. 0755). Thank you.
    0

Please sign in to leave a comment.