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

  • From: goda.abishek@xxxxxxxxx (Abishek Goda)
  • Date: Fri Jan 29 20:32:02 2010

Hi,

Nice to see the response, but its ambiguous.
Can you please elaborate your idea?
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>

Now there are $ variables that can get you the pid etc, right?

Abishek

Other related posts: