Scientific Linux

  Reply to this topicStart new topicStart Poll

> linux task scheduling via web script, linux task scheduling via web
 Posted: Nov 20 2013, 09:34 AM
Quote Post

SLF Newbie

Group: Members
Posts: 1
Member No.: 2818
Joined: 20-November 13

Hello guys,

I am very new linux user. In a project I have to schedule a task on linux server to call a url after a specific time. I have tried this command from command line as ec2-user(using Putty from windows)....

echo "curl" | at now + 5 min

which gives response...

job 123 at 2013-11-20 09:25

and running fine after 5 minutes..but when I run php script to execute the same produces similar output..

job 124 at 2013-11-20 09:41
..but job not executed...the php code is...

system('echo "curl" | at now + 5 min 2>&1', & $retval);
$output = ob_get_clean();
echo $output;

I have asked in other community..they said this code is working for them...after searching I conclude that this command execute as apache there any permission issue...??? or anything else???

I have thrown my head in it ...but can't figure out...please someone help...

Thanks for your time and help.
 Posted: Nov 21 2013, 09:33 PM
Quote Post

Retired SLF Administrator

Group: Admins
Posts: 1276
Member No.: 2
Joined: 8-April 11

Topic moved to a better subforum wink.gif

"Sometimes the best helping hand you can give is a good, firm push."
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll