oh looks lke that's what I wanted sir. How come I haven't seen it? You wouldn't believe the time I wasted on this. Thank you very much sir. I will confirm once I try it out probably in another couple of hours.
Mr Soonix you are a life saver. It indeed did the trick :) thank you very much. And thanks all whoever have been trying to help.
I have one last question pertaining to this thread though. Could someone help me understand how to display the progress when a download is in place. I dont want to install another cspan module to reach this. IF I could just get the progress shown in the screen when you download a file manually is more than sufficient. I think what im asking here is how to print the STDOUT to the screen.Please try to help
Thank you very much again sir. Mr soonix beleive it or not Im a beginner in the world of perl. I too saw the context callback and I couldnt understand a thing. In fact net:sftp foreign is the firs ever cspan module I used in my scripting. Could you please be good enough to modify my code without complicating it too much (cos im a beginner :) so that I could grasp the idea of it? Please sir.