Run a script (server side) when FTP user logs offUpload file to ftp server using commands in shell script?How...
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
declaring a variable twice in IIFE
XeLaTeX and pdfLaTeX ignore hyphenation
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Infinite past with a beginning?
Why was the small council so happy for Tyrion to become the Master of Coin?
What would happen to a modern skyscraper if it rains micro blackholes?
Why is this code 6.5x slower with optimizations enabled?
Email Account under attack (really) - anything I can do?
Why don't electron-positron collisions release infinite energy?
LED on same Pin as Toggle Switch, not illuminating
Why CLRS example on residual networks does not follows its formula?
Is it possible to make sharp wind that can cut stuff from afar?
Draw simple lines in Inkscape
least quadratic residue under GRH: an EXPLICIT bound
How can bays and straits be determined in a procedurally generated map?
Is it possible to do 50 km distance without any previous training?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
"which" command doesn't work / path of Safari?
Can I interfere when another PC is about to be attacked?
DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?
Download, install and reboot computer at night if needed
Can a German sentence have two subjects?
whey we use polarized capacitor?
Run a script (server side) when FTP user logs off
Upload file to ftp server using commands in shell script?How to change the ftp server port in ProFTPDWriting script that logs in and out of ssh serverDebian, ftp user with access to /var/wwwWhy do I get different results during ftp communication when using ls filename and ls./filenameHow to run script when user login using sftpRun shell script without showing all logshow to run a script on auditd events?While stop working active mode FTP after change server portUsing pam_exec.so to run a script as root when a user logs in (while extracting user information)?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'd like to run a shell script on an FTP server when an FTP user logs off.
Imagine:
- Ftpuser logs in, uploads a file to an inbound-only directory and logs off.
- Ftp Server detects logoff then runs
FileCheckMove.sh
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.
shell-script proftpd events
New contributor
add a comment |
I'd like to run a shell script on an FTP server when an FTP user logs off.
Imagine:
- Ftpuser logs in, uploads a file to an inbound-only directory and logs off.
- Ftp Server detects logoff then runs
FileCheckMove.sh
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.
shell-script proftpd events
New contributor
add a comment |
I'd like to run a shell script on an FTP server when an FTP user logs off.
Imagine:
- Ftpuser logs in, uploads a file to an inbound-only directory and logs off.
- Ftp Server detects logoff then runs
FileCheckMove.sh
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.
shell-script proftpd events
New contributor
I'd like to run a shell script on an FTP server when an FTP user logs off.
Imagine:
- Ftpuser logs in, uploads a file to an inbound-only directory and logs off.
- Ftp Server detects logoff then runs
FileCheckMove.sh
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.
shell-script proftpd events
shell-script proftpd events
New contributor
New contributor
edited yesterday
Kusalananda♦
140k17261435
140k17261435
New contributor
asked yesterday
GrepZenGrepZen
61
61
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
GrepZen is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510919%2frun-a-script-server-side-when-ftp-user-logs-off%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
GrepZen is a new contributor. Be nice, and check out our Code of Conduct.
GrepZen is a new contributor. Be nice, and check out our Code of Conduct.
GrepZen is a new contributor. Be nice, and check out our Code of Conduct.
GrepZen is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510919%2frun-a-script-server-side-when-ftp-user-logs-off%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown