I have run into problem.
I am using the following code to read from parameters.txt
This works perfectly.But if i make a small tweak to the code and include a if condition inside the while loop, only the alternate arguments are being read. For e.g, if i use the following code:
The arguments that are passed to the shell are as follows
Can someone tell me why the alternate arguments are being missed? Thanks
Hi All,
I am running a script which wud take a long time to complete execution ... In between, it asks for yes/no sort of confirmation from user for doing some acivities .... Now that I dont want to wait till the script executes upto this point where it needs user confirmation, is there any way... (4 Replies)
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Hi,
I have a shell script Scp_1.sh for which I have to pass 2 arguments to run.
I have another script Scp_2.sh which in turns calls script Scp_1.sh inside.
How do I make Scp_1.sh script to read arguments automatically from a file, while running Scp_2.sh?
--
Weblogic Support (4 Replies)
For reading a file through shell script I am using yhe code :
while read line
do
echo $line
done<data.txt
It reads all the line of that file data.txt.
Content of data.txt looks like:
code=y
sql=y
total no of sql files=4
a.sql
b.sql
c.sql
d.sql
cpp=n
c=y
total no of c files=1 (4 Replies)
Hi,
I am using SYBASE database. in my script i am connecting to DB via using isql.
isql -U${S_USER} -S${S_SERV} -D${S_DB} -P${S_PWD} -b0 -w3000 -h0 -s"|" -i${MYDIR}/ABC.sql -oXYZ.txt << FINSQL
i am taking a ABC.sql file to use the queries written in it and storing the output in... (3 Replies)
Hi All,
I'm writing a script to read a file line by line and then perform awk function on it. I am getting an error . My file has one name in it "James". I'm expecting my o/p to be youareJamesbond
James
./users.sh: line 7: =: command not found
#script to read file line by line
#adding... (5 Replies)
While I am trying to check the filename/s in IF statement of a shell script (RedHat Linux 6) I am getting below error:
File check:
filename_time2=`date --date='yesterday' +%Y-%m-%d`
cd /location/of/the/files/to/copy
if
then
cp server.log-$filename_time2* ../archive/new... (5 Replies)
Hi All,
I have below simple shell script in cloudera quick start vm cenos 6 which copy file from source to destination.
# file_copy.sh
source_dir = ${source_dir}
target = ${target_dir}
cp source_dir target
and my parameter file is like below
#parameter_file.txt
source_dir =... (4 Replies)
Discussion started by: Narasimhasss
4 Replies
LEARN ABOUT FREEBSD
hx509_env_find
hx509 enviroment functions(3) Heimdalx509library hx509 enviroment functions(3)NAME
hx509 enviroment functions -
Functions
int hx509_env_add (hx509_context context, hx509_env *env, const char *key, const char *value)
int hx509_env_add_binding (hx509_context context, hx509_env *env, const char *key, hx509_env list)
const char * hx509_env_lfind (hx509_context context, hx509_env env, const char *key, size_t len)
const char * hx509_env_find (hx509_context context, hx509_env env, const char *key)
hx509_env hx509_env_find_binding (hx509_context context, hx509_env env, const char *key)
void hx509_env_free (hx509_env *env)
Detailed DescriptionFunction Documentation
int hx509_env_add (hx509_context context, hx509_env * env, const char * key, const char * value)
Add a new key/value pair to the hx509_env.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to add
value value to add
Returns:
An hx509 error code, see hx509_get_error_string().
int hx509_env_add_binding (hx509_context context, hx509_env * env, const char * key, hx509_env list)
Add a new key/binding pair to the hx509_env.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to add
list binding list to add
Returns:
An hx509 error code, see hx509_get_error_string().
const char* hx509_env_find (hx509_context context, hx509_env env, const char * key)
Search the hx509_env for a key.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to search for.
Returns:
the value if the key is found, NULL otherwise.
hx509_env hx509_env_find_binding (hx509_context context, hx509_env env, const char * key)
Search the hx509_env for a binding.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to search for.
Returns:
the binding if the key is found, NULL if not found.
void hx509_env_free (hx509_env * env)
Free an hx509_env enviroment context.
Parameters:
env the enviroment to free.
const char* hx509_env_lfind (hx509_context context, hx509_env env, const char * key, size_t len)
Search the hx509_env for a length based key.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to search for.
len length of key.
Returns:
the value if the key is found, NULL otherwise.
Version 1.5.2 11 Jan 2012 hx509 enviroment functions(3)