unable to execute set of command(script files) on bosh ssh vm machine (Automcation)


ishwar panjari
 

HI.
I need to execute set of command on bosh vm machine from other(local) system. I created one script file and i passed script file in following way to execute it on remote machine.
This is my sample script:

bosh download manifest testjob > cf-testjob.yml
bosh deployment cf-testjob.yml
bosh ssh testvm/0 < script.sh

script.sh contain the set of shell script command that need to be execute on testvm/0 machine.
But while execute this script its giving me following error:
Pseudo-terminal will not be allocated because stdin is not a terminal.

Any idea how to do or any alternate way?
Thanks in advance.