Search Results

Search: Posts Made By: CarloM
24,200
Posted By CarloM
I think you missed my point. I was suggesting...
I think you missed my point. I was suggesting something like:

ls -tr $tbtsftp > listoffiles.txt

for FILE in `cat listoffiles.txt`; do
echo "cd "$remotepath_VAN >> $commandlist
echo...
24,200
Posted By CarloM
Do you need to? You already know which files...
Do you need to?

You already know which files you're attempting to transfer (ls -tr $tbtsftp > listoffiles.txt). Can you check which files actually transferred via increasing sftp's log level and...
24,200
Posted By CarloM
I think that's expected behaviour - the built-ins...
I think that's expected behaviour - the built-ins abort, but shell can do whatever.

Your issue then is just that you don't know what (local) unlinks failed? Couldn't you create a list of the files...
24,200
Posted By CarloM
Just to clarify, sftp -b isn't aborting on a...
Just to clarify, sftp -b isn't aborting on a failed put either?
24,200
Posted By CarloM
As I mentioned in an edit above, can you do a...
As I mentioned in an edit above, can you do a pull rather than a push? Then you could use sftp's internal rm, and it would abort on fail.
24,200
Posted By CarloM
Yes - I was confusing my local and remotes... ...
Yes - I was confusing my local and remotes...

EDIT: Although it would work (abort) if you ran it the other way :).
24,200
Posted By CarloM
!rm is excuting a shell command though, is it...
!rm is excuting a shell command though, is it not? As opposed to sftp's builtin.

Theory only, haven't tried it myself :).
24,200
Posted By CarloM
sftp rm should abort on fail, according to the...
sftp rm should abort on fail, according to the man page:
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy