We have an interactive script(Script 1) which asks for an IP Address and continues it's execution process. Script 1 is called from script2. As we know the IP address we want to pass IP Automatically to script so that manual intervention is not required
I looked into Expect Module. But i cannot install that module in PRODUCTION server.
Can someone suggest a way to overcome this issue.
Try this,
.
Execute like this.
If you want to execute script1 directly, can execute like this,