This manual page is for Mac OS X Server version 10.6.3

If you are running Mac OS X (client), this command is not available.

If you are running a different version of Mac OS X Server, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



ftpshut(8)                                                                                        ftpshut(8)



Name
       ftpshut - close down the xftpd servers at a given time

Syntax
       ftpshut [ -l min] [ -d min] time [ warning-message ... ]

Description
       The  ftpshut  command provides an automated shutdown procedure that a superuser can use to notify ftp
       users when the ftp server is shutting down.

       The time is the time at which ftpshut will bring the ftp servers down.  It may  be  the  word  `now',
       indicating  an  immediate shutdown, or specify a future time in one of two formats: + number or HHMM.
       The first form brings the xftpd servers down in number minutes.  The second brings  the  ftp  servers
       down at the time of day indicated, using a 24-hour clock format.

       Ten  minutes  before  shutdown, or immediately if ftpshut is timed for less than ten minutes, new ftp
       access will be disabled.  This time may be adjusted through the -l flag.

       Five minutes before shutdown, or immediately if ftpshut is timed for less than five minutes, all cur-rent current
       rent ftp connections will be disconnected.  This time may be adjusted through the -d flag.

       The  [  warning-message  ...  ]  will be formatted to be 75 characters wide.  ftpshut knows about the
       actual string length of the magic cookies.

       Running this command will create a file that the server will use to determine when to shutdown.  Once
       the  shutdown has occured, the server will continue to refuse connections until this file is removed.
       The location of this file is specified by the shutdown stanza in the ftpaccess file.

       The following magic cookies are available:
           Cookie      Description
             %s      time system is going to shut down
             %r      time new connections will be denied
             %d      time current connections will be dropped
             %C      current working directory
             %E      the maintainer's email address as defined in ftpaccess
             %F      free space in partition of CWD (kbytes)
                     [not currently supported on all systems]
             %L      local host name
             %M      maximum allowed number of users in this class
             %N      current number of users in this class
             %R      remote host name
             %T      local time (form Thu Nov 15 17:12:42 1990)
             %U      username given at login time

Restrictions
       You can kill the servers only between now and 23:59, if you use the absolute time.

See Also
       shutdown(8), ftpaccess(5)



                                                                                                  ftpshut(8)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...