I have two programs that need to be executed one right after another. I'm trying to write a little shell script with two calls to exec, but it stops after the first program completes. Here's what I've got:
exec prog1 $1 $2
exec prog2 $2
Do I need to put these in a loop or something? I'm really new to shell programming so I don't really have any idea what to do to fix this. Thanks.