Shell Scripting question
geffy at geffychan.co.uk
Thu Apr 15 09:28:51 BST 2004
if you recompile PHP with CLI as well as the apache module then you can
just write the PHP script as you would for apache and start the file with
and then have your php script
and that should do it
Dave Tiger wrote:
> Hi List,
> I have looked around for a possible example for a shell script (new to sh
> scripting) to connect to a mysql db, select some data then create vars from
> the result and send the vars to some script a friend made for me to automate
> a job for me.
> Now I am a very good php developer but never ventured under the hood and
> tackle sh so any help would be very much appreciated.
> First connect to mysql and select my data
> Second make variables , maybe in a foreach style loop.
> Then I can call my scripts and pass the vars to them to do their job.
> Any pointers, urls, examples or anything that may help me with this task is
> very much appreciated and I thank you in advance for any help you may give.
> Dave C
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.656 / Virus Database: 421 - Release Date: 09/04/2004
> ------ FreeBSD UK Users' Group - Mailing List ------
More information about the Ukfreebsd