guys,
take a look at this code snipette,
ftp -ivn <<! >> $LOG_TMP 2>&1
open $FTP1_SRV
user $FTP1_USR $FTP1_PAS
cd $FTP1_BDIR
cd $ADIR
mdel $(< ff.$$)
bye
!
Here the file ff.$$ can have MANY file names which sometimes exceeds the command line length and thus FTP just ignores addional characters.
How can I avoid this from happening?
- I want to avoid multiple FTP connections (no loop)
- I am going to do 'man split' but are there any better ways to handle such a situation?
TIA,
bharix
take a look at this code snipette,
ftp -ivn <<! >> $LOG_TMP 2>&1
open $FTP1_SRV
user $FTP1_USR $FTP1_PAS
cd $FTP1_BDIR
cd $ADIR
mdel $(< ff.$$)
bye
!
Here the file ff.$$ can have MANY file names which sometimes exceeds the command line length and thus FTP just ignores addional characters.
How can I avoid this from happening?
- I want to avoid multiple FTP connections (no loop)
- I am going to do 'man split' but are there any better ways to handle such a situation?
TIA,
bharix