Hello,
i am developing a simple shell script for simulation of wc command but it's not working.Please tell me what is the problem. I have commented the problematic line
Code:
if [ $# -lt 1 ]
then
echo "<Improper Usage>"
echo "wcassg <options> file"
else
eval file=\$$#
if [ -f $file ]
then
chars=0
words=0
lines=0
if [ $# -eq 1 ]
then
exec<$file
while read sentence
do
#the line below this is not working i dont know i am not able to use string functions on $sentence
chars=`expr $chars + \`expr length $sentence\``
set $sentence
lines=`expr $lines + 1`
words=`expr $words + $#`
done
echo "Number Of Lines :$lines"
echo "Number Of Words :$words"
echo "Number Of Characters :$chars"
fi
else
echo "$file does not exists"
fi
fi
I'm trying to install the recommended patch cluster on a x86 Solaris 10 box.
I get this error:
ERROR: /sbin/zonename cannot be found. install_cluster for 10_x86 patch cluster not applied. Exiting.
I tried touching the file and it gave a different error of: expected argument..
anyone... (1 Reply)
Hi,
I am using RDIST to sync /interfaces directory between two systems say ukblx176 (source) & ukapx063 (target), but when i do rlogin ukapx063 from ukblx176 its asking for password (i dont want it to ask password). when i do rlogin ukblx176 from ukapx063 its doesnt ask for password. ukapx063... (8 Replies)
I am used to using "set -o emacs" and then using "CNTL-P" for getting previous commands in solaris but on one host it does not work and instead just makes a DONG!!
# ksh
# set -o emacs
# ls
# ^p
Can anyone offer guidance as to why this is?
Thank you my friends.
akbar (0 Replies)
Hi Guys,
I am using Red Hat Linux 5 and GNOME Terminal is available there in the Accessories menu of Applications. But I don't see any run command option which can be used to type the name of the terminal and execute it directly as I used to do it under Mandrake Linux wherein I would type... (2 Replies)
Hi All,
i want the last login details along with year.
i tried below command but not giving me the year of last login.
last <$Userid> | head -1
i heard that if it is current year then it wont display the year else it will display the year. is it so?
if yes then , is there any way of... (1 Reply)
Hi All,
i want the last login details along with year.
i tried below command but not giving me the year of last login.
last <$Userid> | head -1
i heard that if it is current year then it wont display the year else it will display the year. is it so?
if yes then , is there any way of... (1 Reply)
Hi,
When I run the command acroread it is giving error
ERROR: Cannot find installation directory.
When I look at /usr/local/Adobe/Acrobat7.0/bin/ an exicutable file named acroread is there. When i run ./acroread from that directory it is working . What can i do so that I can give... (3 Replies)
Hey,
Task seems to be quite easy, but I'm still a bit green in shell scripting. I hope you can help me a bit. I have to run some simulation at the distance by remote terminal.
Normally when I'm working on the server directly I just type:
mpirun -np 8 compressibleInterFoam -parallel > log.txt... (7 Replies)
Hello,
There is a process in AIX which is actually a oracle database user session but is running very slow When I use lsof it give below output
lsof /proc/21955180
In while loop:256
In while loop:256
In while loop:256
In while loop:256
Value of I :183 np:1024
Please... (1 Reply)
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Discussion started by: Pushpraj
10 Replies
LEARN ABOUT DEBIAN
multinode_server
MULTINODE_SERVER(1) MORSE MULTINODE_SERVER(1)NAME
multinode_server - Server program to synchronise several instances of MORSE
SYNOPSIS
multinode_server [synchronisation delay]
DESCRIPTION
Socket server program to synchronise several instances of MORSE (nodes) running the same simulation scenario. This program must be started
before launching the simulation in the nodes.
All the client nodes will connect with the server and send it the updated positions of the robots they manage. The multinode_server program
will concentrate the positions of all robots into a single Python dictionary, and then send it back to all clients.
It also permits pausing the simulation, by typing in its terminal p and Enter. The same command will allow the simulation to continue.
This mechanism relies on the fact that the clients will remain waiting for a reply from the server before continuing with the simulation.
PARAMETERS
[synchronisation delay]
Optional parameter that defines the delay (in seconds) between messages to the connected clients. A larger delay will slow down the
simulation in all clients. Default value is 0.0
SEE ALSO morse(1)morseexec(1)COPYRIGHT
2009-2010, LAAS-CNRS/ONERA ; 2010-2012, LAAS-CNRS
0.5.2 May 14, 2012 MULTINODE_SERVER(1)