Need help on Plink

Hi All,

Iam a newbie to the plink and need your assistance. I have referred some posts but it doesn't helps me much.
I have two steps to do.

  1. I have a config file which has a list of servers,username and password.
  2. I have a shell script in windows which accepts arguments and need to run in other servers by referring the config file.

I did tried the simple plink to use the shell, but I don't have any clue how to use the arguments in runtime. Any help/clue will be greatly appreciated.

C:\Users\command prompt>plink -ssh -pw password readonly@12.13.14.15 < /path/to/window/dir/test.sh 30012014
Could not chdir to home directory /home/readonly: No such file or directory
ksh: 30012014:  not found

regards,
cskumar

---------- Post updated at 12:12 PM ---------- Previous update was at 07:26 AM ----------

Hi,

Is there anyone tried using arguments in shell scripting along with plink.
Please advise if we have any other way to achieve.

plink -ssh -pw password readonly@12.13.14.15 < /path/to/window/dir/test.sh 30012014

Thanks and regards,
cskumar