|This forum is proudly powered by Scientific Linux 6||SL website Download SL Help Search Members|
|Welcome Guest ( Log In | Register )||Resend Validation Email|
Posted: Nov 20 2013, 09:34 AM
Member No.: 2818
Joined: 20-November 13
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 http://www.example.com/timetest.php" | 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 command..it produces similar output..
job 124 at 2013-11-20 09:41
..but job not executed...the php code is...
system('echo "curl http://www.example.com/timetest.php" | at now + 5 min 2>&1', & $retval);
$output = ob_get_clean();
I have asked in other community..they said this code is working for them...after searching I conclude that this command execute as apache user...is 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
Retired SLF Administrator
Member No.: 2
Joined: 8-April 11
Topic moved to a better subforum
"Sometimes the best helping hand you can give is a good, firm push."