[Ilugc] How to run a script on the event of another process getting killed

  • From: goda.abishek@xxxxxxxxx (Abishek Goda)
  • Date: Fri Jan 29 22:33:49 2010

Well,

#!/bin/bash

app
app2
<script ends>


Doing so, wont that just start 'app2' sequentially after 'app', not
considering the status of 'app' being killed( or still running). ???

But, I need to start 'app2' only after 'app' being killed.

I think the script will come to the next line only upon exiting the
first. Unless of course, you backgrounded the job or nohuped it.

Abishek

Other related posts: