Sponsored Content
Top Forums Shell Programming and Scripting How to exit from shell script if above condition fails? Post 302862457 by Scott on Thursday 10th of October 2013 07:59:26 PM
Old 10-10-2013
This is a perfectly good example of how perfectly badly a question can be asked. Did you really think your problem was somehow related to that variable? Did you somehow magically expect us to work out it might have been an NFS problem?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

why shell script fails

hi .. I have automate some process on unix through sehll script . but i don't know there is some problem in scripts, some time shell script works and some time it fails. so my query is that "Why shell script fails some times?" thanks (4 Replies)
Discussion started by: tahir23
4 Replies

2. Shell Programming and Scripting

why shell script fails?

hi , i m trying to run a shell script automatically , some time it works fine but some time it fails , what could be the problem . If anybody have an idea about this problem then reply . Thanks in advacne (4 Replies)
Discussion started by: tahir23
4 Replies

3. Shell Programming and Scripting

How to print error and exit if command fails?

Guys any tips on printing a certain error message to stderr and exiting should a command fail within a ksh script? I'm trying to null some output files. Touch isn't suitable as i need to null them. print "" > file isn't suitable as i need to check elsehere for if they are 0bytes or not. ... (5 Replies)
Discussion started by: lavascript
5 Replies

4. Shell Programming and Scripting

Exit for loop in a shell script if a condition is successfull

Hi All, I am stuch in a script where a for loop is running to execute some commands for some values. Now my problem is i have to have an if condition that if the first iteration is successful then it has to exit the for loop otherwise it has to continue normally. my code is this: for... (5 Replies)
Discussion started by: usha rao
5 Replies

5. Shell Programming and Scripting

Stop execution of script if some condition fails

After my if condtion give rusult true then script should stop execution. Please advice...Thnaks in advance (1 Reply)
Discussion started by: vivek1489
1 Replies

6. UNIX for Dummies Questions & Answers

If condition fails, advise using wildcard

OS Environment: HP-UX B.11.31 U ia64 I am using the shell script code to connect to Oracle RAC database. Passing the parameter of cluster database name. typeset -l DB_ID=$1 + typeset -l DB_ID=sivDB #---- 3. SetDB validation ------------- if ; then print... (3 Replies)
Discussion started by: Siva SQL
3 Replies

7. Shell Programming and Scripting

If condition return 0 even when it fails to satisfy te condition

HI My doubt may be basic one but I need to get it clarified.. When i use "if" condition that checks for many AND, OR logical conditions like if ]; then return 0 fi Even the if condition fails it returns as zero.. Any clue.. But if i add else condition like if ]; ... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies

8. Shell Programming and Scripting

Make expect exit the UNIX script in erreneous condition

Hi, I am writing a menu driven program using shell script. THe script will be collecting data by logging into the other servers and bringing back the data to home server to process it and accordingly issue commands. TO automate commands execution , I am using expect script. However I am not able... (5 Replies)
Discussion started by: ashima jain
5 Replies

9. UNIX for Beginners Questions & Answers

Linux shell | how to exit a script if any command fails.

Hi, i am new here let me say HI for all. now i have a question please: i am sending one command to my machine to create 3 names. if one of the names exists then the box return error message that already have the name but will continue to create the rests. How i can break the command and... (7 Replies)
Discussion started by: Amiri
7 Replies

10. Shell Programming and Scripting

If condition fails for special charecter

I have a sample server name listed in variable as below: var="server-13" I need to check if the 7th character on $var is number 1 whichenv=`echo "$var"| head -c 7 | tail -c 1` if ]; then echo "9 found" else echo "9 Not Found" fi Output: This works... (3 Replies)
Discussion started by: mohtashims
3 Replies
roar_vs_position(3)					   RoarAudio Programmer's Manual				       roar_vs_position(3)

NAME
roar_vs_position, roar_vs_latency, roar_vs_latency2 - Get stream position information SYNOPSIS
#include <roaraudio.h> ssize_t roar_vs_position(roar_vs_t * vss, int backend, int * error); roar_mus_t roar_vs_latency(roar_vs_t * vss, int backend, int * error); roar_mus_t roar_vs_latency2(roar_vs_t * vss, int backend, int wait, int * error); DESCRIPTION
roar_vs_position() returns the current server site position of the stream plus the current offset for the selected backend. roar_vs_latency() returns the latency between the client site stream position and the server site position plus the latency by the backend. Use of roar_vs_latency() is not recommended as it requires the codec to use a true constant bit rate. roar_vs_latency2() is perfectly equivalent to roar_vs_latency() expect that it takes the additional parameter wait. The wait parameter may have the values ROAR_VS_WAIT, ROAR_VS_NOWAIT and ROAR_VS_ASYNC. If it is ROAR_VS_WAIT the function does the same as roar_vs_latency(). If the parameter is ROAR_VS_NOWAIT roar_vs_latency2() will return interpolated data based on old data collected by calls to roar_vs_latency(), roar_vs_latency2() or roar_vs_position(). ROAR_VS_ASYNC is used to trigger asyncron updates to this internal state. Asyncron operations need to be enabled before they can be used. See roar_vs_ctl(3). Calling these functions too often will result in bad performance and incorrect data (pool interval smaller than server response time). Polling up to 20 times per second shoudn't be a problem. PARAMETERS
vss The VS object to be used. backend The backend used for correction. This can be a stream ID of the stream to use as backend or one of the special values defined by the constants ROAR_VS_BACKEND_*. ROAR_VS_BACKEND_NONE is used to ask for no correction. ROAR_VS_BACKEND_DEFAULT is used to ask for the default correction. This should be used in all common cases. ROAR_VS_BACKEND_FIRST is used to ask for correction based on the first primary stream on the same mixer. wait Tells the API if the call should wait or not. Must be ROAR_VS_WAIT, ROAR_VS_NOWAIT or ROAR_VS_ASYNC. error This is a pointer to a integer used to store the error value in case of error. This can be NULL if not used but it is very recom- mended to use this error value to report good error messages to the user. RETURN VALUE
roar_vs_position() returns the stream position on success and -1 on error. Stream position is the current position of the stream in units of samples (not frames!). roar_vs_latency() returns the stream latency on success and zero on error. However zero is a valid value. In case of error error is set to the error. In case of no error but zero latency error is cleared (set to ROAR_ERROR_NONE). Latency is retruned in mu-seconds (1/10^-6s). EXAMPLES
FIXME SEE ALSO
roarvs(7), libroar(7), RoarAudio(7). RoarAudio June 2011 roar_vs_position(3)
All times are GMT -4. The time now is 05:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy