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
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.
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
Code:
#!/bin/sh
hpup2.pl
and heres the perl file
Code:
[I]#!/usr/bin/perl[/I]
[I]# PERL MODULE WE WILL BE USING[/I]
[B]use[/B] Mysql;
[I]# MySQL CONFIG VARIABLES[/I]
$host = "fmammorpg";
$database = "oiwio_oiwio";
$tablename = "users";
$user = "oiwio_oiwio";
$pw = "PW";
[I]# PERL MYSQL CONNECT[/I]
$[B]connect[/B] = Mysql->[B]connect[/B][U]([/U]$host, $database, $user, $pw[U])[/U];
$[B]connect[/B]->selectdb[U]([/U]$database[U])[/U];
$hp = 'hp + 1';
$myquery = "INSERT INTO
$tablename [U]([/U]username, hp[U])[/U]
VALUES [U]([/U]*, $hp[U])[/U]";
$execute = $[B]connect[/B]->query[U]([/U]$myquery[U])[/U];
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.