Subhan

Q: Ruby Script as FCS response

I want to execute a ruby script as a FCS response attached with a poll watcher. But it is throwing following error again and again,

 

response Asset MOS Registration script triggered by Watcher New Asset Watcher failed

response failed to run command ruby /usr/local/bin/hw.rb with arguments { geobit }

ERROR: E_COM

Comnmand exited with status 1

 

How can I execute a ruby script as FCS response. Please help?

 

http://pk.linkedin.com/in/subhanmughal
http://subhan-mughal.blogspot.com/

Posted on Sep 10, 2011 4:29 AM

Close

Q: Ruby Script as FCS response

  • All replies
  • Helpful answers

  • by John F. Whitehead,

    John F. Whitehead John F. Whitehead Sep 20, 2011 5:19 PM in response to Subhan
    Level 2 (380 points)
    Sep 20, 2011 5:19 PM in response to Subhan

    There is nothing magical you need to do to call a Ruby script from FCSvr - it runs as any other command line script does.

     

    Make sure you are escaping the command line arguments properly, that the fcsvr process calling it has permissions to access the areas you may call in your script, and that paths are also set appropriately.