Hello,

I am new to this mailing list. I was wondering if anyone can help me with my 
problem..

I have a perl script which I need to be executed every 5 minutes. Basically it 
uses GnuPG to sign some data and send it to another server. If I SSH to my 
webserver and run

perl myscript.cgi

the script works fine. But when I try to add that command to a cron job to be 
executed every 5 minuts using Cpanel I get the following error by email..

[Thu Jul 14 20:32:00 2005] myscript.cgi: exec() error: No such file or 
directory at /usr/lib/perl5/site_perl/5.8.7/GnuPG/Interface.pm line 322.

When I run that command using SSH, before that, I actually login as 'root'. So 
maybe it is a permissions issue and that's why it is not working as a cron job, 
but I am not excluding any other reasons. How can I login as root before 
running that cron job command?

It is strange how an error is generated from a script that I never opened 
(Interface.pm). I tried this google search but I was not able to make sense out 
of those results: 
http://www.google.com/search?hl=en&lr=&q=exec%28%29+error%3A+No+such+file+or+directory+GnuPG%2FInterface.pm

If I don't solve this problem, is there another way to call myscript.cgi every 
5 minutes? If I access http://www.mywebsite.com/myscript.cgi, the script 
produces the results as expected. So, as plan B, is there a way to call that 
URL every 5 minutes?

Best Regards,

 
Reuben Sant 
 
______________________
Address: "Soleado", Bidnija Road, Bidnija, Limits of St.Paul's Bay. SPB 13. 
Malta
Mob: (+356) 79 313645 [try this first pls]
Tel: (+356) 21 424222
Email: [EMAIL PROTECTED]
Web: http://www.reubensant.net

Reply via email to