Sponsored Content
Top Forums Shell Programming and Scripting Help with getting a Ctrl-C trap working w/ a piped tail -f... Post 302514149 by chatguy on Friday 15th of April 2011 01:08:38 AM
Old 04-15-2011
MySQL

DG,
Thank you so much! This works perfectly! Also thank you for the hint about using SIGINT instead of SIGERR. I changed this as well.

Thanks again for all the help,
CG
 

10 More Discussions You Might Find Interesting

1. AIX

Disable ctrl-c,ctrl-d,ctrl-d in ksh script

I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Discussion started by: wtofu
6 Replies

2. UNIX for Advanced & Expert Users

trap ctrl c in shell script

how to trap the ctrl c in unix shell script my script is running in while loop it should not be terminate with ctrl c. if i press ctrl c while running script it shloud ignore the same. please healp.......... thanks in advance (2 Replies)
Discussion started by: arvindng
2 Replies

3. UNIX for Dummies Questions & Answers

why tail +n not working?

Hello at my home when i try tail +5 emp it works but when i try in my college it doesn't work! what can be the problem any idea? when i type man tail it gives me various options in which it's mentioned that tail +n can also work when you want to display from nth line. But... (3 Replies)
Discussion started by: salman4u
3 Replies

4. Shell Programming and Scripting

Trap not working in orphaned child processes

I've search the various posts in these forums, but have not come up with a solution to my problem. I have a parent process that calls a child script, runs it in the background and the parent finishes - without waiting for the child process to complete. Inside the child, a trap is issued to trap... (6 Replies)
Discussion started by: HobieCoop
6 Replies

5. Shell Programming and Scripting

trap CTRL-C problem

I am trying to trap CTRL-C, now the program I call has it's own exit message, I think this is the problem .. This is what I have now : function dothis { echo 'you hit control-c' exit } function settrap { trap dothis SIGINT } settrap until false; do ./ITGRecv.exe doneDoing this I... (2 Replies)
Discussion started by: Pmarcoen
2 Replies

6. Shell Programming and Scripting

Trap CTRL-C and background process

Hello, I have a script which copies via scp several large files to a remote server. What I want is that even if someone hits CTRL-C, the scp commands continues till the end. Here is what I wrote #! /bin/bash function testFunction { echo "COPY START" scp large.tar.gz... (11 Replies)
Discussion started by: RobertFord
11 Replies

7. Shell Programming and Scripting

stopping tail function after ctrl + c

say i have a statement like this in a script tail -f /opt/blah/blha/user.log > final.log if ;then cat final.log | grep -i "servicer_user" > service.log cat final.log | grep -i "logic_user" > logic.log fi echo "script completed" but when the script is running if i press ctrl + c the... (4 Replies)
Discussion started by: vivek d r
4 Replies

8. Linux

ctrl+c not working

Hi All, I have ran one command tail -f <filename> to view newly appended text to that file. When i was done i pressed ctrl+c command to stop it but to my suprise it didn't work. I then tried top command and pressed ctrl+c and it worked fine and command aborted. I then just checked the tail... (0 Replies)
Discussion started by: tushar_shah06
0 Replies

9. Shell Programming and Scripting

Trap command not working

Hi Folks - For some reason, my trap command is not working. It's placed just prior to a normal exit: #:: ------------------------------------------------------------------------ #::-- Script Name: LCM_Backup.sh #:: #::-- Description: This script leverages Utility.sh to perform LCM... (16 Replies)
Discussion started by: SIMMS7400
16 Replies

10. Shell Programming and Scripting

--killing backround Procs spawned from the parent script with Ctrl+C trap

Hello: Am trying to understand why the method #2 works but method #1 does not. For both methods, sending CTRL+C should kill both the Parent script & all of the spanwd background procs. Method #1: ========================== #!/bin/sh ctrl_c() { echo "** Trapped CTRL-C" ... (3 Replies)
Discussion started by: gilgamesh
3 Replies
TPM(4)							   BSD Kernel Interfaces Manual 						    TPM(4)

NAME
tpm -- Trusted Platform Module SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device tpm Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): tpm_load="YES" In /boot/device.hints: hint.tpm.0.at="isa" hint.tpm.0.maddr="0xfed40000" hint.tpm.0.msize="0x5000" hint.tpm.1.at="isa" hint.tpm.1.maddr="0xfed40000" hint.tpm.1.msize="0x1000" DESCRIPTION
The tpm driver provides support for various trusted platform modules (TPM) that can store cryptographic keys. Supported modules: o Atmel 97SC3203 o Broadcom BCM0102 o Infineon IFX SLD 9630 TT 1.1 and IFX SLB 9635 TT 1.2 o Intel INTC0102 o Sinosun SNS SSX35 o STM ST19WP18 o Winbond WEC WPCT200 The driver can be configured to use an IRQ by providing a free ISA interrupt vector in /boot/device.hints. SEE ALSO
intro(4), device.hints(5), config(8) AUTHORS
The tpm driver was written by Michael Shalayeff and Hans-Joerg Hoexer. BSD
August 15, 2010 BSD
All times are GMT -4. The time now is 08:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy