10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to know how can i call oracle function from shell script code . My oracle function have around 5 input parameters and one return value.
for name in *.csv;
echo "connecting to DB and start processing '$name' file at "
echo "csv file name=$x"
sqlplus -s scoot/tiger <!... (2 Replies)
Discussion started by: Balraj
2. Shell Programming and Scripting
I need to call a function within a code with $database and $ service as the arguments How do I proceed ? and how would a function be defined and these two arguments would be used inside the function?
calc_pref_avail $database $service
Vishal (7 Replies)
Discussion started by: Vishal_dba
3. Shell Programming and Scripting
This command successfully gives me the clearcase views I want in stdout, one line per view name. Each view name appears to have no spaces.
cleartool lsview | grep -i `uname -n` | grep -v "ViewStorage\\|vgr_tools_sv" | cut -f 3 -d ' '
How can write a cygwin bash "for" loop that will iterate... (4 Replies)
Discussion started by: siegfried
4. Shell Programming and Scripting
Below is my script that is function properly per my conditions but I am facing one problem here that is when one function fails then Iy should not check other functions but it calls the other function too So anyone can help me how could i achieve this?
iNOUT i AM GIVING TO THE... (1 Reply)
Discussion started by: rohit22hamirpur
5. Shell Programming and Scripting
I have trouble getting this logic to work
read -p "$2 :" $3
assign_var '$IPADDRESS' ipaddress IPADDRESS
Basicly, i want to make sure that entry is made (i can add more sophisticated checks later), but the idea is to recycle... (11 Replies)
Discussion started by: serverchief
6. UNIX for Dummies Questions & Answers
I'm trying to understand the arguments from this system call, can someone help me figure it out?
write(1, "/home/nick/11sp/fred\n", 27/home/nick/11sp/fred) = 27
for argument 1, i know it is a file descriptor which specifies standard output. Argument 2, i believe is "what is to be... (4 Replies)
Discussion started by: l flipboi l
7. Shell Programming and Scripting
I've a logging function in bourne shell, flog() which logs the first argument passed to it. How can I pass arguments to this function from a file, like
cat filename | sed '...filtering...' | flog
cat filename | sed '...filtering...' | xargs flog
Which did not work, after which... (3 Replies)
Discussion started by: Random_Net
8. Shell Programming and Scripting
Hello, I was wondering if it were possible to call arguments passed to a script using a variable.
sh script.sh yes no good bad
echo (last argument, then second last etc until first argument)
should print out
no (4 Replies)
Discussion started by: VanK
9. Infrastructure Monitoring
I have a problem with package and name space.
#print... (4 Replies)
Discussion started by: Zaxon
my C code is
system("cp <source> <destination>");
my question is
how to set variables for <source> and <destination>
how can we pass it to system() call.
can you suggest me
kingskar (6 Replies)
Discussion started by: kingskar