Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Send email only if file is uploaded

Please post your current code.
ndesai

Re: Send email only if file is uploaded

Hello Martin,

I have a similar challenge! I need to achieve the following:

- Check if the file is available on the SFTP site, if yes then download to local or shared folder.
- If the file is not available then wait for 2 hours until the file arrives. We can check this by polling every 30 minutes or so.
- Send out an email if the file does not come on SFTP after 2 hours.

I have achieved a certain level but stuck at third step! Need your help and support.
Please let me know if I can share my code (Preferably if you would like to receive it on your personal email).

Thanks,
ND
ConfusedScripter

Send email only if file is uploaded

I currently have a script running daily that uploads files to an FTP site , but there is not always something to upload.

Is there a way to set wscp to only send an email if files were uploaded or not. and then if the files were tried to be uploaded if they were successful or not.

Thanks!