I'm trying to write a magic script that will execute a command (for example, ssh) and monitor user input. If it sees "@@" it will accept the rest of the input up the <RETURN> as the filename of a script.
For instance, after entering "@@test", a single <RETURN> is entered and the script, "test"...