Sponsored Content
Top Forums Shell Programming and Scripting Custom exit message according to flag Post 303045139 by sea on Thursday 12th of March 2020 01:42:48 PM
Old 03-12-2020
Id like to see the code for the commented line, because the code would be shorter.

Other than that sounds more lile homework to me.
Is it?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where can I find a list of exit codes? (Exit code 64)

I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies

2. Shell Programming and Scripting

cant get the right exit message

#!/bin/ksh application task run command //returns 0 if successful if ; then echo "Ran Fine" else echo "Didnt run" fi When I run the script, here is the output Status code = 0 ksh: [0: not found. Job didnt run any suggestions? (4 Replies)
Discussion started by: bryan
4 Replies

3. Programming

How to limit max no of message in a posix message queue

Hii can anyone pls tell how to limit the max no of message in a posix message queue. I have made changes in proc/sys/fs/mqueue/msg_max But still whenever i try to read the value of max. message in the queue using attr.mq_curmsgs (where struct mq_attr attr) its giving the default value as 10.... (0 Replies)
Discussion started by: mohit3884
0 Replies

4. AIX

du flag -x

Hi, I would like to know if there's any option to use with the du command so that I can list only the files/directories on the current filesystem... I usually use du -gs *But I'd like to see only the directories in the filesystem I am on, and not the mount point directory of other fss... ... (6 Replies)
Discussion started by: Casey
6 Replies

5. Shell Programming and Scripting

Printing all lines before a specific string and a custom message 2 lines after

Hello all, I need to print all the lines before a specific string and print a custom message 2 lines after that. So far I have managed to print everything up the string, inclusively, but I can't figure out how to print the 2 lines after that and the custom message. My code thus far is:... (4 Replies)
Discussion started by: SEinT
4 Replies

6. UNIX for Dummies Questions & Answers

'h' flag in du

Hey, all! Why is the "human readable" flag changing the behavior of du? And while I'm at it, can you make du only look at files, not directories. I often find myself wanting to find the largest file(s) in a dir or vol. Using 'find' itself, it seems you have to at least be able to guess the size of... (2 Replies)
Discussion started by: sudon't
2 Replies

7. Shell Programming and Scripting

Need the difference between exit 1 & exit 7

Hi In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3 Replies

8. UNIX for Dummies Questions & Answers

Get the id with specify flag

.... means multi line ddd,bug fgdrg dfdfsdfdfsd fsdfdfdfd fdfdsfdsfsd ....... flag2 ...... aaa,bug sfsfsfsfs dfdfsdfdfsd fsdfdfdfd fdfdsfdsfsd ...... flag1 ...... ddd,bug fgdrg dfdfsdfdfsd (9 Replies)
Discussion started by: yanglei_fage
9 Replies

9. Shell Programming and Scripting

awk to supress error message with custom text

After a bash function is run the below file is produced: out_name.txt tab-delimeted Input Errors and warnings AccNo Genesymbol Variant Reference Sequence Start Descr. Coding DNA Descr. Protein Descr. GeneSymbol Coding DNA Descr. GeneSymbol Protein Descr. Genomic... (3 Replies)
Discussion started by: cmccabe
3 Replies

10. IP Networking

Insmod custom module fails with message : disagrees about version of symbol ...

Hello : I want to make a netfilter conntrack module for myself. So I copy all the source code about netfilter conntrack from kernel source tree to my external directory. It can be insmod after compiled. Then I add some members to the struct nf_conn, and it 's compiled successfully. However, it... (1 Reply)
Discussion started by: 915086731
1 Replies
INFOCMP(1)						    BSD General Commands Manual 						INFOCMP(1)

NAME
infocmp -- compare or print compiled terminfo descriptions SYNOPSIS
infocmp [-1acnqux] [-A database] [-B database] [-w cols] [term ...] DESCRIPTION
The infocmp reconstructs the first available terminfo(5) definition found for term and prints the result in a terminfo(5) format. Capability types are grouped together and new types start new lines, first flags, then numbers, then strings. Capabilities are sorted by their name. If a second term is given then the capabilities are compared against each other. The following options are available: -1 Print one capability per line. -A database Use this database to load the first terminal definition. -B database Use this database to load subsequent terminal definitions. -a Include commented out capabilities. This only works if the database was compiled with the -a flag passed to tic(1). This also sets the -x flag as infocmp retains commented out capabilities as non standard. -c Print capabilities common to each definition. -n Print capabilities that do not exist in either definition. -q Make the comparison listing shorter by omitting subheadings and using - for absent capabilities, @ for canceled capabilities rather than NULL. -u Build a new terminal description for the first terminal description, using subsequent terminal descriptions. This also sets the -a flag. -w cols Limit the width to cols. -x Include non-standard capabilities. More -x only handles non-standard capabilities. This only works if the database was compiled with the -x flag passed to tic(1). ENVIRONMENT
COLUMNS Override columns returned by the output terminal. -w cols supersedes this. TERM infocmp uses the contents of the TERM environment variable if no terminal name is given on the command line. EXIT STATUS
The infocmp utility exits 0 on success, and >0 if an error occurs. SEE ALSO
tic(1), terminfo(5) STANDARDS
The infocmp utility outputs information that conforms to the X/Open Curses Issue 4, Version 2 (``XCURSES4.2'') standard. AUTHORS
Roy Marples <roy@NetBSD.org> BSD
February 5, 2010 BSD
All times are GMT -4. The time now is 12:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy