I am trying to automate magmi with a script
<?php
class Trainingsatyendra_Feedback_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
exec('localhost/practice/magmi/web/magmi_run.php?mode=create&pr
ofile=default&engine=magmi_productimportengine:Magmi_ProductImportEngine&CSV:f
ilename=catalog_product_20130422_073721.csv',$result);
var_dump($result);
if($result)
{
echo "shell successfully executed";
}
else
echo "shell Not executed";
}
}
?>
The above code is written in my controller file. when i copy and paste the the below code in browser url it works giving me output on the browser
localhost/practice/magmi/web/magmi_run.php?mode=create&pr
ofile=default&engine=magmi_productimportengine:Magmi_ProductImportEngine&CSV:f
ilename=catalog_product_20130422_073721.csv
However it dosen't work if i try to use exec or shell_exec in my controller.