Retail Predictive Application Server (MOSC)

MOSC Banner

How to FTP only non empty files

edited Jun 14, 2020 5:08AM in Retail Predictive Application Server (MOSC) 3 commentsAnswered

Good day

I hope you can help me please.

I have an existing FTP script in place on my linux server that exports our csv data files from our RPAS MFP extract folder to another server

I need to include a check of file size to ensure that we never FTP 0 (empty) files across as it wipes out data on the server

Can you please advise on command to achieve that in our existing command below :

Thank you

#!/bin/sh

set -x

ftp -n -v $FTPHOST $FTPPORT << EOT

binary

user $FTPUSER $FTPPASSWD

prompt

put $1 $1

bye

EOT

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center