Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with trap in terminal locking pgm Post 302322692 by anusha.n on Thursday 4th of June 2009 10:46:02 AM
Old 06-04-2009
clrl+d problem

thanks... it doesnt terminate when i enter <ctrl>+<z> ... but when i enter <ctrl>+<d> it terminates with this msg
"[: 21: !=: argument expected"
so which number should i add for trp so that it doesnt come out when i enter ctrl+d...??

Code:
anusha@anusha-desktop:~$ sh 7a.sh

Enter the password:
Retypr password
















The terminal is locked


Enter password to unlock:
[: 21: !=: argument expected

anusha@anusha-desktop:~$

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Prompt User for Pgm Output Destination

SCO Open Server 5 A program that I am working with outputs data to a system or printer with the traditional output > lp This output line along with some other job output formatting information is stored as a defined output within the program so that the average user scrolls the list of... (0 Replies)
Discussion started by: termite
0 Replies

2. Shell Programming and Scripting

Building a better mouse trap, or How many lines of code does it take to trap a mouse?

Hello all, I'm hoping to get a little insight from some of the wily veterans amongst you. I've written a script to check for new outgoing files to our vendors located on our ssl server. It seems to be working ok, but the final question here, will be one of logic, and/or a better way to... (4 Replies)
Discussion started by: mph
4 Replies

3. Programming

Pgm Output is Interleaved with other pgms

Hi I have a shared object which is called from a third party tool. In my .so, I am using 'freopen(mylogfilename,"at",stderr)'. It is logging all my program output and it is also writing warning messages from the third party daemons also. How can I avoid these unwanted messages... (1 Reply)
Discussion started by: axes
1 Replies

4. UNIX for Dummies Questions & Answers

Which pgm write into a file ?

Hi! I'm looking for a command/script to be able to get the program who write into a file. I've a logfile who grow up but I don't find which program write on it :eek: thanks for your support&help. .fr. (2 Replies)
Discussion started by: Franzlebord
2 Replies

5. Shell Programming and Scripting

Cntl+z Trap is not detecting ??? Help required to add a trap detection ???

Hi folks, I have tried to add some trap detection in the below script....this script is used to monitor database activities...in a rather awkward way :rolleyes:.... The idea behind adding trap is that....this script creates lots of temporary files in the running folder to store the count... (1 Reply)
Discussion started by: frozensmilz
1 Replies

6. UNIX for Advanced & Expert Users

how to check port already used in pcap pgm

hi, I am writing one packet receiving program using libpcap library. Now, I want to check port is already using or not. how to check in receiver program.. If normal program,using bind return value we can able to check the port is already using or not. but, in pcap program how can i... (1 Reply)
Discussion started by: ram.sj
1 Replies

7. Programming

File operations in C pgm

i am reading and writing to a a file in C language. the input file is described as follows 111 aaa descr1 222 bbb descr2 333 ccc <SPACE> {6 spaces are left after ccc i.e in 3rd column} 444 ddd descr4 when i read and write to a file, the space is not coming in the output file.... (8 Replies)
Discussion started by: vkca
8 Replies

8. Homework & Coursework Questions

VM trap may work differently than a pure install trap.

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: That is the last reply I received from my instructor, and I'm looking for some alternatives. When using... (2 Replies)
Discussion started by: newuser45
2 Replies

9. Shell Programming and Scripting

Simpler crontab entry to execute pgm on last day of the month

The following bash command line works for the last day of the month. Test by replacing the 1 with tomorrows day of month number && echo "Day before tomorrow"Can it be used within crontab? As * * 28-31 * * && echo "Today ls last day of month" >>/tmp/crontabtestI tried to test crontab with... (1 Reply)
Discussion started by: lsatenstein
1 Replies

10. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies
GPT-INSTALL(8)						User Contributed Perl Documentation					    GPT-INSTALL(8)

NAME
gpt-install - Installs GPT packages. SYNOPSIS
gpt-install [options] [packages or bundles] Options: -verbose Print copious output -help Print usage -man Print man page. -version Print GPT version. -force Replace package no matter what. -loose Replace a broader range of packages. -installdir=PATH Override $GLOBUS_LOCATION. -tmpdir=PATH Path to tmp disk space [packages or bundles] List of binary packages and bundles to install. DESCRIPTION
gpt-install takes a GPT described package or bundle and installs it. The program can install either RPM's or GPT packages. OPTIONS
-force forces all action to be taken, regardless of state. -tmpdir Place to unpack bundles. -installdir Directory to which files shall be written. Default is $GLOBUS_LOCATION -loose pgm packages can replace a pgm_static package (and vice versa) or a pgm package with a different flavor. -help Print a brief help message and exits. -man Prints the manual page and exits. -version Prints the version of GPT and exits. EXAMPLES
For the command: gpt-install foo-2.1-gcc32-pgm.tar.gz foo-1.1-gcc32-pgm will be replaced. foo-2.2-gcc32-pgm will B<not> be replaced. It is newer. foo-1.1-vendorcc32-pgm will B<not> be replaced. Wrong flavor. foo-1.1-gcc32-pgm_static will B<not> be replaced. Wrong package type foo-2.2-gcc32-pgm_static will B<not> be replaced. Wrong package type For the command: gpt-install -force foo-2.1-gcc32-pgm.tar.gz foo-1.1-gcc32-pgm will be replaced. foo-2.2-gcc32-pgm will be replaced. foo-1.1-vendorcc32-pgm will B<not> be replaced. Wrong flavor foo-1.1-gcc32-pgm_static will B<not> be replaced. Wrong package type foo-2.2-gcc32-pgm_static will B<not> be replaced. Wrong package type For the command: gpt-install -loose foo-2.1-gcc32-pgm.tar.gz foo-1.1-gcc32-pgm will be replaced. foo-2.2-gcc32-pgm will B<not> be replaced. It is newer. foo-1.1-vendorcc32-pgm will be replaced. foo-1.1-gcc32-pgm_static will be replaced. foo-2.2-gcc32-pgm_static will B<not> be replaced. It is newer. For the command: gpt-install -force -loose foo-2.1-gcc32-pgm.tar.gz foo-1.1-gcc32-pgm will be replaced. foo-2.2-gcc32-pgm will be replaced. foo-1.1-vendorcc32-pgm will be replaced. foo-1.1-gcc32-pgm_static will be replaced. foo-2.2-gcc32-pgm_static will be replaced. BUGS
gpt-install currently does not honor static build numbers. Instead it will replace any pgm_static package that is the same version or older. For example: gpt-install -force foo-2.1-2-gcc32-pgm_static.tar.gz foo-1.1-5-gcc32-pgm_static will be replaced. foo-2.1-1-gcc32-pgm_static will be replaced. foo-2.1-5-gcc32-pgm_static will be replaced. foo-2.2-1-gcc32-pgm_static will not be replaced. foo-2.1-gcc32-pgm will not be replaced. SEE ALSO
gpt-uninstall(1) gpt-query(1) gpt-verify(1) AUTHOR
Michael Bletzinger <mbletzin.ncsa.uiuc.edu> and Eric Blau <eblau.ncsa.uiuc.edu> perl v5.14.2 2012-04-30 GPT-INSTALL(8)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy