Closed Thread
Results 1 to 2 of 2

Thread: Unix Signals - Trap

  1. #1
    kbjradmin's Avatar
    kbjradmin is offline x10 Elder kbjradmin is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Washington State, USA
    Posts
    512

    Unix Signals - Trap

    I am writing a lock script for unix, and don't want people to be able to simply ctrl-c out of it or using a different combination, so I am trying to trap all of the common exit/quit/abort/etc. signals. However, for some reason, I can't seem to trap the ctrl-d signal.

    this is the trap command i am using:
    Code:
    trap "" 0 1 2 3 9 15 CHLD STOP TSTP EXIT
    please help.
    Edit:
    nevermind, i figured out the problem.
    Last edited by kbjradmin; 01-18-2009 at 01:10 PM. Reason: Automerged Doublepost

  2. #2
    tittat's Avatar
    tittat is offline x10 Spammer tittat is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Kerala,India
    Posts
    2,479

    Re: Unix Signals - Trap

    Quote Originally Posted by kbjradmin View Post
    Edit:
    nevermind, i figured out the problem.
    Oh thats fine, i will close this thread then.
    PLAY ONLINE GAMES
    WWW.TMONDO.COM PlayFar Flash Games
    Former X10 Forum Senior Moderator(Retired)


Closed Thread

Similar Threads

  1. Unix Shell Password Check
    By kbjradmin in forum Programming Help
    Replies: 9
    Last Post: 01-24-2009, 11:11 AM
  2. Unix Shell Programming
    By kbjradmin in forum Programming Help
    Replies: 1
    Last Post: 01-13-2009, 12:45 PM
  3. Learn Unix using simulators
    By sunils in forum Tutorials
    Replies: 0
    Last Post: 04-16-2008, 11:10 AM
  4. Replies: 4
    Last Post: 09-05-2005, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers