hi pekopeko,
i have the same problem i am new in rails programming too,
let me know how solev your problem and decsribe step by step how to call script from rails ?
descript my problem:
=====================
in a rails web application programming i need to run bash script (on the linux OS ) in the rails envitonment, but i dont know how to connect my script to the rails in order to rails read & run my script then send the output of script to rails so that meet my needs.
for example i have server with ip:1.1.1.1 ,and write script in the path: /usr/local/scripts /hello.sh ,whenever i run hello.sh script on this server print " hello world" in output, but my rails applicaton is running on the server with ip :1.1.1.2 for example ,now i need to run hello.sh via the rails web application on server 1.1.1.2 to send me on the webpage the output: "hello world" ... that is simple example to say what i need.
myscript: for example
#!/bin/bash
echo "hello world"
OS=LINUX
,please help me,i am new in rails programming thansk for your help,
Last edited by saamimh (2011-11-16 04:09:36)