08-24-2011
Works fine
Quote:
Originally Posted by
cfajohnson
Define all your functions at the beginning of the script. Then they may be called from wherever you like, in any order, including from another function.
Thank you cfajohnson..
i tried this method.
Its works fine.
thanks again..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to call a oracle function in my shell script (4 Replies)
Discussion started by: dineshr85
4 Replies
2. Shell Programming and Scripting
i have a function written in one shell script and i want to call that function in another shell script and use the value returned by that script.
can any one suggest me how can i do that?
regards,
Rajesh.P (4 Replies)
Discussion started by: rajesh.P
4 Replies
3. Shell Programming and Scripting
Here is the following code :
1.
# gcc -c test firstprog.c
the above command will generate a executable file called "test " in which ever directory it is run.
Assuming It will also return a value.
2. In the below SCRIPT . test is a file generated by compiling a c program... (3 Replies)
Discussion started by: Vabiosis
3 Replies
4. Red Hat
please help me in this script
shell script :1
***********
>cat file1.sh
#!/bin/bash
echo "this is first file"
function var()
{
a=10
b=11
}
function var_1()
{
c=12
d=13 (2 Replies)
Discussion started by: ponmuthu
2 Replies
5. Shell Programming and Scripting
Hi all,
Actually my aim is to call the shell script when ever there is a hit in a mysql table which consist of 3 values. Acter some research I came to know that it is not possible and can achive with timestamp. Can someone please tell me how to read the table timestamp which should done... (3 Replies)
Discussion started by: santhoshvkumar
3 Replies
6. Shell Programming and Scripting
Hi I have a function :
Make_Report()
{
trx_report=`sqlplus -s $conn_str << @@
set echo off;
set pages 0;
set feedback off;
set verify off;
select srv_trx_s_no,... (1 Reply)
Discussion started by: neeraj617
1 Replies
7. Shell Programming and Scripting
I am getting Segmentation fault at below function call in my script:
get_x() {
sqlplus -s / <<end | grep KEEP | sed 's/KEEP//;s///g'
select 'KEEP' ,table_name from all_synonyms where upper(synonym_name)= '$1';
exit
end
x=$(get_x $1)
echo " SQL OUTPUT IS :: $x"
}
I am getting output of... (1 Reply)
Discussion started by: IB_88
1 Replies
8. Shell Programming and Scripting
Dear All,
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;
do
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 Replies
9. Programming
Hi, I am complete new to C programming and shell scripting. I just wrote a simple C code to calculate integral using trapezoid rule. I am prompting user to pass me No. of equally spaced points , N , upper and lower limit. My code looks as follows so far:
#include<stdio.h>
#include<string.h>... (2 Replies)
Discussion started by: bjhjh
2 Replies
10. Shell Programming and Scripting
I am converting shell script to Perl. In shell I have a code
parse_prog_args()
{
if
then
while
do
case $1 in
-P* | -p* )
export PROCESS_DATE=$2
export MM=`echo $2 | cut -c5-6`
export DD=`echo $2 | cut -c7-8`
export YY=`echo $2 | cut -c3-4`
export... (4 Replies)
Discussion started by: digioleg54
4 Replies
LEARN ABOUT DEBIAN
m17ndebug
Debugging(3m17n) The m17n Library Debugging(3m17n)
NAME
Debugging - Support for m17n library users to debug their programs.
Functions
MCharTable * mdebug_dump_chartab (MCharTable *table, int indent)
Dump a chartable.
MFace * mdebug_dump_face (MFace *face, int indent)
Dump a face.
MFont * mdebug_dump_font (MFont *font)
Dump a font.
MFontset * mdebug_dump_fontset (MFontset *fontset, int indent)
Dump a fontset.
MInputMethod * mdebug_dump_im (MInputMethod *im, int indent)
Dump an input method.
int mdebug_hook ()
Hook function called on an error.
MText * mdebug_dump_mtext (MText *mt, int indent, int fullp)
Dump an M-text.
MPlist * mdebug_dump_plist (MPlist *plist, int indent)
Dump a property list.
MSymbol mdebug_dump_symbol (MSymbol symbol, int indent)
Dump a symbol.
MSymbol mdebug_dump_all_symbols (int indent)
Dump all symbol names.
Detailed Description
Support for m17n library users to debug their programs.
The m17n library provides the following facilities to support the library users to debug their programs.
o Environment variables to control printing of various information to stderr.
o MDEBUG_INIT -- If set to 1, print information about the library initialization on the call of M17N_INIT().
o MDEBUG_FINI -- If set to 1, print counts of objects that are not yet freed on the call of M17N_FINI().
o MDEBUG_CHARSET -- If set to 1, print information about charsets being loaded from the m17n database.
o MDEBUG_CODING -- If set to 1, print information about coding systems being loaded from the m17n database.
o MDEBUG_DATABASE -- If set to 1, print information about data being loaded from the m17n database.
o MDEBUG_FONT -- If set to 1, print information about fonts being selected and opened.
o MDEBUG_FLT -- If set to 1, 2, or 3, print information about which command of Font Layout Table are being executed. The bigger number
prints the more detailed information.
o MDEBUG_INPUT -- If set to 1, print information about how an input method is running.
o MDEBUG_ALL -- Setting this variable to 1 is equivalent to setting all the above variables to 1.
o MDEBUG_OUTPUT_FILE -- If set to a file name, the above debugging information is appended to the file. If set to 'stdout', the
information is printed to stdout.
o Functions to print various objects in a human readable way. See the documentation of mdebug_dump_XXXX() functions.
o The hook function called on an error. See the documentation of mdebug_hook().
Author
Generated automatically by Doxygen for The m17n Library from the source code.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 Debugging(3m17n)