How to run a Bash script via Rails3?

E. G: system('sh 1.1.1.1/yourscript.sh') to get the output look here : Getting output of system() calls in ruby.

– Samira Mh yesterday how to send the result of hello.Sh to the server that running rails in order to display "hello world" in the web page – Samira Mh yesterday call it in the controller when it is required – Gaurav Shah yesterday this command dosn't work I get the error in "irb" system('sh 1.1.1.1/yourscript. Sh';) – Samira Mh yesterday describe it in the simple way: ------------------------- I have 2 server ip of server a:1.1.1.1 ip of server b:1.1.1.2 ---------- I have a scripts in (server a) in the blow path: /usr/local/script/hello. Sh the content on hello.Sh is : ------------------ #!

/bin/bash echo "hello world" -------------------- I am going to call hello. Sh (located on server a)using web programming via rails3 (running on server b) in order to display the result of hello.Sh(hello world) on the web page on server be that is designed via rails web programming – Samira Mh yesterday.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions