12-14-2017
Thank you Scrutinizer for replying to my thread.
You are correct if I "Just leave out the loop".
script executes correctly, and its what am trying to achieve. But, if Failed doesn't exist, script will output a blank line and create a text file.
The reason why I'm using a while-loop is because if Failed isn't found, the script should exit and close program without creating a text file. So in other words, if Failed isn't found, script ends and exits. If Failed is found then re-direct output and send to text file.
How can I achieve this using a while-loop?
10 More Discussions You Might Find Interesting
1. Solaris
Hi, I have a Ultra5 440MHz system running Solaris 2.6 (Rev 5.6) and have a problem with the keyboard. When I push a key it prints characters very quickly. If I push a key very fast I get maybe 3 characters.
So, I am thinking bad keyboard. I borrow a known good keyboard, samething and the... (3 Replies)
Discussion started by: mndavies
3 Replies
2. Shell Programming and Scripting
I am trying get "df -k" output from multiple hosts along with their hostnames via ssh, my script is appending the "df -k" output from all the nodes to a single file but not getting the hostnames for those nodes, just wondering how to pass more than one command via ssh or may be someone could come... (6 Replies)
Discussion started by: barkath
6 Replies
3. AIX
Hello. I have an AIX machine at 6100-00.
We had some strange activity since filling up /tmp. One symptom is that who -r displays no output. It doesn't hang just no output is displayed.
We are going to boot the machine, but prior to that I'd like to dig a bit to see what may be causing the... (0 Replies)
Discussion started by: maficdan
0 Replies
4. UNIX for Dummies Questions & Answers
hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards.
I don't know how to bridge cat > user.txt with cut -d: -f1,5 /etc/passwd, or how display it afterwards. Any help would... (2 Replies)
Discussion started by: raidkridley
2 Replies
5. UNIX for Dummies Questions & Answers
Helllo UNIX Forum :)
Since I am posting on this board, yes, I am new to UNIX!
I read a copy of "UNIX made easy" from 1990, which felt like a making a "computer-science time jump" backwards ;)
So, basically I have some sort of understanding what the basic concept is.
Problem Description:... (6 Replies)
Discussion started by: Kasimir
6 Replies
6. Shell Programming and Scripting
This is for an Oracle journal import. I was using a pl/sql package and oracle API's. Oracle added invoker rights to their API's and now my package won't run. I didn't want to use their API's anyway. The only reason i was using pl/sql and the API's (just a package) was to utilize a cursor. How... (2 Replies)
Discussion started by: lmu
2 Replies
7. Solaris
when i use ls command it works normal but when i using additional parameter with ls like ls -l , ls -a... it shows a error followed by the output.
# ls -l
./hgfs: Operation not applicable
total 12861
-rw-r--r-- 1 root root 0 Jun 1 21:12 1
drwxr-xr-x 2 root root ... (4 Replies)
Discussion started by: chidori
4 Replies
8. Shell Programming and Scripting
I need to print out text from a file in the console up, you know someone like that? (8 Replies)
Discussion started by: gizmo16
8 Replies
9. Shell Programming and Scripting
Hello all! I am writing a script that takes in a directory name as input and if the directory exists, it shows the files inside the directory
here is what I have so far (incomplete) (mostly like pseudocode)
#/bin/sh
echo Please enter the name of a directory
read dir
grep $dir... (2 Replies)
Discussion started by: subway69
2 Replies
10. Shell Programming and Scripting
Hi all,
I want to do an Unix Script to save the 'nmon' output on a text file and I don't know how to do it.
I need a Script for each monitoring and also one to multiple monitorings.
Thanks (6 Replies)
Discussion started by: Javi1990
6 Replies
LEARN ABOUT DEBIAN
globus_gsi_credential_constants
Credential Constants(3) globus gsi credential Credential Constants(3)
NAME
Credential Constants -
Enumerations
enum globus_gsi_cred_error_t { GLOBUS_GSI_CRED_ERROR_SUCCESS = 0, GLOBUS_GSI_CRED_ERROR_READING_PROXY_CRED = 1,
GLOBUS_GSI_CRED_ERROR_READING_HOST_CRED = 2, GLOBUS_GSI_CRED_ERROR_READING_SERVICE_CRED = 3, GLOBUS_GSI_CRED_ERROR_READING_CRED = 4,
GLOBUS_GSI_CRED_ERROR_WRITING_CRED = 5, GLOBUS_GSI_CRED_ERROR_WRITING_PROXY_CRED = 6, GLOBUS_GSI_CRED_ERROR_CHECKING_PROXY = 7,
GLOBUS_GSI_CRED_ERROR_VERIFYING_CRED = 8, GLOBUS_GSI_CRED_ERROR_WITH_CRED = 9, GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT = 10,
GLOBUS_GSI_CRED_ERROR_WITH_CRED_PRIVATE_KEY = 11, GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_CHAIN = 12, GLOBUS_GSI_CRED_ERROR_ERRNO = 13,
GLOBUS_GSI_CRED_ERROR_SYSTEM_CONFIG = 14, GLOBUS_GSI_CRED_ERROR_WITH_CRED_HANDLE_ATTRS = 15, GLOBUS_GSI_CRED_ERROR_WITH_SSL_CTX =
16, GLOBUS_GSI_CRED_ERROR_WITH_CALLBACK_DATA = 17, GLOBUS_GSI_CRED_ERROR_CREATING_ERROR_OBJ = 18,
GLOBUS_GSI_CRED_ERROR_KEY_IS_PASS_PROTECTED = 19, GLOBUS_GSI_CRED_ERROR_NO_CRED_FOUND = 20, GLOBUS_GSI_CRED_ERROR_SUBJECT_CMP = 21,
GLOBUS_GSI_CRED_ERROR_GETTING_SERVICE_NAME = 22, GLOBUS_GSI_CRED_ERROR_BAD_PARAMETER = 23, GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_NAME
= 24, GLOBUS_GSI_CRED_ERROR_LAST = 25 }
enum globus_gsi_cred_type_t
Enumeration Type Documentation
enum globus_gsi_cred_error_t
Credential Error codes.
Enumerator:
GLOBUS_GSI_CRED_ERROR_SUCCESS
Success - never used.
GLOBUS_GSI_CRED_ERROR_READING_PROXY_CRED
Failed to read proxy credential.
GLOBUS_GSI_CRED_ERROR_READING_HOST_CRED
Failed to read host credential.
GLOBUS_GSI_CRED_ERROR_READING_SERVICE_CRED
Failed to read service credential.
GLOBUS_GSI_CRED_ERROR_READING_CRED
Failed to read user credential.
GLOBUS_GSI_CRED_ERROR_WRITING_CRED
Failed to write credential.
GLOBUS_GSI_CRED_ERROR_WRITING_PROXY_CRED
Failed to write proxy credential.
GLOBUS_GSI_CRED_ERROR_CHECKING_PROXY
Error checking for proxy credential.
GLOBUS_GSI_CRED_ERROR_VERIFYING_CRED
Failed to verify credential.
GLOBUS_GSI_CRED_ERROR_WITH_CRED
Invalid credential.
GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT
Invalid certificate.
GLOBUS_GSI_CRED_ERROR_WITH_CRED_PRIVATE_KEY
Invalid private key.
GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_CHAIN
Invalid certificate chain.
GLOBUS_GSI_CRED_ERROR_ERRNO
System error.
GLOBUS_GSI_CRED_ERROR_SYSTEM_CONFIG
A Globus GSI System Configuration call failed.
GLOBUS_GSI_CRED_ERROR_WITH_CRED_HANDLE_ATTRS
Invalid credential handle attributes.
GLOBUS_GSI_CRED_ERROR_WITH_SSL_CTX
Faulty SSL context.
GLOBUS_GSI_CRED_ERROR_WITH_CALLBACK_DATA
Faulty callback data.
GLOBUS_GSI_CRED_ERROR_CREATING_ERROR_OBJ
Failed to aggregate errors.
GLOBUS_GSI_CRED_ERROR_KEY_IS_PASS_PROTECTED
Error reading private key - the key is password protected.
GLOBUS_GSI_CRED_ERROR_NO_CRED_FOUND
Couldn't find credential to read.
GLOBUS_GSI_CRED_ERROR_SUBJECT_CMP
Credential subjects do not compare.
GLOBUS_GSI_CRED_ERROR_GETTING_SERVICE_NAME
Unable to obtain service name from CN entry.
GLOBUS_GSI_CRED_ERROR_BAD_PARAMETER
Invalid function parameter.
GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_NAME
Failed to process certificate subject.
GLOBUS_GSI_CRED_ERROR_LAST
End marker - never used.
enum globus_gsi_cred_type_t
Credential Type
An enum representing a GSI Credential Type which holds info about the type of a particular credential. The three types of credential can
be: GLOBUS_PROXY, GLOBUS_USER, or GLOBUS_HOST.
See also:
Credential Handle Management
Author
Generated automatically by Doxygen for globus gsi credential from the source code.
Version 5.3 Mon Apr 30 2012 Credential Constants(3)