The UNIX and Linux Forums  


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
Ignore events with syslogd DukeNuke2 SUN Solaris 1 05-08-2008 10:08 AM
Ignore diriectories within a script lodey Shell Programming and Scripting 9 11-07-2007 03:05 AM
How to ignore '.' files James_UK Shell Programming and Scripting 4 09-06-2007 01:22 AM
Ignore Case in Shell AAH Shell Programming and Scripting 3 03-21-2006 04:41 PM
How can I ignore only the lines which have # at the begining? csaha Shell Programming and Scripting 1 01-30-2006 03:35 AM

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 04-20-2003
myoeminn myoeminn is offline
Registered User
  
 

Join Date: Mar 2002
Location: Australia
Posts: 2
Question how to ignore control commands

hi,

while we writing shell script, i want to ignore interrupts likes - "control + C" or "control + \"
coz I just print out the message.

how can i do this?

thanks

min
  #2 (permalink)  
Old 04-20-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
myoeminn,

can you explain a little more about what you're trying to do? what shell do you use? what's the purpose of your script and why do you have to worry about interrupts?
  #3 (permalink)  
Old 04-20-2003
google's Avatar
google google is offline Forum Advisor  
Moderator
  
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
see 'man trap'

also search the forum for keywords such as signals, trap, INT, HUP KILL
  #4 (permalink)  
Old 04-21-2003
omran omran is offline
Registered User
  
 

Join Date: Jun 2002
Posts: 60
try this

echo " Cntrl + C "
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 01:20 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