#? 0,1,2,,,,,,,125 ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting #? 0,1,2,,,,,,,125 ?
# 1  
Old 09-19-2007
Question #? 0,1,2,,,,,,,125 ?

The return value of the #? returns status of the executed command, i.e If it is 0 then SUCCESS, If it is non-zero value the it means FAILURE.

My doubt is how does the return status defined?

1,2,3,,,,,125.

Exp: if it returns 125,, how does it relates to failure?
# 2  
Old 09-19-2007
The return code depends on the command last run

See man page for Exit Status description of the comman you use


for example see the man page for xargs

Exit Status This command returns the following exit values:
0 All invocations of the Command parameter returned exit status 0.
1-125 A command line meeting the specified requirements could not be assembled, one or more of the invocations of the Command parameter returned a non-zero exit status, or some other error occurred.
126 Command was found but could not be invoked.
127 Command could not be found.
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Bind() with SO_BINDTODEVICE returns errno 125

I am setting the socket option SO_BINDTODEVICE for eth0 to be able to route the packets only through that interface. However, bind() fails with "Port already in use" error with this option when the server is restarted despite having the socket option SO_REUSEADDR. Here is my code snippet: ... (0 Replies)
Discussion started by: deepti0719
0 Replies

2. Web Development

Getting access of my project kept in one 121.12.12.125 node

sir.. i am working in a WAN...... i am getting the login screen for an application by typing the address of the location and the file name "http:/121.12.12.111/xyz.html" from the node 121.12.12.125. now i had my web applicatioon at 121.12.12.125 for which i have taken the source code of the... (0 Replies)
Discussion started by: KANNI786
0 Replies
Login or Register to Ask a Question