Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
How to see Ruby error when called from PHP
Mark Meijer
9/30/2007 11:17:00 AM
I'm not seeing an error message when I call my Ruby script from PHP with
$s = sprintf("ruby /Users/mark/scripts/myscript.rb >
/Users/mark/scripts/myscript.log &");
system($s);
I see print statements from my script in the log file, no errors.
The script is crashing on "requires 'mysql'"
$LOAD_PATH << File.expand_path(File.dirname(__FILE__))
require 'rubygems'
require 'mysql'
I'm able to run the same script from crontab with the expand_path.
Any ideas?
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
How to see Ruby error when called from PHP
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password