Sponsored Content
Full Discussion: Checking Exit Status
Top Forums Shell Programming and Scripting Checking Exit Status Post 87055 by PrimeRibAndADew on Wednesday 19th of October 2005 03:01:55 PM
Old 10-19-2005
That's it. Thanks for the help.

Mike
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

exit status

i downloaded a text file from metalab.unc.edu called sh.txt and in this reference manual it refers to shell scripting exit status .. at the end of one of the examples that author gave an exit status of 127.. to what does a 127 exit status refer too and what is its purpose in the code. moxxx68 (1 Reply)
Discussion started by: moxxx68
1 Replies

2. Shell Programming and Scripting

Problem with exit status

Hi, Consider the output of the following commands: case1) ------- # ifconfig -a | grep "UP" | grep uplink0:1 # echo $? Output is: 0 case2 ------ # ifconfig -a | grep "UP" | grep uplink0:1; echo $? Output is: 1 In case2 we got the exit code as 1, which is the actual exit code.... (1 Reply)
Discussion started by: diganta
1 Replies

3. Shell Programming and Scripting

checking exit status of a shell script

Hi, I have tried with the following code; if ;then echo "Failure." else echo "Success." fi to test the exit status of the test.ksh shell script. But whatever is the exit status of the test.ksh shell script Failure. is always printed. Please help. regards, Dipankar. (2 Replies)
Discussion started by: kdipankar
2 Replies

4. HP-UX

Return of EXIT status ( $? )

I have the question: How return the exit code from then assign : VAR=$(command ) for ex. VAR=$(ls ....) VAREXIT=$? echo $VAREXIT VAREXIT is equal to 0 if the directory exist or not exist. WHI?? if i execute the command direct from line-command , the value of $? is different if... (1 Reply)
Discussion started by: ZINGARO
1 Replies

5. Shell Programming and Scripting

How to get the exit status

Hi all, I'm running a program which return 1 upon success. But when encounters problem shell return 's '1' . How to differentiate between them the shell return value and script return value. Ex. function fn return '1' if executed successfully and '0' if failed. But when if shell encounters... (1 Reply)
Discussion started by: yhacks
1 Replies

6. Shell Programming and Scripting

Exit status

I'm preparing for exam and one of exams is to write own test command... I wonder if in unix is a command which just returns exit code you specify.. I know I can easily write a function like this: exStatus() { return $1 } -> my question is rather theoretical thank you! (9 Replies)
Discussion started by: MartyIX
9 Replies

7. Shell Programming and Scripting

Exit status of grep

I am trying to get the exit status of grep and test a condition with it, But it does not seem to be working as expected since i am doing something wrong apparently as per grep help Exit status is 0 if match, 1 if no match, and 2 if trouble. My problem is something like this templine - a... (7 Replies)
Discussion started by: prasbala
7 Replies

8. UNIX for Dummies Questions & Answers

service exit status

what are the number for the exit status for command service and what does every number mean. (2 Replies)
Discussion started by: programAngel
2 Replies

9. Shell Programming and Scripting

Exit Status

I have a shell script (#!/bin/sh) that interacts with Appworx and Banner Admin. In my script I want to check the exit status of awrun before continuing. awrun can run for 10 seconds or it can run for over a minute. So my question is, will it go through my if statement before awrun may even be... (2 Replies)
Discussion started by: smkremer
2 Replies

10. Shell Programming and Scripting

Want to get the exit status

Hi All, I am trying to create a zip file with all the txt files(these are in large number) in the current directory. I am able to do this operation sucessfully. After this i want to get the status of the tar command executed and do accordingly. When i am trying with the below code, the status... (3 Replies)
Discussion started by: paddu
3 Replies
Bio::Tools::RandomDistFunctions(3pm)			User Contributed Perl Documentation		      Bio::Tools::RandomDistFunctions(3pm)

NAME
Bio::Tools::RandomDistFunctions - A set of routines useful for generating random data in different distributions SYNOPSIS
use Bio::Tools::RandomDistFunctions; my $dist = Bio::Tools::RandomDistFunctions->new(); for my $v ( 1..1000 ) { my $birth_dist = $dist->rand_birth_distribution($lambda); # ... do something with the variable } DESCRIPTION
Most of the code is based on the C implementation of these routines in Mike Sanderson's r8s's package. See http://loco.biosci.arizona.edu/r8s/ for information on his software. This code tries to be fast and use available faster BigInt and GMP library methods when those modules are available. FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR - Jason Stajich Email jason-at-bioperl.org CONTRIBUTORS
Thanks to Mike Sanderson for assistance in the getting this implementation together. APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ birth_distribution Title : rand_birth_distribution Usage : my $randvar = $dist-> rand_birth_distribution($lambda); Function: Returns a random number from a birth process waiting time with a fixed interval 1.0. Times are measured from 0=present,1=root; Returns : floating point number Args : $lambda ( > 0 ) References : This is based on code by Mike Sanders in r8s. Ross, Stochastic Processes, p. 145 for the density rand_geometric_distribution Title : rand_geometric_distribution Usage : my $randvar = $dist->rand_geometric_distribution($param); Function: Returns a random geometric variate distributed with parameter $param, according to c.d.f. 1 - ( 1- param) ^ n Returns : integer Args : $param ( 0 > $param < 1 ) rand_exponentional_distribution Title : rand_exponentional_distribution Usage : my $var = $dist->rand_exponentional_distribution($param); Function: Returns a random exponential variate distributed with parameter $param, according to c.d.f 1 - e^(-param * x) Returns : floating point number Args : $param ( > 0 ) rand_normal_distribution Title : rand_normal_distribution Usage : my $var = $dist->rand_normal_distribution() Function: Returns a random normal (gaussian) variate distributed Returns : floating point number Args : none perl v5.14.2 2012-03-02 Bio::Tools::RandomDistFunctions(3pm)
All times are GMT -4. The time now is 10:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy