From: Tony De Date: 2010-10-23T02:23:12+09:00 Subject: Re: How to pass/return a string to calling program? Jeremy Bopp wrote in post #956330: > On 10/22/2010 10:24 AM, Tony De wrote: >>> >> My script is running; I run it from the command line as I develop it. I >> can confirm that the script is doing everything it should. It may be, >> although I don't see how, an issue with the daemon calling the script. >> I'll have to dig from the other direction. I may be missing >> something... > > I'm not sure you understood what I was asking. Can you confirm that the > daemon is successfully executing your script? Your script may work when > you run it yourself, but your daemon may not be running it at all for > one reason or another. What you need to have is a way to verify that > your script ran otherwise successfully when invoked by your daemon > process. > > Given that your Perl scripts work as you expect, it's likely that due to > a configuration problem somewhere your Ruby scripts are never running > when the daemon tries to start them. Maybe ruby is not in your PATH, or > perhaps your daemon is trying to invoke the scripts differently than you > do on the command line. > > -Jeremy Of course, your right. The script is running, I have it logging to syslog as well as the daemon logs it's process. The daemon shows that it is successfully running the script and my script log is showing that it is running. As well as the provisioned services are properly turned on/off/suspended, etc. Tony -- Posted via http://www.ruby-forum.com/.