hi,
how would i go about making a loop which gets each line from a single text file, set it to a variable and then print it to screen?
thanks
eg:
#!/bin/sh
FILE="somefile.txt"
text_line=""
what kind of loop would use here? (18 Replies)
Hi all
Sorry for the basic question, but i am writing a shell script to get around a slightly flaky binary that ships with one of our servers. This particular utility randomly generates the correct information and could work first time or may work on the 12th or 100th attempt etc !.... (4 Replies)
hey guys what im trying to do is do a simple script that will ask for a password and on the 5th time it says access denied if the right password is still not entered this is what i have so far can anyone help me im not good with scripting
thanks in advance
#!/bin/bash
secretname=secret... (2 Replies)
I am struggling with the for loop. I have a file name heros.txt and I would like to go through a list in file where.txt and see if I can find the name from where inside heros.
One of the problems that I am having is I dont understand how to setup the for loop to find the list to search.:wall:
... (6 Replies)
Hi,
I'm trying to put together a small script that will read a txt file that contains a list of two columns. Each column is the name of a folder..
e.g.
AIX Server1
AIX Server2
AIX Server3
$ for i in `cat /opt/apacheprod/scripts/input/copy_list.txt`
do
PLATFORMVAR=`awk ' { print $1 } '... (7 Replies)
I have two files. In file one, there are many columns, but only two of interest to me. Column 1 contains a list of individuals, defined by an ID number. Column 10 contains the diagnosis that each individual has (I am a physician). All together, there are 3000 lines in this file, one line per... (2 Replies)
Hi,
I have a requirement where I have to check for 10 files in Unix location. If all of the files present in that directory then i have execute another process.
can you help me resolving this issue.
sample
location
/home/usr
abc.txt
cde.txt
aaaa.txt
lll.txt
ooo.txt
if all the... (3 Replies)
Hi,
I have code like below
disk_list=$(ls /root/file1)
for disk in $disk_list
do
pvcreate $i
done
I know what pvcreate command does, but I do not understand what this $i do here. can someone please explain. (2 Replies)
Discussion started by: stew
2 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)