From: LASPINA, JJ (ATTSI) <jl...@at...> - 2011-02-17 21:10:15
|
Jamie Thanks This may work. I have the new window open. My stop.cgi script is a perl script that will open the pid file, read the pid, and kill the process. How can I pass the process file name down to my stop.cgi perl script? John From: Jamie Cameron [mailto:jca...@we...] Sent: Thursday, February 17, 2011 2:47 PM To: Webmin users list Subject: Re: [webmin-l] Kill (Stop) custom command function I think the best solution would be for your button to open a new window that calls stop.cgi , something like : print ui_button("Stop", undef, 0, "onClick='window.open(\"stop.cgi\", \"stop\")'"); On 17/Feb/2011 08:47 LASPINA, JJ (ATTSI) <jl...@at...> wrote .. We have a custom command that is displays lots of output to the screen. This is good. I added a "STOP EXECUTION" button to the top of the form so that the user could stop (kill) the command if need be. I used the ui_buttons_row to create the button The pid of the process is stored in a known file, so I can get that What I want to happen is after the STOP EXECUTION button is hit, continue to see the output on the screen. The custom command will catch the signal and kill the process and display output accordingly. This is the output I need to have displayed on the screen. When I created a stop.cgi behind the button, it took me away from the output. Is there any way to do this ?? Thanks John |