Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Remotely starting a screensaver
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Wing  
View profile  
 More options Oct 19 2012, 10:26 am
From: Michael Wing <marsfurrycreat...@gmail.com>
Date: Fri, 19 Oct 2012 09:26:54 -0500
Local: Fri, Oct 19 2012 10:26 am
Subject: Remotely starting a screensaver

This may be the wrong place to ask this question, but it doesn't hurt to
ask.  I'd like to remotely start a screensaver that is password protected.
 Essentially, locking the system from afar.

For instance, I can run this from a terminal on the system, and it works
great:

open -a /System/Library/Frameworks/ScreenSaver.framework//Versions/A/Resources/Scre enSaverEngine.app

However, if you run that from a remote SSH session, it ends up with
the screen locked and unresponsive until you've killed the
ScreenSaverEngine process.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Wing  
View profile  
 More options Oct 19 2012, 12:15 pm
From: Michael Wing <marsfurrycreat...@gmail.com>
Date: Fri, 19 Oct 2012 11:15:53 -0500
Local: Fri, Oct 19 2012 12:15 pm
Subject: Re: Remotely starting a screensaver

On Fri, Oct 19, 2012 at 9:26 AM, Michael Wing
<marsfurrycreat...@gmail.com>wrote:

> This may be the wrong place to ask this question, but it doesn't hurt to
> ask.  I'd like to remotely start a screensaver that is password protected.
>  Essentially, locking the system from afar.

> For instance, I can run this from a terminal on the system, and it works
> great:

> open -a /System/Library/Frameworks/ScreenSaver.framework//Versions/A/Resources/Scre enSaverEngine.app

> However, if you run that from a remote SSH session, it ends up with the screen locked and unresponsive until you've killed the ScreenSaverEngine process.

> I just figured out how to do this.  I created a plist entry that calls a

script every 5 seconds with launchd.  That script starts the screensaver if
the file exists.  The rest of the process involves me creating that flag
file with a remote SSH command.

Here's the plist:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

      <key>Label</key>

      <string>Launch_Screensaver</string>

      <key>ProgramArguments</key>

      <array>

            <string>/tmp/sswatch</string>

      </array>

      <key>StartInterval</key>

      <integer>5</integer>

</dict>

</plist>

Here's the script:

#!/bin/sh

if [ ! -e "/tmp/ssstart" ]; then exit; fi

/bin/rm -f /tmp/ssstart

set ssrunning=`/bin/ps -ax | /usr/bin/grep ScreenSaverEngine |
/usr/bin/grep -v grep`

if [ "${ssrunning}" != "" ]; then exit; fi

open -F -a
/System/Library/Frameworks/ScreenSaver.framework//Versions/A/Resources/Scre enSaverEngine.app


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »