Perl Script running through cPanel
Hi all
Hope im in the right place - apologies for a possibly a simple query - very green to this
Im trying to run the following perl script
piwigo.org/doc/doku.php?id=user_documentation:tools:piwigo_import_tree
the script (Ive named it .pl) but essentialling contains the following
perl piwigo_import_tree.pl --base_url=
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
I know Im probably doing something wrong but can anyone offer any advice
Thanks all-
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 -
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 -
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.
Comments
3 comments