Linux.com

masjoko

masjoko

  • Linux.com Member
  • Posts: 2
  • Member Since: 14 May 09
  • Last Logged In: 13 May 11

Latest Posts

Posted by
Topic
Post Preview
Posted
  • masjoko
    RE: Anyone Know Howto Create a KeepAlive Script?
    There are several way of fulfilling your requirement. First, your script can make use of pidof to check the pid of the command you wish to monitor. If the pid is empty, there is a possibility of the process is dead, so you run the software again. Now, the problem is that the software is running on an X environment and the process is owned by the currently logged user. So, when you run the software again, you need to know what user privilege you are going to run the software and the display environment. I hope my answer could give some enlightenment. Regards, Joko
    Link to this post 14 May 09

    There are several way of fulfilling your requirement. First, your script can make use of pidof to check the pid of the command you wish to monitor. If the pid is empty, there is a possibility of the process is dead, so you run the software again.

    Now, the problem is that the software is running on an X environment and the process is owned by the currently logged user. So, when you run the software again, you need to know what user privilege you are going to run the software and the display environment.

    I hope my answer could give some enlightenment.

    Regards,

    Joko

  • masjoko
    RE: Linux command to display files in multiple pages a
    Probably you can use "tree" if you want to list files recursively. tree . | less
    Link to this post 14 May 09

    Probably you can use "tree" if you want to list files recursively.

    tree . | less

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board