![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PL/SQL function from shell script | KrishnaSaran | Shell Programming and Scripting | 0 | 06-20-2008 03:48 AM |
| Problem with a function in a shell script | neeto | Shell Programming and Scripting | 3 | 05-21-2008 11:53 AM |
| how can i call a function in shell script | rajesh.P | Shell Programming and Scripting | 4 | 01-17-2008 01:24 AM |
| calling one function from another shell script | trichyselva | UNIX for Dummies Questions & Answers | 1 | 01-17-2008 12:28 AM |
| getting the value of a c function in shell script | surjyap | Shell Programming and Scripting | 1 | 09-27-2005 05:33 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
PHP function in a shell script
Hi.
I am writing a shell script for Ubuntu linux. Eventually I want my script to run every 10 mins via cron. This is what I am trying to do: php file: connect to mysql database get the last row input check date against previously saved date (on last run) if date>previous return true else return false Basically if a new row is inserted return true else return false Shell script: Run php file and get response <<<<< if true run some code else exit How do I run a PHP file and get the response of true or false in the shell script? Thanks. |
| Bookmarks |
| Tags |
| mysql, php, script, shell, shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|