LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2009, 09:18 AM   #1
pandy047
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
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.

Last edited by pandy047; 12-15-2009 at 09:19 AM.
 
Old 12-15-2009, 12:18 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,098

Rep: Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810Reputation: 4810
Quote:
Originally Posted by pandy047 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send 5VDC signal from PC darkxer0x Programming 10 10-26-2009 05:03 PM
pc doesn't send out signal to monitor MafiaTux Linux - General 4 08-07-2008 08:36 AM
how to send a signal to a thread stephenwalter Programming 2 10-17-2005 01:07 AM
What is hup signal? How to send one to squid? Niceman2005 Linux - Newbie 2 12-17-2004 07:37 PM
Send signal to /dev/dsp marghorp Linux - Hardware 5 05-25-2004 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration