06-09-2010
Yes this solution I allready figured out. I was wondering is there a way to do it without file with function definition ?
Maybe through some interface like in object oriented programming ?
9 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi all,
I want to monitoring my interface every 6 hours where i want to run snoop command to capture all packet through the interface, so i want running snoop then snoop will run for 5 minutes after that snoop stop then will start again after 6 hours than run for 5 minutes again.
thereis any... (9 Replies)
Discussion started by: tindasz
9 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. Shell Programming and Scripting
The following code doesn't work properly which means it doesn't displays remote output.
#!/bin/ksh
#################### Function macAddressFinder ########################
macAddressFinder()
{
`ifconfig -a > ipInterfaces`
`cat ipInterfaces`
}... (2 Replies)
Discussion started by: presul
2 Replies
5. Shell Programming and Scripting
Hello,
I have Individual function in my shell script ,
Function1
{
Master activities
}
Function2
{
Sub activities 1
}
Function3
{
Sub activities 2
}
… (2 Replies)
Discussion started by: Shanks
2 Replies
6. Shell Programming and Scripting
Hey, i got this 2 file. When i try to pick option 1, which is test1, it says ./test: test1: not found.
Any idea on how i can fix it?
#!/bin/sh
QUIT=0
`dirname $0`/testfile
while ;
do
testmenu
read option
case $option in
1) test1 ;;
2) test2 ;;
3) echo... (2 Replies)
Discussion started by: Nick1097
2 Replies
7. Shell Programming and Scripting
I have this script in server2
# cat /root/yesno.sh
#!/bin/bash
read -p "are you sure?" -n 1 -r
if $ ]]; then
echo ""
echo "YES"
else
echo "NO"
fi
# sh /root/yesno.sh
are you sure?y
YES (5 Replies)
Discussion started by: anil510
5 Replies
8. Shell Programming and Scripting
Hello
For HP-UX, ksh shell, is it possible to define functions and call them by another user ? For example
<function_name> ( ) {
command1
command2
}
su - <user> -c <function_name>
Or the only option is defining the user in the function itself as follows -
<function_name> ( )... (2 Replies)
Discussion started by: atanubanerji
2 Replies
9. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT DEBIAN
roartips
roartips(7) System Manager's Manual: RoarAuido roartips(7)
NAME
roartips - Tips for RoarAudio users
SYNOPSIS
roard [OPTIONS...] ...
roarclient [OPTIONS...] ...
DESCRIPTION
This manpage lists some tips for intermedia to advanced users of RoarAudio.
CONTROLLING ROARD
RoarAudio supports a lot of things you can change on the fly. This includes the volume for each stream as you may allready noticed: If you
cange the volume within a player only this stream is changed, other streams keep there loudness. There a a lot other things that can be
changed on the fly. To do this there is a tool called roarctl(1). You may want to play around a bit with it. A good start are to try those
two commands:
roarctl --help
roarctl allinfo
The later one will show you all information current available of the server it self, the clients and the streams. This may include a lot of
information.
SERVER ADDRESS
There a serverel types of server addresses based on the protocol used to communicate. This lists the corrently implemented types in order
of importance:
/path/to/sock
Path to UNIX Domain Socket. Example:
/tmp/roar
host, host:port
This is used for connections over TCP/IP. If port is omitted the default port is used. Examples:
audio.homeserver.local
localhost:7564
node::, node::object, ::object, ::
This is the way to specify a DECnet connection to node node's object object. Both may be omitted to use defaults. Default node name
is local hosts node name. Examples:
mynode::
::roar
yournode::yourroard
+fork This starts a new roard for every roar_connect(3). This is used internaly by the lib to emulate EsounD's fallback.
ENVIRONMENT
ROAR_SERVER
This varibale contains the default server address. If some client does not allow a user to set a server address or to set a default
value this one come into play. Examples:
ROAR_SERVER=some.host
ROAR_SERVER=another.host:port
ROAR_SERVER=node::
ROAR_SERVER=/tmp/roar
SEE ALSO
roarcat(1), roarctl(1), roarfilt(1), roarfish(1), roarmon(1), roarvorbis(1), roard(1), libroar(7).
RoarAudio August 2008 roartips(7)