LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-15-2011, 08:06 AM   #1
oyhaare
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Question Rexec and sending signals to the remote process.


I am porting a software module from Irix to Linux. It uses the rexec-function to start up remote processes.

The rexec man page says the following:
Quote:
int rexec(char **ahost, int inport, char *user, char *passwd, char *cmd, int *fd2p);

If fd2p is non-zero, then an auxiliary channel to a control process will be setup, and a descriptor for it will be placed in *fd2p. The control process will return diagnostic output from the command (unit 2) on this channel, and will also accept bytes on this channel as being UNIX signal numbers, to be forwarded to the process group of the command.
It seems the part about sending bytes through fd2p and them being forwarded to the remote process as unix signals does not work.

Have anyone succesfully made this work on Linux?
e.g:
- start a process via rexec()
- sending a signal, let's say SIGTERM, to the remote process and have this process terminate gracefully?


PS: I know rexec is bad for security, but that's not really an issue in this case
 
  


Reply



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
sending remote command to background process + out log c0m4r Linux - Newbie 6 02-02-2010 04:34 AM
Sending signal SIGQUIT to a process forked by remote machine v_sharma Linux - Server 0 03-15-2009 03:57 AM
Sending SIGKILL/signals to process and all children? thecake Linux - Newbie 1 12-22-2008 04:50 PM
sending signals jiya_31 Linux - Software 3 10-25-2007 03:59 PM
Trying to get rexec to work. When incoming rexec, linux host responds 'Where are you krulr Red Hat 1 09-12-2003 10:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:37 AM.

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
Open Source Consulting | Domain Registration