This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If the second should just run if the first was successful (dependent), combine both with && (like in java):
If script1 fails script2 will not be called - assuming either outher circumstances terminating script1, or using the exitstatus in your java programs (System.exit (0) := no error, System.exit (i); // i != 0, i := an errorcode).