rajeshatbuzz Posted July 6, 2011 Share Posted July 6, 2011 HI All, My Requirement Senario is like below: I would like to run one shell script in cronjob daily which will gather the file size of one location and sent it over url to php page. Now php page will accept all this values over url and stored in mysql database. I am looking for php page which need to be set with shell script. Any help on this?? Quote Link to comment https://forums.phpfreaks.com/topic/241199-php-script-using-shell-script-and-cronhjob/ Share on other sites More sharing options...
trq Posted July 6, 2011 Share Posted July 6, 2011 Where exactly are you stuck? Quote Link to comment https://forums.phpfreaks.com/topic/241199-php-script-using-shell-script-and-cronhjob/#findComment-1238930 Share on other sites More sharing options...
ocpaul20 Posted July 6, 2011 Share Posted July 6, 2011 Dont really know what you want but sounds as if the php program or script running once a day could pick up a list of urls from a file somewhere and read those files sizes and then write another file with the results. The other php program could read the results file and save the details in the database then delete the results file to indicate it had been done. Something like that?? Quote Link to comment https://forums.phpfreaks.com/topic/241199-php-script-using-shell-script-and-cronhjob/#findComment-1239031 Share on other sites More sharing options...
rajeshatbuzz Posted July 7, 2011 Author Share Posted July 7, 2011 its somthing like knowing the sets of file size and putting in mysql database every week along with this script should run on 100's of script and gather all the data into one db and using one php application. So what i thought was, I will gather the file size of each machine using cronjob everyweek and rsync to my php application hosted machine and then php will read these files and fill into db. Quote Link to comment https://forums.phpfreaks.com/topic/241199-php-script-using-shell-script-and-cronhjob/#findComment-1239528 Share on other sites More sharing options...
trq Posted July 7, 2011 Share Posted July 7, 2011 And..... where exactly are you stuck? Quote Link to comment https://forums.phpfreaks.com/topic/241199-php-script-using-shell-script-and-cronhjob/#findComment-1239827 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.