05-11-2004
I may be very wrong here, but I think the best route would be to use #3.
The first may work if the process you're running does not exit on SIGHUP. Some, such as inetd, simply reread their config and keep processing. Some of the scripts I write ignore SIGHUP purposely.
The second will trap SIGHUP, but not place it in the background right away. I believe it will is you press "susp", Control-Z in my case.
The last will trap SIGHUP, and run the job in the background.
Again, these may not be correct, since I'm working from memory here.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to have the commands or a scripts that will show me files that are not open by any process and meet a certain pattern (ie arch.log1_117512.dbf).
Basically I a wanting to delete all arched redo logs that oracle has popped out execpt for the current one it is writting to. I am... (3 Replies)
Discussion started by: bn80865
3 Replies
2. UNIX Desktop Questions & Answers
ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
Discussion started by: cybertechmkteo
1 Replies
3. UNIX for Advanced & Expert Users
I've been asked to provide access to my system for another group of individuals to perform WebSphere and Portal tasks (stop/start specifically). I run both as root (we can debate this one later) and so know I have to figure out a way for these individuals to start and stop WebSphere and Portal as... (3 Replies)
Discussion started by: scottsl
3 Replies
4. Shell Programming and Scripting
Hi all,
I would like to know the difference between these commands
/usr/lib/fs/hsfs/mount -F /dev/lofi/1 /usr
and
mount -F hsfs /dev/lofi/1 /usr
In the first case absolute path is specified and in the next the cmd with options ,whats the differnce.
PS:am sorry ,coz this had been... (1 Reply)
Discussion started by: wrapster
1 Replies
5. Shell Programming and Scripting
Hi All,
I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases.
for example
mysql > show databases;
It displayed as follows.
exampledb1
... (1 Reply)
Discussion started by: dbsurf
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases.
for example
mysql > show databases;
It displayed as follows.
exampledb1... (1 Reply)
Discussion started by: dbsurf
1 Replies
7. Shell Programming and Scripting
Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Discussion started by: charlei
6 Replies
8. UNIX for Dummies Questions & Answers
I specified in my file that all cmds are bash:
------------
#!/bin/bash
ls -l
------------
thats the file
how would i run that one command? (2 Replies)
Discussion started by: oxoxo
2 Replies
9. Shell Programming and Scripting
Hi everyone,
I have a Linux OS in my PC (older version 9). Its default shell is bash. Whenever I try to run some Perl program it throws error ! eg, if I run this simple PERL program ,
#!/usr/bin/perl
printf "\lHello \n";
$var=3 ;
printf $var;
@list=(1,2,3);
printf "@list";... (6 Replies)
Discussion started by: adc22
6 Replies
10. AIX
Friends,
Could someone answer me on a silly question of mine:
What's the difference between lsconf & prtconf commands of AIX? I find the o/p's of either of these commands to be same.
Excuse me if I'm missing something, also I google-ed about it before turning down here for answer.
... (3 Replies)
Discussion started by: thisissouvik
3 Replies
LEARN ABOUT DEBIAN
proftpd
proftpd(8) System Manager's Manual proftpd(8)
NAME
proftpd - Professional configurable, secure file transfer protocol server
SYNOPSIS
proftpd [ -hlntv ] [ -c config-file ] [ -d debuglevel ] [ -p 0|1 ]
DESCRIPTION
proftpd is the Professional File Transfer Protocol (FTP) server daemon. The server may be invoked by the Internet "super-server" inetd(8)
each time a connection to the FTP service is made, or alternatively it can be run as a standalone daemon.
When proftpd is run in standalone mode and it receives a SIGHUP then it will reread its configuration file. When run in standalone mode
without the -n option, the main proftpd daemon writes its process ID to /var/run/proftpd.pid to make it easy to know which process to
SIGHUP.
OPTIONS
-h,--help Display a short usage description, including all available options.
-n,--nodaemon
Runs the proftpd process in standalone mode (must be configured as such in the configuration file), but does not background the
process or disassociate it from the controlling tty. Additionally, all output (log or debug messages) are sent to stderr,
rather than the syslog mechanism. Most often used with the -d option for debugging.
-q,--quiet Quiet mode; don't send logging information to standard error when running with the -n option.
-v,--version
Displays the version number of ProFTPD to stdout.
-D,--define parameter
Sets a configuration parameter which can be used <IfDefine>...</IfDefine> sections in the configuration files to conditionally
skip or process commands.
-d,--debug debuglevel
Sets proftpd's internal debug level (normally 0). The debuglevel should be an integer value from 0 to 10, with higher numbers
producing more debug output. Normally, debug messages are sent to syslog using the DEBUG facility, however if the -n option is
used, all such output is sent to stderr.
-c,--config config-file
Specifies an alternate config-file to be parsed at startup, rather than the default configuration file. The default configura-
tion file is /etc/proftpd/proftpd.conf
-N,--nocollision
Disables address/port collision checking.
-V,--settings
Displays various compile-time settings and exits.
-S,--serveraddr
Specifies an IP address for the host machine, avoiding an DNS lookup of the hostname
-t,--configtest
Read the configuration file, report any syntax errors, and exit.
-p,--persistent 0|1
Disables (0) or enables (1) the default persistent password support, which is determined at configure time for each platform.
This option only affects the default support, it can still be overridden at run-time with the PersistentPasswd directive.
-l,--list Lists all modules compiled into proftpd.
-4,--ipv4 Support IPv4 functionality only, regardless of whether the --enable-ipv6 configure option was used.
-6,--ipv6 Support IPv6 connections and lookup of IPv6 addresses for server DNS names. This is enabled by default, if the --enable-ipv6
configure option is used.
FILES
/usr/sbin/proftpd
/etc/proftpd/proftpd.conf
/usr/bin/ftpwho
/usr/bin/ftpcount
/usr/bin/ftptop
/usr/sbin/ftpshut
/var/log/xferlog
/var/run/proftpd.pid
/var/run/proftpd.scoreboard
AUTHORS
ProFTPD is written and maintained by a number of people, full credits can be found on http://www.proftpd.org/credits.html
SEE ALSO
inetd(8),ftp(1),ftpwho(1),ftpcount(1),ftpshut(8)
Full documentation on ProFTPD, including configuration and FAQs, is available at http://www.proftpd.org/
For help/support, try the ProFTPD mailing lists, detailed on http://www.proftpd.org/lists.html
Report bugs at http://bugs.proftpd.org/
July 2000 proftpd(8)