Hi,
I've a C Shell Script running every 15 minutes which opens a ftp session and downloads files from remote site. But sometimes the ftp session hangs up due to network delay or anyother reason and the session remains open. But after 15 minutes another ftp session opens according to my script. But the thing is I want to close the previous session which hung up before the next session starts. So what should be added to the script to check if any previous session is still open and kill it ?
Thanks much.. Your answers are really apprciated...
I've a C Shell Script running every 15 minutes which opens a ftp session and downloads files from remote site. But sometimes the ftp session hangs up due to network delay or anyother reason and the session remains open. But after 15 minutes another ftp session opens according to my script. But the thing is I want to close the previous session which hung up before the next session starts. So what should be added to the script to check if any previous session is still open and kill it ?
Thanks much.. Your answers are really apprciated...