Crontab Perl "Permission denied"

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
ZephyrWarrior
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Sep 30, 2012 1:56 pm

Crontab Perl "Permission denied"

Post by ZephyrWarrior »

When it runs, it emails me this:
/bin/sh: /usr/www/tempestgaming/public/issues/checksetup.pl: Permission denied
Here is my tab:

Code: Select all

# This is an example entry that would run a program called 
# "blah.pl" in your home directory every hour. The # at the 
# beginning of the line prevents this from actually running.
#
#0 * * * * ~/blah.pl
#
# Here's another way of saying the same thing.
#
#@hourly ~/blah.pl
#
#You can have the results of commands emailed somewhere with
#"MAILTO=your@email.address", but this is not recommended.
MAILTO=TG.ZephyrWarrior@gmail.com
@hourly ~/public/issues/checksetup.pl
Any ideas?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Crontab Perl "Permission denied"

Post by soja »

chmod +x checksetup.pl ?

What are the permissions on the file?
Not a NFO employee
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Crontab Perl "Permission denied"

Post by Edge100x »

Yes, most likely you forgot to make the file executable. You can also run it using /usr/bin/perl if you wish to continue with it not being marked executable, but it's usually best to chmod +x.
ZephyrWarrior
New to forums
New to forums
Posts: 9
Joined: Sun Sep 30, 2012 1:56 pm

Re: Crontab Perl "Permission denied"

Post by ZephyrWarrior »

Is there a way to run them directly without waiting for crontab? With FileZilla?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Crontab Perl "Permission denied"

Post by soja »

The .pl file? You can log into SSH and run the file from there.
Not a NFO employee
ZephyrWarrior
New to forums
New to forums
Posts: 9
Joined: Sun Sep 30, 2012 1:56 pm

Re: Crontab Perl "Permission denied"

Post by ZephyrWarrior »

Explain it like I'm 5... I'm not very fluent in web hosting. SHH as in SFTP? And where in FileZilla is the option to run that?
ZephyrWarrior
New to forums
New to forums
Posts: 9
Joined: Sun Sep 30, 2012 1:56 pm

Re: Crontab Perl "Permission denied"

Post by ZephyrWarrior »

Nevermind I feel fairly dumb. Didn't know I needed PuTTy.
ZephyrWarrior
New to forums
New to forums
Posts: 9
Joined: Sun Sep 30, 2012 1:56 pm

Re: Crontab Perl "Permission denied"

Post by ZephyrWarrior »

Code: Select all

---- Unsatisfied dependencies detected during ----
----       RJBS/Email-Send-2.199.tar.gz       ----
    Email::Abstract [requires]
    MIME::Entity [build_requires]
    Mail::Internet [build_requires]
    Email::Simple [requires]
    Return::Value [requires]
    Email::Address [requires]
This is installing BugZilla, found here:
http://www.bugzilla.org/docs/4.4/en/htm ... stall-perl
any Sendmail-compatible MTA (Mail Transfer Agent) will suffice. Sendmail, Postfix, qmail and Exim are examples of common MTAs.
I grabbed Postfix, put it on the server (tar.gz), ran it and got

Code: Select all

-bash: ./postfix-2.11.0.tar.gz: cannot execute binary file
Anything I did wrong, please let me know. I feel like such a noob.
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Crontab Perl "Permission denied"

Post by Edge100x »

We already have a local MTA installed (Postfix), so you would not need to install one.

You'll have some difficulty if you need to install a bunch of custom Perl modules, as those normally go into system folders, which you have no access to. There may be some way to install them locally, for just your scripts, but I haven't experimented with this myself.
ZephyrWarrior
New to forums
New to forums
Posts: 9
Joined: Sun Sep 30, 2012 1:56 pm

Re: Crontab Perl "Permission denied"

Post by ZephyrWarrior »

Nfo support recommended bugzilla for a Google code type ticket system. Are there any alternatives that I can install on my nfo webhosting without such issues?
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Crontab Perl "Permission denied"

Post by Edge100x »

It looks like there are quite a few bug tracking systems out there, but I don't have direct experience with installing any of them, myself, so it's hard to say which ones would work and be a reasonable install (also with reasonable support, good features, etc). I hope that a community member will chip in with something here.
Post Reply