10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have created a function in a Shell Script test.sh
function fnTest()
{
echo "My first Method
}
I have called this function in my test.sh
cat abc.txt | grep "test"
echo " test"
fnTest
But while running the shell script i got the following error:
... (2 Replies)
Discussion started by: nanthagopal
2 Replies
2. 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
1 Replies
3. Infrastructure Monitoring
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Discussion started by: Zaxon
4 Replies
4. Shell Programming and Scripting
Hi,
I have a string corresponding to a function. How I can call that function without if statement?
Thanks in advance. (4 Replies)
Discussion started by: Zaxon
4 Replies
5. Shell Programming and Scripting
How we can start a process if doesn't exists before? (1 Reply)
Discussion started by: Zaxon
1 Replies
6. Shell Programming and Scripting
hello,
when i call function inside awk traitement it doesn't work, i don't have error execution but i don't get result and if i call the function outside awk traitement it work well..
there's something special in awk call function??
here is the example :
awk -F "," '{ {first=$1; sec=$2;... (3 Replies)
Discussion started by: kamel.seg
3 Replies
7. Shell Programming and Scripting
hi,
can any one help me to correct this function call.
awk -F "," '{ {first=$1; sec=$2; tro=$3;quat=$4 }
if (tro == "")
{
$3 = search "$file2" "$first" "$file3"
{print $1","$2","$3","$4} }
else
{print $1","$2","$3 $4}}' $file1 > $file
search ()
{ (2 Replies)
Discussion started by: kamel.seg
2 Replies
8. Shell Programming and Scripting
I have a function check_ok in my abc.sh. which return me 1 or 0 . I want to call this fuction through other shell script. this shell also send two parameter to calling function.
Can you please tell me how. I am very new in unix.
#!/bin/bash
date_equal()
{
sqlplus -silent... (4 Replies)
Discussion started by: Jamil Qadir
4 Replies
9. Programming
Hi, Can anyone help me figure out the problem I'm having with a function call?
I have a header file, which sets an enum:
typedef enum {INFO, WARNING, FATAL} Levels;
int log_event (Levels, char *fmt, ...);
..then the function is called this way:
log_event(INFO, "Message text");
... (6 Replies)
Discussion started by: Stevhp
6 Replies
10. Shell Programming and Scripting
can I call a function in bash script just as in C++
while
do
function()
done
function()
thanks,
Steffen (3 Replies)
Discussion started by: forever_49ers
3 Replies
ICECREAM
DAEMON(1) Icecream User's Manual ICECREAM DAEMON(1)
NAME
iceccd - Icecream daemon
SYNOPSIS
iceccd [-n netname] [-m max_processes] [--no-remote] [-w] [-d | --daemonize] [-l logfile] [-s schedulerhost] [-v [v [v]]] [-r |
--run-as-user] [-b env-basedir] [-u | --nobody-uid nobodyuid] [--cache-limit MB] [-N hostname]
DESCRIPTION
The Icecream daemon has to run on all nodes being part of the Icecream compile cluster. It receives compile jobs and executes them in a ch-
root environment. The compile clients send their compile environment the first time they send a job to a particular daemon, so that the en-
vironment of the daemon doesn't have to match the one of the client.
The daemon also has to run on clients sending compile jobs to the Icecream network. If a node should be able to send compile jobs, but nev-
er receive any, start the daemon with the option -m 0.
All Icecream daemons need to have contact to the Icecream scheduler which controls the distribution of data between compile nodes. Normally
the daemon will automatically find the right scheduler. If this is not the case you can explicitly specify the name of the Icecream network
and the host running the scheduler.
OPTIONS
-n netname
The name of the icecream network the daemon should connect to. There has to be a scheduler running for the network under the same
network name.
-m max_processes
Maximum number of compile jobs started in parallel on machine running the daemon.
--no-remote
Prevents jobs from other nodes being scheduled on this one.
-w
-d, --daemonize
Detach daemon from shell.
-l logfile
Name of file where log output is written to.
-s scheduler_host
Name of host running the scheduler for the network the daemon should connect to. This option might help if the scheduler can't
broadcast its presence to the clients due to firewall settings or similar reasons.
-v, -vv, -vvv
Control verbosity of daemon. The more v the more verbose.
-r, --run-as-user
Force running the daemon with user rights. Usually you will need to run the daemon with root rights.
-b env_basedir
Base directory for storing compile environments sent to the daemon by the compile clients.
-u, --nobody-uid nobodyuid
Id of user nobody. This user id is used when the daemon is dropping privileges.
--cache-limit MB
Maximum size in Mega Bytes of cache used to store compile environments of compile clients.
-N hostname
The name of the icecream host on the network.
SEE ALSO
icecream, scheduler, iceccd, icemon
AUTHOR
Cornelius Schumacher
Icecream April 21th, 2005 ICECREAM DAEMON(1)