Hi Akhilesh,
I missed semi colon at the end, thanks for your help though.
i executed scp command in the exec function, my command needs a password, which we enter the passwords manually. is there anyway it should execute the command automatically without asking for password?