Jump to content

Php script using shell script and cronhjob


rajeshatbuzz

Recommended Posts

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??

Link to comment
Share on other sites

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??

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.