LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2005, 12:38 PM   #1
paraiso
Member
 
Registered: Apr 2005
Distribution: Fedora Core 4
Posts: 88

Rep: Reputation: 15
Question lock screen


Hi!

I am trying to write a shell script which after receiving a first signal the screen would be locked and then on reception of the second signal the screen would be unlocked. Do I need 2 functions to do the job ? Should I look for the second signal from a while loop or from the unlock function ? I am lost

Code:
trap "lock" 1 2 3 15
Code:
trap "unlock" 1 2 3 15

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't lock screen colpaarm Linux - Software 5 05-28-2007 02:14 AM
Screen Lock up when enabling full screen in VLC unux82 Linux - Software 0 07-20-2005 03:01 AM
Screen lock changes screen resolution ohzo Linux - Laptop and Netbook 0 06-23-2004 11:13 AM
screen lock killi Linux - Software 1 05-14-2003 07:01 PM
lock screen nautilus_1987 Linux - Software 1 09-23-2002 08:53 PM


All times are GMT -5. The time now is 08:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration