What I did is use an until loop and it worked so far but after adding in the prompt to return an error
I'm trying to say as long as the model shows up in that file keep re prompting for a car, this is a pretty bad job on my part trying to jam stuff in there trying to get it to work. So until the argument is true that the model shows up in the /cars file, keep re prompting. That is what I am trying to do. . any advice? Thanks for your help
---------- Post updated at 12:08 PM ---------- Previous update was at 11:18 AM ----------
I'll be reading user name and password from the person while running a shell
script so that he is authenticated.
The challenge here is to read the password variable without displaying on screen. Is there a way?
I presently do it displaying it on the screen as
echo " please enter your... (9 Replies)
Hi All,
I got a script like
#!/bin/ksh
echo "Welcome Sir"|awk '
{
print $1
}'
This is printing Welcome. I want output like 'Welcome' enclosing by single quotes.
Please assist me.
Thanks,
Shahnaz. (4 Replies)
Dear All
I had input file as mention below.
<RXMFP:MO=RXOTX-46-5;
RADIO X-CEIVER ADMINISTRATION
MANAGED OBJECT FAULT INFORMATION
MO BTSSWVER
RXOTX-46-5 ERA-G04-R11-V01
RU RUREVISION RUSERIALNO
0
RUPOSITION ... (1 Reply)
ok, so ive got some values that are inputed by a user and are stored in an array. Now what i want to do is change this piece of code below to show ina different way.
}
for (( num=0; num<9; num++ ))
do
echo ${arr}
done
}
which outputs the array contents each on a seperate line. I want... (3 Replies)
I am wondering if anyone has any idea how to use an awk within awk to read files and find a match which adds to count.
Say I am searching how many times the word crap appears in each files within a directory. How would i do that from the command prompt ...
thanks (6 Replies)
Hello,
I trying to extract text that is surrounded by xml-tags. I tried this
cat tst.xml | egrep "<SERVER>.*</SERVER>" |sed -e "s/<SERVER>\(.*\)<\/SERVER>/\1/"|tr "|" " "
which works perfect, if the start-tag and the end-tag are in the same line, e.g.:
<tag1>Hello Linux-Users</tag1>
... (5 Replies)
Hi Mates,
I require help in the following:
I have the following file snmp.txt
Wed Mar 2 16:02:39 SGT 2011
Class : mmTrapBladeS
origin : 10.0.0.0
hostname : 10.0.0.2
msg : IBM Blade Alert:
Calendar Index : 10.0.0.2-IBMBLADE
Fri Mar 4 07:10:54 SGT 2011
Class : mmTrapBladeS... (2 Replies)
Hi,
I need a way to grab the total combines since inception, total pages read from webalizer on my centos server or any other location (as long as since inception) and display the result live on my website
So with each visit it would be increasing, or perhaps live (ajax) not sure
But can... (0 Replies)
Hi All,
My requirement is this. Am trying to find a one liner unix command, which will check the last line of the file for 0. If it is zero, it would pick the previous line, else it should display the last line.
Eg:
abcd
efgh
ijhk
0
0
Output expected -- ijhk
Please share your... (8 Replies)
Discussion started by: hariniiyer300
8 Replies
LEARN ABOUT DEBIAN
addlomodel
ADDLOMODEL(3) MBK LOGICAL FUNCTIONS ADDLOMODEL(3)NAME
addlomodel - create a tempotary logical model and add it to a list
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "mlo.h"
lofig_list *addlomodel(model, name)
lofig_list *model;
char *name;
PARAMETERS
model Pointer to the head of a model list
name Name of the model to be created
DESCRIPTION
addlomodel creates a new lofig_list element and adds it to the front of the list pointed to by model, and becomes itself the list head.
The addlomodel function is mosty used to create a temporary list of lofig in order to represent the "in file" instances' models. In fact,
all the file format used with mbk have the notion of models local to files, so they are not figure, but are temporarly used to create
instance connectors, for example. For details on the structure, see lofig(3).
RETURN VALUE
addlomodel returns a pointer to the new head of model list.
ERROR
"*** mbk error *** addlomodel impossible : model name already exists"
The model, not the figure, is already present in the model list pointed to by model, and since a model should be unique, this can't
be.
EXAMPLE
#include "mut.h"
#include "mlo.h"
void add_model(name)
char *name;
{
MODEL = addlomodel(MODEL, name);
}
SEE ALSO mbk(1), lofig(3), getlomodel(3), freelomodel(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 ADDLOMODEL(3)