Skip to main content
Sort out title
Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

Run a script  (svrserver side) when FTP Useruser logs off

Improved formatting; tweaked wording; added tag.
Source Link

I'd like to run a shell script on thean FTP server side when aan FTP user logs off.

Imagine:

  1. Ftpuser loginslogs in, uploads a file to an inbound-only directory and logs off.
  2. Ftp Server detects logoff then runs FileCheckMove.shFileCheckMove.sh
  3. FileCheckMove.shFileCheckMove.sh checks/sanitizes any files from inbound-only and moves them to an alternate location.

What's the best way to detect ftp user logoff and initiate the event?

  • I've considered simply auto running the script every few minutes, but I don't want to attempt FileCheckMove.sh on a file that's open during its upload to the server.

This is Debian 9 stretch running ProFTPd.

I'd like to run a shell script on the server side when a FTP user logs off.

Imagine:

  1. Ftpuser logins, uploads a file to an inbound-only directory and logs off.
  2. Ftp Server detects logoff then runs FileCheckMove.sh
  3. FileCheckMove.sh checks/sanitizes any files from inbound-only and moves them to an alternate location.

What's the best way to detect ftp user logoff and initiate the event?

  • I've considered simply auto running the script every few minutes, but I don't want to attempt FileCheckMove.sh on a file that's open during its upload to the server.

This is Debian 9 stretch running ProFTPd.

I'd like to run a shell script on an FTP server when an FTP user logs off.

Imagine:

  1. Ftpuser logs in, uploads a file to an inbound-only directory and logs off.
  2. Ftp Server detects logoff then runs FileCheckMove.sh
  3. FileCheckMove.sh checks/sanitizes any files from inbound-only and moves them to an alternate location.

What's the best way to detect ftp user logoff and initiate the event?

  • I've considered simply auto running the script every few minutes, but I don't want to attempt FileCheckMove.sh on a file that's open during its upload to the server.

This is Debian 9 stretch running ProFTPd.

deleted 15 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 237

I'd like to run a shell script on the server side when a FTP user logs off.

Imagine:

  1. Ftpuser logins, uploads a file to an inbound-only directory and logs off.
  2. Ftp Server detects logoff then runs FileCheckMove.sh
  3. FileCheckMove.sh checks/sanitizes any files from inbound-only and moves them to an alternate location.

What's the best way to detect ftp user logoff and initiate the event?

  • I've considered simply auto running the script every few minutes, but I don't want to attempt FileCheckMove.sh on a file that's open during its upload to the server.

If it matters, thisThis is Debian 9 stretch running ProFTPd.

I'd like to run a shell script on the server side when a FTP user logs off.

Imagine:

  1. Ftpuser logins, uploads a file to an inbound-only directory and logs off.
  2. Ftp Server detects logoff then runs FileCheckMove.sh
  3. FileCheckMove.sh checks/sanitizes any files from inbound-only and moves them to an alternate location.

What's the best way to detect ftp user logoff and initiate the event?

  • I've considered simply auto running the script every few minutes, but I don't want to attempt FileCheckMove.sh on a file that's open during its upload to the server.

If it matters, this is Debian 9 stretch running ProFTPd.

I'd like to run a shell script on the server side when a FTP user logs off.

Imagine:

  1. Ftpuser logins, uploads a file to an inbound-only directory and logs off.
  2. Ftp Server detects logoff then runs FileCheckMove.sh
  3. FileCheckMove.sh checks/sanitizes any files from inbound-only and moves them to an alternate location.

What's the best way to detect ftp user logoff and initiate the event?

  • I've considered simply auto running the script every few minutes, but I don't want to attempt FileCheckMove.sh on a file that's open during its upload to the server.

This is Debian 9 stretch running ProFTPd.

Source Link
Loading