Help with terminal

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

  1. wingnut8 macrumors 65816


    Jun 8, 2007
    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

    Nov 14, 2007
  3. chocodup macrumors member


    May 17, 2008

    if you used the following command :
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ -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 :
    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 :
    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