LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Not able to send the signal through browser (https://www.linuxquestions.org/questions/linux-software-2/not-able-to-send-the-signal-through-browser-775795/)

pandy047 12-15-2009 09:18 AM

Not able to send the signal through browser
 
Hi,
We have developed a web page using perl cgi. This web page has to be communicated with other process using the signal 'sigusr1' to keep the sync.

The problem is, i am not able to send the sigusr1 signal to other process, when the cgi script(which sends the sigusr1) is called through browser window.
The command used in the cgi-script:
`kill -USR1, $pid`;

But, when i run the same perl script manually in the console window, "perl <file_name>" it sends the signal correctly.

Pls. provide me if you have any solutions.

Thanks in advance.

TB0ne 12-15-2009 12:18 PM

Quote:

Originally Posted by pandy047 (Post 3792320)
Hi,
We have developed a web page using perl cgi. This web page has to be communicated with other process using the signal 'sigusr1' to keep the sync.

The problem is, i am not able to send the sigusr1 signal to other process, when the cgi script(which sends the sigusr1) is called through browser window.
The command used in the cgi-script:
`kill -USR1, $pid`;

But, when i run the same perl script manually in the console window, "perl <file_name>" it sends the signal correctly.

Pls. provide me if you have any solutions.

Thanks in advance.

Spell out your words, please.

It's probably a permissions issue...the web pages are running as the user to your web engine, while you're running that script as a 'real' user, or at sudo. Either start the other process as the same user, or figure out some way to give elevated privileges to the web user, SAFELY.

Also, it would be helpful if you posted some real information in a question...like version/distro of Linux, parts of your program, etc.


All times are GMT -5. The time now is 05:27 PM.