Help with terminal

Discussion in 'macOS' started by wingnut8, Jun 11, 2008.

  1. wingnut8 macrumors 65816

    wingnut8

    Joined:
    Jun 8, 2007
    #1
    OK so I was looking at things to do in terminal and I typed the command to use the screen saver as a background, and when I try to go in and change my background I can't. How do I get it back to the way it was?
     
  2. pjrobertson macrumors 6502a

    Joined:
    Nov 14, 2007
  3. chocodup macrumors member

    chocodup

    Joined:
    May 17, 2008
    #3
    Hello,

    if you used the following command :
    Code:
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &
    Then, you have launched a process that is running in a background task (this is what "&" means). That is to say, even if you quit your terminal command, it will still be running.

    In order to get back to your former background, you have to kill that process.

    To identify the PUID of that process, execute :
    Code:
    ps | grep ScreenSaverEngine | grep -v grep | cut -d " " -f1
    This command will give you a number (the PUID) that identifies this process.

    Finally, you have to kill that process :
    Code:
    kill PUID
    where PUID is the number returned by the previous command.

    There it is ;)

    NOTA : if you restart your computer, this process shall not be launched again, so your former background should get back.
     

Share This Page