Running a cron job through PHP/Apache?!


Posted on 16th Feb 2014 07:03 pm by admin

Hello all,
I have a PHP script which makes a cron file from user input. When i try to run the cron job via system() the job doesn't run, I suspect it has something to do with permissions. Any ideas on how I would go about getting this to work?

Here is the system() call:
Did you know?Explore Trending and Topic pages for more stories like this.
Code: echo $scriptOutput = system('crontab ' . $cronFile, $retval);
Thank you in advance for your help
No comments posted yet

Your Answer:

Login to answer
126 Like 22 Dislike
Previous forums Next forums
Other forums

How do I get the row number from from an sql table query
Hi all

I have a table that I query and it returns a number of rows.
mysql_num_rows($query)

BAPI BBP_INB_DELIVERY_CREATE - material number missing in delivery
Hi Experts,

I was able to successfully create an Inbound delivery with reference to a PO

Login Functionality Working Different on IE
This is an odd one, I have a site which has an admin section. The admin pages unsurprisingly require

big pagination problem in php
<?php

$connect = mysql_connect("localhost", "root", "")

Business Health Check
Hello

I need to create an online business health check for a client it will be multiple choi

user validation always displaying invalid ? please help
Hello,

I have 2 accounts and there is a field in mysql called validated it can be either &quo

Parse String
I need to parse the string below into three variables. How would I do that?

john + 10/20/2008

data type in column definition
Hi,
I create a table with column called "Direction of Travel code ".
The travel codes in t

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

eregi to preg
Im converting my regex for php 5.3 and I am stuck on the following

Code: [Select]if((eregi(&q

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash