using Except & Spawin in scripts
Ok this is really probably an easy one to solve but I am struggling. I am writing a script that will spawn a few terminal sessions and will telnet to a server. Now to do that I was going to use the Except, spawn, send, etc commands. I have installed the Except RPM (I am using redhat 7.2 kernel 2.4.7-10). I have included the header in the script #! /usr/bin/except. When I try to run the script it just out puts the line of code "spawn telnet." But if I have any shell commands such as echo or clear, it reports and error (commands not found). When I use the #! /bin/sh as the header it reports that spawn cannot be found. If anyone can suggest anything please do.
Thanking you in advance