LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-05-2010, 08:52 AM   #1
florenceit
LQ Newbie
 
Registered: Jul 2010
Location: MA
Distribution: was buggy ubuntu 10.04 LTS, now happy with MINT
Posts: 14

Rep: Reputation: 0
start and stop xscreensaver from cronjob


Hi there. Im running ubuntu 10.04 lts. Ive been struggling with automating a screensaver to come on and off at shceduled times. all is working fine except I cannot seem to get xscreensaver to start from cron. when i run it manually i need to use:
xscreensaver & and then hit enter.

I'm not sure whats happening as i only get the line that it ran in my logs but no error.

i am using xset to turn the display power on and off, then xscreensaver-command -activate and deactivate, after loading the xscreensaver daemon. everything automated works fine except starting xscreensaver daemon. if i run the same commands manually it works fine.

any ideas what i might be missing?


thank you!
Matt
if i leave the xscreensaver daemon running and shutoff display with xset it will come on again unless i kill xscreensaver.


fyi what im trying to do: my linux file/web/music server is on a tablet netbook and i flipped the screen around and am trying to also use it as a digital picture frame. which works fine, i just dnt want to run it needlessly 24/7

Last edited by florenceit; 09-05-2010 at 08:52 AM. Reason: forgot to add thanks ;)
 
Old 09-05-2010, 11:05 PM   #2
florenceit
LQ Newbie
 
Registered: Jul 2010
Location: MA
Distribution: was buggy ubuntu 10.04 LTS, now happy with MINT
Posts: 14

Original Poster
Rep: Reputation: 0
Think i found the issue: i need to run xscreensaver daemon as a user other than root in cron .... (gives error and wont start as user root). security i guess thanks anyways!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i stop xscreensaver from automatically starting. deathalele Linux - Software 3 01-10-2010 05:19 AM
AWK- processing data inside start/stop pairs but ignoring start/stop lines cliffoij Programming 2 10-15-2008 06:17 AM
mplayer cannot stop xscreensaver lnthai2002 Linux - Software 1 08-01-2006 09:31 PM
script for apps. that don't stop xscreensaver Tuttle Linux - Software 5 11-29-2004 02:17 PM
xscreensaver: how do I stop it from starting PionexUser Linux - General 9 09-14-2003 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration