Find the answer to your Linux question:
Results 1 to 2 of 2
Lately sometimes metacity dosn't get startet. I've to open a terminal to start it manually. Is there a way to create a script which checks if metacity got started and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Amnon82's Avatar
    Join Date
    Apr 2007
    Posts
    3

    How to check if metacity is running?


    Lately sometimes metacity dosn't get startet. I've to open a terminal to start it manually. Is there a way to create a script which checks if metacity got started and if not the script will do it for me?

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    477
    provided X is already started, but no other window
    manager is running, try this:

    if ! `ps -a | grep -s metacity`
    then exec metacity
    fi
    the sun is new every day (heraclitus)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •