Getting parameters

Hi,

I have 2 scripts one master.sh and child.sh. The master runs on a separate server and pushes the child script to the desginated server and runs it.The child script configures the designated server for our day to day use and it has lot of interactive questions which help the configuration.when i run the master script on a remote server I am not able to see the interactive questions in the child script.

Please help in passing on the paramters to the child script

Thanks

Check the permissions of the child script after pushing it to the designated server. Make sure it has got execute permissions.

--ahamed

The permissions are correct

Paste the master script code where it pushes and tries to execute the child script...
Also execute the master script with -x option to get more info on where it is breaking...

--ahamed

#!/bin/sh

script="path of child script"

read -p "Enter the server name or ip to check:" server
export server

scp $script root@$server:/home/.

ssh root@$server "/home/childscript.sh"

I ran it with -x option...it si breaking exactly at the point where the childscript starts the interactive question.