Sponsored Content
Top Forums Shell Programming and Scripting Need the difference between exit 1 & exit 7 Post 302803243 by fpmurphy on Monday 6th of May 2013 09:54:56 AM
Old 05-06-2013
The numbers are simply values that are being returned to the invoking process. What those particular numbers mean is implementation dependent except for 0 which means SUCCESS.
 

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

stderr & stdout to a file and the right exit code

Hi all, I need to redirect stdout and stderr to a file in a ksh shell. That's not a problem. But I need also the correct exit code for the executed command. In the example below I redirect correctly the stdout & stderr to a file, but I have the exit code of tee command and not for the mv... (2 Replies)
Discussion started by: up69
2 Replies

3. Programming

exit(0) versus exit(1)

What is the difference between using exit(0) and exit(1) to exit a program? Which should I use? (9 Replies)
Discussion started by: enuenu
9 Replies

4. UNIX for Dummies Questions & Answers

what is meaning of exit(0) and exit(1)

can u tell me what is the meaning of exit(0),exit(1),exit(2) what is diff amonng these. Amit (1 Reply)
Discussion started by: amitpansuria
1 Replies

5. Shell Programming and Scripting

difference b/t the exit codes $* and $@

I know that the exit codes in scripting "$*" will returns all the parameters/arguments passwd to the script. But I also know that "$@" will also returns the same. What is the difference between those two ? (1 Reply)
Discussion started by: praveen_b744
1 Replies

6. UNIX for Dummies Questions & Answers

What does it mean and how do I do it: exit 0 fi ??

I use a Mac and need to 'echo' a code in >> /etc/hosts Where is: /etc/hosts? And how do I do : exit 0 Does : 'fi' mean something too? :confused:Thanks for any help, Jacqrav:confused: (1 Reply)
Discussion started by: jacqrav
1 Replies

7. Programming

difference between exit() and _exit()

By using exit() and _exit() we can terminate a program. What is the:confused: difference between these two ??? (4 Replies)
Discussion started by: lipun4u
4 Replies

8. UNIX for Dummies Questions & Answers

Handling return & exit statements

I have 2 shell scripts the primary one would load the other one which will have functions defined in it. Script 1: . /apps/bin/Script 2 function if then continue... .... fi Script 2: function() (10 Replies)
Discussion started by: Ariean
10 Replies

9. Shell Programming and Scripting

LINUX - How to compare the values in 2 files & exit from the script

Hi All, I have a requirement where I need to compare 2 files & if the values in the files match, it should proceed, else exit the script without proceeding further. For e.g : Scenario 1 In this case, the script should exit without proceeding further. Scenario 2 In this case, the script... (7 Replies)
Discussion started by: dsfreddie
7 Replies

10. Shell Programming and Scripting

Difference between exit, bye and quit in sftp

Hi All, I would like to know whether is there any difference in closing the sftp connection with exit, bye and quit. And would like to know the reliable command. (3 Replies)
Discussion started by: Girish19
3 Replies
binary2ascii(1) 					      General Commands Manual						   binary2ascii(1)

NAME
binary2ascii - Convert binary numbers to textual representation SYNOPSIS
binary2ascii [flags] DESCRIPTION
binary2ascii reads input consisting of binary numbers and converts them to their textual representation. Command line flags specify the type and size of the binary numbers and provide control over the format of the output. Unsigned integers may be written out in binary, octal, decimal, or hexadecimal. Signed integers may be written out only in binary or decimal. Floating point numbers may be written out only in decimal, either in standard or scientific notation. (If you want to examine the binary representation of floating point numbers, just treat the input as a sequence of unsigned characters.) COMMAND LINE FLAGS
Long options may not be available on some systems. -b,--base <base> Base for integer conversions: b(binary),d(ecimal), h(exadecimal), o(ctal), or 2,8,10, or 16. -d,--delimit Delimit the output as per the locale. This is the default on systems in which printf(3) supports delimitation. If delimitation is not enabled, floating point numbers will have a decimal point and no separation of groups, integers no delimiters at all. With this option, the decimal separator will be chosen according to the locale (which, for example, may make it a comma), and non-fractional digits will be grouped and separated according to the rules for the locale in force. For American English, this means groups of three digits separated by commas, whereas for German in Germany it means groups of three digits separated by periods. -D,--do-not-delimit Do not delimit the output as per the -d option. -e,--exponential Use exponential (scientific) notation. -h,--help print help message -l,--linefeed add a linefeed after every 0x0A value if the size is char, short, int, or long, that is, the sizes that might represent a character. -L,locale <locale> Set the LC_NUMERIC facet of the locale to <locale>. -n,--number <number> number of items to print per line. -o,--offset <offset> byte offset at which to start. -p,--precision <precision> the precision to use when printing floating point numbers. -s,--sizes print sizes of types on current machine and related information -t,--type <type> set type and size of input -x,--no-hex-mark do not mark hexadecimal output with the prefix 0x. -V,--verbose be verbose. -v,--version print version information. -w,--width minimum field width. -X,--explain-exit-codes print a summary of the exit status codes. -z,--zero-pad-integers zero pad on left. -Z,--do-not-zero-pad-integers do not zero pad on left INPUT TYPES
The following are the possible input types. Note that some types may not be available on some machines. d double f float q long double sc signed char ss signed short si signed int sl signed long sq signed long long uc unsigned char us unsigned short ui unsigned int ul unsigned long uq unsigned long long EXIT STATUS
The following values are returned on exit: 0 SUCCESS The input was successfully converted. 1 INFO The user requested information such as the version number or usage synopsis and this has been provided. 2 SYSTEM ERROR An error resulted from a failure of the operating system such as an i/o error or inability to allocate storage. 3 COMMAND LINE ERROR The program was called with invalid or inconsistent command line flags. 5 INPUT ERROR This means that the input was ill-formed, that is that it could not be interpreted as a number of the required type. For example, if the input is 0x2A and a decimal value is called for, an INPUT ERROR will be returned since 0x2A is not a valid representation of a decimal integer. AUTHOR
Bill Poser (billposer@alum.mit.edu) LICENSE
GNU General Public License, version 3 SEE ALSO
ascii2binary(1) July, 2010 binary2ascii(1)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy