I want to make a button inside my GUI that triggers a shell script. How can I do this?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you need to put
into an action that can be called from the gui.
the backtick operator “ makes a system call and returns the standard output of your shell script.
UPD: This is the easy way. If you have a long running shell script you should consider using something like Delayed::Job