03-02-2013
Quote:
Originally Posted by
hyeewang
I got your idea although I can not run your code due to compile error.
What do you mean by "compile error"? What i wrote was Korn-Shell code. Which programming language are you using? (If not a shell, you are probably in the wrong forum. Say so and i transfer the thread to where it belongs.)
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Folks,
I'm using bash script. I would like to check whether input is a number or not.(Only positive numbers).. if space or non numeric is entered, it should say "invalid input". pls help..
thanks in adv.
Br///
Vijay. (1 Reply)
Discussion started by: Vijayakumarpc
1 Replies
2. Shell Programming and Scripting
Dear All,
The sqlplus 'Accept' command is not waiting for user input when I include the command within a shell script.
Note: The 'Accept' command is working fine if I execute it in a SQLPLUS Prompt.
Please fins the below sample script which i tried.
SCRIPT:
--------
#!... (4 Replies)
Discussion started by: little_wonder
4 Replies
3. Shell Programming and Scripting
Hello
I am trying to create a user input shell scipt. The objective is user should enter the circuit number and the input is saved in a log file. If the user does not enter anything then the question should prompt it until the circuit no. is entered.
Can any one please correct the code below.... (3 Replies)
Discussion started by: sureshcisco
3 Replies
4. Shell Programming and Scripting
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
Discussion started by: joseph.dmello
0 Replies
5. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
The script usage will be as follows:
library.third source_directory
- Your script will display an appropriate error message and exit with status 3 if no parameters are given
- Your script will display an appropriate error... (2 Replies)
Discussion started by: netmaster
2 Replies
6. Shell Programming and Scripting
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
Discussion started by: i.srini89
1 Replies
7. Shell Programming and Scripting
I want to create an array which can store the strings from the user input in shell script .
example :-
I want to store the 5 fruits name in a single array which the user provides . (1 Reply)
Discussion started by: Pkast
1 Replies
8. Shell Programming and Scripting
I want a shell script that accepts user input simultaneously when performing other tasks. Example: A shell script should echo some messages on the console and when the user presses some keys it should respond to that action.
say, when user presses the key
A - more information should be printed... (2 Replies)
Discussion started by: Arun_Linux
2 Replies
9. Shell Programming and Scripting
I need a script that should print 'yes' if the argument is a valid shell variable name else 'No' if it is not a valid shell variable. A valid one begins with an alphabet or percentage (%) character and is followed by zero or more alphanumberic or percentage (%) characters.
For example:
$... (6 Replies)
Discussion started by: pingiliarjun
6 Replies
10. Shell Programming and Scripting
Hello, I want to start out by saying that I am fairly new to scripting and am looking for someone that can point me in the right direction.
Basically what I need is a way to run a interactive script that will prompt users with questions weather that be yes/no or a specific answer.. I want to be... (3 Replies)
Discussion started by: shoutcast
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)