Shiva wrote:
> @Tone: Two questions. How different is this? And How is this efficient? :) Thanks.
>
> @everyone else: Thanks, I'll keep them ideas in mind.
Tone may want to add more, but the main point is that starting a process on a NonStop system is a resource-intensive operation and slow, when compared to a PC or Unix system starting a process. So when you have a choice between starting FUP once for each command, which the original approach took and starting FUP once and giving that one instance of FUP a series of commands, which is what his suggestion does, the latter usually will run faster. For a small number of commands, the difference probably doesn't matter. The more commands you are giving to the same program, the more difference it makes.
Using inline when you start a program in TACL causes TACL to give the program being started TACL's own process name as the IN file, so your TACL code can compose lines that will be sent to the program when it prompts for input. The "inlprefix ++" command tells TACL that it should send any line that begins with ++ to the current program that is using inline. You'll see the DUP command and the EXIT command are prefixed with ++.
One way it differs is that when sending each command to a separate invocation of FUP, the commands are completely independent of each other, but when using inline, the commands can interact. That's the reason Tone suggested including the allow errors command when using inline -- so FUP would not stop if one of the commands got an error.