Sponsored Content
Full Discussion: parameterised functions
Top Forums Shell Programming and Scripting parameterised functions Post 302160999 by ravi raj kumar on Wednesday 23rd of January 2008 09:30:22 AM
Old 01-23-2008
Hi,
Thank u for answering .

cheers
RRK
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Regarding functions

Hi, I have a function or script like this. show() { echo "Hi" } | tee -a log show This creates a logfile and prints Hi in it. Now when I try to do the same for sql like this: show() { sqlplus -s scott/tiger<<! select * from details; ! } | tee -a log show Then it gives me a... (2 Replies)
Discussion started by: sendhilmani
2 Replies

2. Shell Programming and Scripting

functions in

hi could anybody please suggest me how to put a function memory for particular user. say i am a user rao. want have a function foo in memory . i have done this .typed the function function in the shell it worked for the session.but next time i do login its not there . i can i have a... (6 Replies)
Discussion started by: Raom
6 Replies

3. Shell Programming and Scripting

Use of functions

Hi my shell is tcsh can I have functions in my shell scripting? Is the below shell script correct. Can I have two functions and call one of them as required. ---------- echo "functions" f1 f1 () { echo "hello" } f2 () (1 Reply)
Discussion started by: amitrajvarma
1 Replies

4. Shell Programming and Scripting

Parameterised Call to MySQL

Hi, I am trying to do a mysql insert from a script, using a parameter which holds a value taken from a filename. I must be missing something as the param is not holding any value. Any suggestions please; (input files will look like aaa.123.dat) #/bin/bash # 30th March 2008 for... (1 Reply)
Discussion started by: trawler
1 Replies

5. Shell Programming and Scripting

functions

I have korn shells where I want to create a function passing $1 to a function , determine my $STAT_ENV value, set the paths and return the paths for STATSH,STATPRM,STATSQR,STATSQL,STATCTL TO BE USED IN THE UNIX SCRIPT THE CALLED THE fucnction in the first place. Can someone tell me the best... (2 Replies)
Discussion started by: TimHortons
2 Replies

6. Shell Programming and Scripting

Need a little help with functions

I'm semi new to unix/linux and am trying to convert a program I wrote in C++ to a bash script. It's a program that prints Fibonacci's series. I have found scripts that will do it, but I'm trying persistently to get this one to work. The problem occurs when I try to return a value from the function.... (3 Replies)
Discussion started by: Glowworm
3 Replies

7. UNIX for Dummies Questions & Answers

Help with functions

Hi, I am exploring with defining functions in my BASH shell scripts. However, I am bit confused about how to pass parameters to my functions. I was under the impression that you must do something like the following: Define a function called "sample_function": function sample_function {... (3 Replies)
Discussion started by: msb65
3 Replies

8. Shell Programming and Scripting

i think i need functions ?

Hi, im making a little script but need some help Code i have so far is read -p 'Bot Nickname:' ecnick read -p 'Bot Username:' ecusername read -p 'Bot Realname:' ecrealname read -p 'Your Email:' ecemail echo '' echo Your bots nickname is set to $ecnick echo Your bots username is set to... (2 Replies)
Discussion started by: Gemster
2 Replies

9. Programming

Functions

Hi All, Can any one help me. I am calling in a function2 with string as parameter from function1, the function1 gives 3 values. how i get the 3 values from funciton2 to function1. i have to give a return or something. thanks in advance. (2 Replies)
Discussion started by: uday.sena.m
2 Replies

10. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies
openam(1)						      General Commands Manual							 openam(1)

NAME
openam - H.323 answering machine SYNOPSIS
openam [options]... DESCRIPTION
openam is a simple answering machine using the H.323 protocol. openam works by setting up a H.323 listener process, and then waiting for incoming connections. Whenever an incoming connection is established, it plays the outgoing message (OGM) and then starts recording any incoming audio from the remote end into a record file. OPTIONS
All of the command line options to openam can be specified in long form, and the most commonly used options also have single character equivalents. The long forms can also be used in the openam configuration file. -d, --directory dir Set the directory that record files are created in to dir. -D, --disable codec Disable the specified codec (may be used multiple times). -g, --gatekeeper host Upon startup, register only with the specified gatekeeper rather than attempting to find a gatekeeper by using UDP broadcast. --g711message filename Set outgoing message for G.711 codec to filename. --g7231message filename Set outgoing message for G.723.1 codec to filename. --gsmmessage filename Set outgoing message for GSM codec to filename. -h, --help Display the help message. -i, --interface IP Only bind to the specified network interface address. By default, openam automatically listens for incoming calls on all TCP/IP network interfaces available on the host machine. This option is useful for running multiple copies of openam on the same multi-homed machine, or for ensuring that only calls from the external, or internal, network will be received on a particular answering machine. -k, --kill Kill recorded files after user command. -l, --limit secs Limit recorded messages to a duration of secs seconds (defaults to 30). --listenport port Listen on the specified tcp port instead of the default 1720. -m, --message filename Set outgoing message to filename. -n, --no-gatekeeper Do not attempt to find a gatekeeper upon startup using UDP broadcast. -o, --output filename Write trace output (enabled with the -t option) to the specified file rather than to stderr. --pcmmessage filename Set outgoing message for PCM derived codecs (G.711/GSM) to filename. -P, --prefer codec Sets the prefered codec to the specified codec. If used multiple times, it specifies an order in preference, being the first one specified the most prefered one. --require-gatekeeper Exit if a gatekeeper cannot be found. -r, --run cmd Run the command specified as cmd after each recorded message. --save Save arguments in configuration file. -t, --trace Enable debug tracing, which displays messages at run-time to assist in debugging or problem identification. Specifying this option multiple times increases the amount of information displayed. Use the -o option to write the trace information to a file rather than to stderr. -u, --username str Set the local endpoint name to str. Default is "OpenH323 Answering Machine vxxx". CONFIGURATION FILE
openam options can be set in the openam configuration file ~/.pwlib_config/openam.ini either by edditing this file or via the --save option. Options must be located in the section prefixed with [Options]. The long form of any command line option specified above can be specified in the configuration file, in the format: option = value EXAMPLES
openam -n -m hello Start the program without registering with a gatekeeper using message on file hello.sw or hello.g723 depending on the codec. openam -m sample_message -r new_msg Start the answer machine searching for a gatekeeper to register with, using the examples "sample_message" and "new_msg" respectively as the answering message and the script to be run after each recorded message. FILES
~/.pwlib_config/openam.ini BUGS
None that I know of. SEE ALSO
README.txt file in the doc directory. 18 Jul 2001 openam(1)
All times are GMT -4. The time now is 08:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy