I tried making my first cron today and Im getting a "/bin/sh: /home/oiwio/public_html/hpup: Permission denied"
Im not very skilled with it yet so can someone help me out?
my cron run command is "/home/oiwio/public_html/hpup"
and the shell file is here
and heres the perl file
Code:
#!/usr/bin/perl
# PERL MODULE WE WILL BE USING
use Mysql;
# MySQL CONFIG VARIABLES
$host = "fmammorpg";
$database = "oiwio_oiwio";
$tablename = "users";
$user = "oiwio_oiwio";
$pw = "PW";
# PERL MYSQL CONNECT
$connect = Mysql->connect($host, $database, $user, $pw);
$connect->selectdb($database);
$hp = 'hp + 1';
$myquery = "INSERT INTO
$tablename (username, hp)
VALUES (*, $hp)";
$execute = $connect->query($myquery);
What I want this to do is go into the database and in the table oiwio_oiwio, +1 to all the users hp
I am not sure what is wrong since I have no experiance with crons yet
so if someone could help me that would be great.