Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to deactive ^C in shell 1

Status
Not open for further replies.

loloman

Technical User
Oct 30, 2002
16
0
0
FR
I create a login who execute a shell script in tne connexion (in .profile) and the session is killed (kill -9 0)
I want the login don't execute ^C when the shell is executing
What can i do ?
 
If I understand you correctly, you want to prevent users from using Ctrl-C to break out of a script. The /etc/profile (on Tru64 UNIX) is run for every user and has an example of using the trap command. For further information see the man pages (eg man ksh) or re-post here for some examples.

I hope that helps.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top