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

  • From: dearsaravanan@xxxxxxxxx (Saravanan S)
  • Date: Fri Jan 29 21:03:05 2010

On Fri, Jan 29, 2010 at 8:31 PM, Abishek Goda <goda.abishek@xxxxxxxxx>wrote:

If I have to run 'app' and invoke 'app2' when 'app' exits

just create a app.sh that first calls app and have app2 after it. now,
remember not to background app. Its not the most brilliant thing to
do, but yes it probably can get you started.
<script>
#!/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.


Saravanan Sundaramoorthy
Red Hat Certified Engineer
+91 99404 32545

Other related posts: