Sponsored Content
Full Discussion: IF -a condition meaning.
Top Forums UNIX for Dummies Questions & Answers IF -a condition meaning. Post 302869513 by Yoda on Wednesday 30th of October 2013 12:20:48 PM
Old 10-30-2013
Quote:
Originally Posted by abhi_123
Thanks a lot Yoda for the help. Smilie
And what is the difference between -a and -f.
It says -f is for regular file and -a is it for any file. Am i correct.?
That is correct.

E.g. you can verify this by creating a named pipe (FIFO) using mkfifo:
Code:
$ mkfifo file.pipe
$ [ -a file.pipe ] && echo "True" || echo "False"
True
$ [ -f file.pipe ] && echo "True" || echo "False"
False

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

what is the meaning here?

#!/bin/sh $ORACLE_HOME/bin/sqlplus -S $orauserid/$orapasswd@$oradb << _TMP alter session set nls_date_format = 'YYYYMMDD HH24:MI'; set linesize 100 set pagesize 400 ok the above is part of a script..i just wanna know what does sqlplus -S means?? as in why we need to insert the -S behind? (2 Replies)
Discussion started by: forevercalz
2 Replies

2. AIX

meaning of ${0%${0##*/}}

. ${0%${0##*/}}Script_Name if i issue this command, it is executing the script. can any one tell what is the meaning of ${0%${0##*/}} (7 Replies)
Discussion started by: nyelavarthy
7 Replies

3. UNIX for Dummies Questions & Answers

Use and meaning of $*

Can someone explain the use and meaning of "$*" expression. (2 Replies)
Discussion started by: sinpeak
2 Replies

4. UNIX for Dummies Questions & Answers

what the meaning of #*

can some one please tell the meaning of the second statement i.e n=${m#*=} i couldnt get the meaning of the #*= 1.) m="mohit=/c/main/issue" echo $m result ----------- mohit=/c/main/issue 2.) n=${m#*=} echo $n RESULT ------- /c/main/issue (1 Reply)
Discussion started by: narang.mohit
1 Replies

5. Shell Programming and Scripting

meaning of !*

can someone please tell what !* means in shell syntax. Regards, (3 Replies)
Discussion started by: busyboy
3 Replies

6. HP-UX

Difference between [condition] and [[condition]] and ((condition)) when used with if condition

Executed the following if conditions .. and got different results . only (( )) gave correct o/p with all scenarios . Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition. And why each condition gave different result. 1.... (2 Replies)
Discussion started by: soumyabubun
2 Replies

7. UNIX for Dummies Questions & Answers

meaning of <<!

Hi all, I wanna know the meaning of the last word "<<! " sudo su - user <<! please help on this !!!! (1 Reply)
Discussion started by: sudharson
1 Replies

8. Shell Programming and Scripting

redirect stdout echo command in condition A run in condition B

hi, I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command Here are my simple script After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Discussion started by: jao_madn
3 Replies

9. 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

10. Shell Programming and Scripting

Meaning of $1^

Hello everyone, I'm looking for the meaning of this expression, as I don't understand it quite clearly : $1^ What do you think it could be? I thought either: - match lines starting with argument 1 but it should be ^$1 - turn line around : word becomes drow Thanks in advance for your... (4 Replies)
Discussion started by: bibelo
4 Replies
gss_inquire_context(3)					     Library Functions Manual					    gss_inquire_context(3)

NAME
gss_inquire_context() - obtain information about a security context SYNOPSIS
DESCRIPTION
The routine provides information about the security context to the calling application. The calling application must first have called the routine for a handle for the credential. Input Parameters context_handle A handle that refers to the security context. Output Parameters src_name The name of the context initiator. If the context was established using anonymous authentication, and if the appli- cation invoking is the context acceptor, an anonymous name will be returned. Specify NULL if not required. context_handle The name of the context acceptor. If the context acceptor did not authenticate itself, and if the initiator did not specify a target name in its call to the value will be returned. Specify NULL if not required. lifetime_rec Returns the number of seconds for which the credential will remain valid. If the credential expired, the parameter returns a 0 (zero). If there is no credential expiration, the parameter returns the value If an expiration time is not required, specify NULL. targ_name The name of the context acceptor. Storage associated with this name must be freed by the application after use with a call to mech_type The security mechanism providing the context. Specify NULL if not required ctx_flags Specifies independent flags, each of which requests that the context support a service option. The following sym- bolic names are provided to correspond to each flag. The symbolic names should be logically ORed to form a bit-mask value. The True/False values are: True Credentials were delegated to the context acceptor. False No credentials were delegated. The True/False values are: True The context acceptor has been asked to authenticate itself. False The context initiator has not been asked to authenticates itself. The True/False values are: True Replayed signed or sealed messages will be detected. False Replayed messages will not be detected. The True/False values are: True Out-of-sequence signed or sealed messages will be detected. False Out-of-sequence signed or sealed messages will not be detected. The True/False values are: True Request that confidentiality service be made available False No per-message confidentiality service is required. The True/False values are: True Request that integrity service be be made available False No per-message integrity service is required. The True/False values are: True Do not reveal the initiator's identity to the acceptor. False Authenticate normally. cred_usage Returns one of the following values describing how the application can use the credential: If no usage information is required, specify NULL. mechs returns a set of security mechanisms supported by the credential. Specify NULL if not required. minor_status Returns a status code from the security mechanism. STATUS CODES
The following status codes can be returned: The routine was completed successfully. The referenced context could not be accessed. The credentials were invalid. The routine failed. Check the minor_status parameter for details. The routine could not access the credentials. AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
gss_acquire_cred(3). The manpages for DCE-GSSAPI are included with the DCE-CoreTools product. To see those manpages add to gss_inquire_context(3)
All times are GMT -4. The time now is 02:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy