lamwaiman1988
lamwaiman1988

Reputation: 3742

Are there no way to know a ftp shell script failed?

I have an experience of using shell script to ftp some file. And some files could just missed. For example for I have 100000 files to be ftp, there might be 1 or 2 files haven't been ftp and there is no obvious error.

The shell didn't stop when one of the files failed to be ftp, although we don't want the script to stop due to only 1 missing file, we still want it to have some feedback to know there is a problem.

Would it be better if we use java to ftp?

Upvotes: 0

Views: 135

Answers (2)

Soren
Soren

Reputation: 14688

You should probably not use ftp at all -- but rather consider something like rsync which can restart failed transfers and only transfer the files which has been updated since last.

Upvotes: 1

Daniel Moses
Daniel Moses

Reputation: 5858

The fact that you are asking if java is better makes me think you are more proficient in java. It's probably best to use whatever language you are more comfortable with.

Unless it's perl ;) j/k

Upvotes: 0

Related Questions