Register
It is currently Wed Aug 20, 2014 2:28 pm

script to run a PHP var


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Sat May 31, 2008 9:39 am   

Joined: Sat May 31, 2008 9:11 am
Posts: 1
I been trying and trying to do this with no luck at all. Plain and simple is I need a shell script that would run this:

php http://path/vsp.php -l wet -p savestate 1 "ftp://ftppath/server.log"


What it's suppose to do is run vsp.php (vsp stats processor) with the specified options (-l wet -p savestate 1) and process the server.log that it ftp'd with those options.

Thanks guys


Top
 Profile  
 PostPosted: Sat May 31, 2008 12:25 pm   
User avatar

Joined: Sun Apr 13, 2008 4:05 am
Posts: 37
Location: /dev/random
multe-me wrote:
I been trying and trying to do this with no luck at all. Plain and simple is I need a shell script that would run this:

php http://path/vsp.php -l wet -p savestate 1 "ftp://ftppath/server.log"


What it's suppose to do is run vsp.php (vsp stats processor) with the specified options (-l wet -p savestate 1) and process the server.log that it ftp'd with those options.

Thanks guys


you are giving an url to php interpreter. so it can do nothing. try giving real path of file. it has to be like "/var/www/html/vsp.php" or /home/user/public_html/vsp.php"
if php file is not on your machine and you need to run it from outside then arrange php.ini (on remote server) for your options, and then you just need to call it with wget or curl.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP