ftpshut command is used to shut down the FTP server at a specified time. This command is useful for system administrators who want to schedule regular maintenance or shutdowns of their FTP server.
ftpshut command takes a single argument, which is the time at which the FTP server should be shut down. This time can be specified using the following format:
HH is the hour (in 24-hour format) and
MM is the minute.
For example, to shut down the FTP server at 11:30 PM, you would use the following command:
ftpshut command is executed, it will wait until the specified time and then shut down the FTP server. Any users currently connected to the server will be disconnected.
The following table lists all available options for the
|-q||Quiet mode. Suppresses all output.|
|-V||Print version information and exit.|
ftpshut command does not shut down the FTP server at the specified time, there are a few troubleshooting steps you can take:
- Check that the time specified is correct and in the correct format (
- Ensure that the FTP server is running and that you have the necessary permissions to shut it down.
- Check the system logs for any errors or issues related to the
ftpshutcommand must be run as the root user or with sudo privileges.
- If you need to cancel a scheduled shutdown, you can use the
ftpwhocommand to see which users are currently connected to the FTP server and then use the
ftpshut -ucommand to disconnect them.