#!/bin/sh
echo "Installing Java!!!"
cd /opt
echo "Want to give execute Permissions to java!!!"
chmod 755 jdk-6u7-linux-i586.bin
echo "Executing the jdk script"
./jdk-6u7-linux-i586.bin
This is the shell commands I am using...
I want to know how to give answer to yes and no automatically here when shell ask
Do you agree to the above license terms? [yes or no]
using the following command able to install silently in local machine,
echo "yes" | ./jdk_version.bin &>/dev/null
but can anybody help me how to do in remote machine . i am trying the below command but it is not working,
ssh root@ipaddress_of_remotemachine echo "yes" | ./jdk_version.bin &>/dev/null