Your requirements are a bit unclear to me. Could you please explain what you want in more detail? What's the purpose of these two scripts and the relationship between them? How do you intend to call the second script from the first? How about some example code or pseudocode?
In general though, the exit status of a script is that of the last command it executes. Use the "exit" command to control what code is issued when the script exits (for example, add "exit 1" to the end of the script to make it output a status of 1). Finally, "$?" is used to get/output the exit status of the previous command.
"echo xyz >> filename" can be used to append lines to a file.
|