The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mac OS X 10.5, Boot Camp: Black screen when booting from Windows XP install CD on iMa iBot OS X Support RSS 0 10-13-2008 10:20 PM
MacBook: Vertical lines or solid gray, white, or black screen after updating to Mac O iBot OS X Support RSS 0 10-13-2008 10:20 PM
Mac OS X 10.5, Boot Camp: Black screen when booting from Windows XP install CD on iMa iBot OS X Support RSS 0 10-03-2008 04:40 AM
Black Screen SCO Real. 5 (intel platform) labcc SCO 4 05-09-2006 10:53 AM
TCP/IP Black Book happyfish IP Networking 3 10-28-2001 02:51 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-25-2009
c_d c_d is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 45
Get Black Screen for 10secs

I was thinking if there is a way that i can go about making my screen go black automatically for about 10seconds, (with a message like "take a break" printed on the screen) and after 10seconds everything comes back to normal....
is there any way that i can do this...???

to further clarify the question...

suppose now the time is 10:00am
i start my "take-a-break.sh" or "take-a-break.o"(yes, c program idea is also welcome) program...

at 10:10:00am the computer screen should go black(or Locked),with a message -"take a 10sec break"(optional) and at 10:10:10am the screen where i was working should come back(or UnLocked) automatically...

again at 10:20:10am the process would repeat , then again at 10:30:20am....and so on...

this is for my eyes...i keep forgetting the i should be taking 10sec break and see into a distance every 10mins for about 10secs to relax my eyes...(everyone else,working on a pc, should also do this...)

any ideas?
  #2 (permalink)  
Old 02-25-2009
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361
Quote:
Originally Posted by c_d View Post
I was thinking if there is a way that i can go about making my screen go black automatically for about 10seconds, (with a message like "take a break" printed on the screen) and after 10seconds everything comes back to normal....
is there any way that i can do this...???

Configure your screensaver to do it. It's not a scripting problem.
  #3 (permalink)  
Old 02-25-2009
c_d c_d is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 45
Quote:
Originally Posted by cfajohnson View Post

Configure your screensaver to do it. It's not a scripting problem.
well,yes,i could configure my screensaver to lock-up my screen every 10mins...but how would i be able to make the screensaver go away automatically after 10seconds?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0