Sponsored Content
Top Forums UNIX for Advanced & Expert Users how to make a current running process ignore SIGHUP signal? Post 44221 by linuxpenguin on Tuesday 2nd of December 2003 12:35:20 PM
Old 12-02-2003
what about writing a ftp daemon process.
your daemon will have 2 forks, (as per the standard daemon in stevens) the second child will exec your ftp program and before that it will catch the sighup or whatever signals you want.

Tell me if you need more help, this one interests me!
 

10 More Discussions You Might Find Interesting

1. Programming

to find current running process

Hi All, The scenario is like this: There is a process say "A" which create a child process say "B" if some condition is true and process "A" terminates. "B" invokes some C program say "C" using 'execl' function. The job of program "C" is to keep polling the server until the server will be up.... (2 Replies)
Discussion started by: ranjkuma692
2 Replies

2. Shell Programming and Scripting

current running process in shell

hi what is the shell programming code to know the number of processes currently running on the machine & information about those processes. Another one is the configuration and usage of the UNIX file system? requesting all for help. thanks (1 Reply)
Discussion started by: moco
1 Replies

3. UNIX for Dummies Questions & Answers

Current Process Running.

Hi all, When I issued command ps -ef|grep Vinay in a UNIX machine, I got the following Vinay 22491 1 255 Jun 18 ? 294248:53 -sh Vinay 26628 1 255 Jun 18 ? 294237:33 -sh Could you tell me what all process is running ? Please explain each of the fields. Thanks... (4 Replies)
Discussion started by: coolbhai
4 Replies

4. Programming

C program to make an exact copy of the current process in Ubundu

Hi All, I am new to Linux and i need your for a program which makes the exact copy of the running process. I have got some codes but it only works for the first command and will not work for subsequent commands. Means it works for "ps" but will not work for "ps u". I have changed the code to... (1 Reply)
Discussion started by: subhash007
1 Replies

5. Programming

how can i make that a process child send a signal?

I'm trying to do a program that makes activate an signal (SINGALARM) when the next child of a son appears but this not works. I have to caught the next child o the other (pid), to send a singnal which inform a menssage. It's anything worng in the code? thanks. the code: #include... (2 Replies)
Discussion started by: marmaster
2 Replies

6. UNIX for Dummies Questions & Answers

Running different process from current process?

I have been having some trouble trying to get some code working, so I was wondering...what system calls are required to execute a different program from an already running process? (1 Reply)
Discussion started by: Midwest Product
1 Replies

7. Shell Programming and Scripting

Quiting running process without catching TRAP signal

Hi, I would like to ask, if is it possible to quit running loop in the script any other way than catching the trap signal. Ctrl-C ends only current running instance of process but not whole script. Any clues? (3 Replies)
Discussion started by: smoofy
3 Replies

8. Shell Programming and Scripting

Display current directory for a running process for script

I'm trying to create a ksh script to do the following: 1) Ask the user what process they want to search for. 2) Have the script read the input as a variable and use it to search for the process. 3) Display the current time & date, the working directory of the process, and finally display the... (6 Replies)
Discussion started by: seekryts15
6 Replies

9. Shell Programming and Scripting

Command to know all the Current running process and how to kill

All, 1.What is the unix comand used for all current running process (Including All current running processes Parent ->child->subchild process) 2.If child and subchild processes are running then what is the unix command to kill parent and its all child subchild processes in UNIX. Kindly... (7 Replies)
Discussion started by: skp
7 Replies

10. Shell Programming and Scripting

List Process running under current user

Hi, i need to list the processes running only under current logged in user. EX: $ whoami oraaqw $ ps -ef | grep tnslsnr oraaqw 11403300 19267592 0 09:14:47 pts/3 0:00 grep tnslsnr oraaqw 15794208 1 0 Jan 14 - 11:59... (6 Replies)
Discussion started by: aravindadla
6 Replies
ftp-proxy(8)							    Proxy-Suite 						      ftp-proxy(8)

NAME
ftp-proxy - application level proxy for the FTP protocol SYNOPSIS
ftp-proxy [-c] [-d|-i] [-f file] [-n] [-v level] [-V] DESCRIPTION
FTP-Proxy acts as an application level gateway between FTP clients and servers. Its main purpose is to secure local FTP servers against possibly insecure clients or malicious attacks. FTP-Proxy is believed to be immune against current known attacks based on the FTP proto- col. FTP-Proxy can be started from the inetd (or xinetd, or any other) internet super daemon or executed on its own as a standalone daemon, in which case it will fork child processes to handle connections. The behaviour depends on the ftp-proxy.conf(5) configuration option Server- Type or the -i and -d command line switches, where the latter two take precedence. FTP-Proxy features a rich set of auditing and command restriction capabilities and is specifically suited for deployment in firewall envi- ronments. OPTIONS
-V Print the program's version information and terminate with exit code 0. -c Read the configuration file, output its contents sorted by section and option name to standard output, and terminate with exit code 0. This option is mostly interesting for diagnostic purposes. -d Force FTP-Proxy to run in standalone (daemon) mode, even if a ServerType inetd directive exists in the configuration file. -i Force FTP-Proxy to run in inetd mode, even if a ServerType standalone directive exists in the configuration file. -f filename Specify an alternate configuration file to be read instead of the standard /etc/proxy-suite/ftp-proxy.conf file. Please note that the default path for the configuration file is a compile time option. It can be changed using the --prefix and --sysconfdir options when running the configure script - see also the INSTALL file for usage description. -n Do not detach from the controlling terminal. This prevents the default of becoming a daemon and is ignored if running in inetd mode. The main purpose of this option is to support the AIX System Resource Controller or similar setups, where several daemons are controlled by a master daemon. -v level Enable diagnostic output to be sent to the file /tmp/ftp-proxy.debug. The given level must be in the range from 0 (no output at all) to 4 (maximum verbosity). See also DIAGNOSTICS bellow. SIGNALS
SIGTERM, SIGQUIT, SIGINT These signals instruct FTP-Proxy to abort any existing transfer, close all connections and terminate the process. If the target of the signal is a running FTP-Proxy daemon, all current child processes wil also be terminated. SIGHUP This signal will be accepted if running in daemon mode and ignored in inetd mode. It causes the FTP-Proxy to reread its configuration file and to reopen the log destination if it was changed in the configuration file, or rotated if it is a log file. See also dedicated rotation singnal SIGUSR1 bellow. SIGUSR1 This signal will be accepted if running in daemon mode and ignored in inetd mode. It causes the FTP-Proxy to close its current logfile, rename it to a date and time derived value, and open a new logfile. This pro- cedure is also known as Logfile Rotation. Child processes forked before the reception of this signal and processes run from inetd will not be affected. See also the ServerRoot configuration option in ftp-proxy.conf(5). NOTES
When running FTP-Proxy in inetd mode, it is always an excellent idea to check that the inetd configuration file includes a line that invokes FTP-Proxy. An example for a line in /etc/inetd.conf follows: ftp stream tcp nowait root /usr/sbin/ftp-proxy -i Please note that this is just an example and does not provide much security, like running as a non-privileged user or using the TCP Wrapper functionality. DIAGNOSTICS
The -v option is is only available if enabled using the --enable-debug option when running the configure script - see also the INSTALL file for usage description. This option should be used with great care only. It is strongly recommended to not to use it in production environ- ments. If debugging is activated, it always adds output to the file /tmp/ftp-proxy.debug which is created with 0666 mode. This allows child pro- cesses to open and write the file after they have given up their root privileges. If the configuration file contains a ServerRoot directive, child processes and processes run from inetd will try to open the file within their chroot(2) environment. If this fails, e.g. because there is no /tmp directory, it is silently ignored and no debug output is gener- ated. Please note that the program makes no attempt to erase the debug file after use. Thus it will stay around with world writeability until the operator manually removes it! FILES
/etc/proxy-suite/ftp-proxy.conf /usr/sbin/ftp-proxy SEE ALSO
ftp-proxy.conf(5) The SuSE Proxy-Suite documentation included in the doc subdirectory of the package. AUTHORS
Jens-Gero Boehm <jens-gero.boehm@suse.de> Pieter Hollants <pieter.hollants@suse.de> Volker Wiegand <volker.wiegand@suse.de> Marius Tomaschewski <mt@suse.de> COPYRIGHT
The whole SuSE Proxy-Suite is released under the GNU General Public License (GPL). SuSE September 20th, 1999 ftp-proxy(8)
All times are GMT -4. The time now is 03:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy