Dec 5, 2015 23:54
it seems this is a solution stackoverflow.com/questions/5949008/…
Dec 5, 2015 23:43
write here your result with "nohup" please
Dec 5, 2015 23:43
I have no idea what else can help you, but you need to dive into Kernel#system coll, there are some parameters to fork processes, I thinki it can help you
Dec 5, 2015 23:38
nohup ./blink $1 &
Dec 5, 2015 23:37
it demonises your command, you can try to run
Dec 5, 2015 23:37
there is another magic command "nohup"
Dec 5, 2015 23:36
yep
Dec 5, 2015 23:34
sudo ./blink $1 &
Dec 5, 2015 23:34
#!/bin/bash
Dec 5, 2015 23:33
I have only one idea - to create chell script, which will run your command and release the parent process like this:
Dec 5, 2015 23:30
hmmm, I see
Dec 5, 2015 23:27
`sudo ./blink #{params["func"]} &`
Dec 5, 2015 23:27
can you run irb and execute the same code (but with &) which you run in web app?
Dec 5, 2015 23:21
have you tried in terminal command with "&" - "sudo ./blink 3 &"?
Dec 5, 2015 23:19
can you provide shell commant you run in terminal?
Dec 5, 2015 23:16
and "&" doesn't help, right?
Dec 5, 2015 23:15
yes
Dec 5, 2015 23:15
> when I execute my command in terminal that it enables me to run another command right after?
Dec 5, 2015 23:12
Hm, can you check in terminal this command? Your shell comand have to release you terminal at least. Is it true (it releases) the issue is in another place.
Dec 5, 2015 23:12
oh, sure, I got it. Have you tried to detach from the shell process with & command like sudo ./blink #{params["func"]} &?
Dec 5, 2015 23:12
.Are you sure all your shell commands are completed fast and don't delay the response? Can you add some sort of logging to see all lines are executed or some lne are't execited?
Dec 5, 2015 23:12
It seems "done" shoud be placed at the end of the do ... end block after all other stuff, so the block should return this value. HTTP header Connection=close is far enough from what you need.