Quote:
Originally Posted by hackerdilli
Hi ,
Buddy dnt have option of ssh and have around 300 files.
|
seems kinda' odd to me that you dont have access to
ssh but you have the ability to
sftp eventhough they use the same port and protocol ?
the fact that you have so many files to operate on means you should be using an automated program like
ssh rather than a program like
sftp whose function it is to prompt the user for input and wait until that input is selected.
use
ssh to operate on your loop-control-variable. i wouldnt put in a check to delete but i guess it is up to you. i usually just
rm a list of stuff whether it was there or not meaning that its not a big deal if it doesnt exist because it wouldve been deleted anyways (its like turning off a light switch thats already off).