Instead of calling the "ADD" function again, use continue
Some points to note... The below code is better than using cat... Also check for the users at the start...
HTH
--ahamed
Last edited by ahamed101; 12-30-2011 at 03:37 AM..
I would like to allow only one instance of a script to run at any moment.
I've tried the following solution to count the instances but the result is always the number of running instances plus one and I can't find the problem
ps -ef | grep $0 | sed '/^$/ d' | sed '/grep/ d' | wc -l
Please... (2 Replies)
Hi
i am new to aix , we are using aix 5.3 version and model is 510 and 520 model servers. in our servers contains 8 gb ram.
but servers average ram usage is reaching 99.9% , can any body help on this , is any impact if memory usage reach 99.9%.
Regards
Balaji Poola (2 Replies)
I have a processor (Solaris 5.8) with a router locally attached.
We're having trouble pinging the router interface from the processor with a normal ping command. The response from the router is "administratively prohibited", which normally indicates the access list on the router is bouncing... (1 Reply)
I am using the code below to list all the Errors files from the directory in the for loop. When the number of files are less then 6000 then it's works fine but if it more than that then for loop fails.
for file in `ls $ERR_DIR/PPL_Prov_Engine_Error_*`
do
memrecno=`cut -f2 -d'|' $file` ||... (6 Replies)
Hello, I have some 150 Cron Jobs running under my UNIX account. I want to add some more jobs. Is there a limit to the number of cron jobs that can be run on an account?
Thank you.
Pramodini (8 Replies)
Hi Guys,
Need you help in one point!
I am working on one shell script which takes following steps :
1. Taking one query result from oracle database
2. Exporting that result to Xls file
3. Mailing that file to my own mail ID
Now, I want to give a threshold limit to one of the column... (0 Replies)
Hi,
I have this problem on RHEL box. I am using two NIC's of same model and make (Intel 82557) in the adjacent PCI slots . I am using each one for different subnet and have assigned them ipaddresses and gateways of respective subnets . While one is O.K. connecting to its ... (5 Replies)
Hello All,
Let's join our hands together to appreciate Corona688 for completing and reaching to the landmark of 4000+ THANKS. I do want to appreciate Corona688 on behalf of everyone here in forum for Corona688's continuous effort of posting very useful, full of experience and knowledge posts in... (7 Replies)
#!/usr/bin/ksh
c=0
while ]; do
echo /tmp/unex NOT found, iter : $c;
((c = $c + 1));
sleep 2;
done
so, the above counter doesn't work, already tried both -lt & -gt, and changed || to &&
so what am I missing?
Thanks in advance (5 Replies)
I'm trying to create a minimal, crude keylogger for X using only a shell script. I was quickly stumped: Why do these two commands entered in a terminal emulator produce output when I type...
$ xinput test 6 | grep press
$ xinput test 6 | awk '{print $3}'
...but this command produces no... (13 Replies)
Discussion started by: DevuanFan
13 Replies
LEARN ABOUT DEBIAN
addrdsrecwindow
ADDRDSRECWINDOW(3) RDS PHYSICAL FUNCTIONS ADDRDSRECWINDOW(3)NAME
addrdsrecwindow - adds a rectangle in the windowing of rds structure.
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 "rwinnn.h"
void addrdsrecwindow( Rectangle, RdsWindow )
rdsrec_list *Rectangle;
rdswindow *RdsWindow;
PARAMETER
Rectangle The rectangle to add to the windowing.
RdsWindow The head of the windowing which has to contain the rectangle.
DESCRIPTION
The addrdsrecwindow function inserts a rdsrec_list rectangle structure in the windowing of the rds structure. The rectangle is added in one
or many windows of the table (it depends on his dimensions). The field 'USER' of the rectangle is used to point to the list of windows
which contains the rectangle. So, the field 'USER' has to be saved in an added structure to the rdsrec_list structure if librfm functions
are used because somes use the field 'USER' to link rectangles (see librds about field 'USER').
Note If the rectangle is contained in only one window, then the field 'USER' points to a "rdswin_list" window structure.
If the rectangle is contained in many windows, the field 'USER' points to a "rdsrecwin_list" structure which is a list which con-
tains windows.
To know if a rectangle belongs to one or many windows, use the macro IsRdsOneWindow defined in librwi.
RETURN VALUE
none
ERRORS
"Rds202: rdsalloc error, can't continue !"
it's impossible to allocate the memory size desired
EXAMPLE
#include "mutnnn.h"
#include "rdsnnn.h"
#include "rwinnn.h"
#include "rtlnnn.h"
# define POINTER_LINKREC(R)
(((UserStruct *)((char *)(R)+sizeof(rdsrec_list)))->LINKREC )
typedef struct UserStruct
{
void *LINKREC;
} UserStruct;
main()
{
rdsfig_list *Figure;
rdsrec_list *Rectangle;
rdswindow *RdsWindow;
rdswin_list *ScanWin;
rdsrecwin_list *ScanRecWin;
mbkenv();
rdsenv();
loadrdsparam();
Figure = addrdsfig( "core",sizeof ( UserStruct ) );
Rectangle =
addrdsfigrec(Figure,"Alu1",RDS_ALU1,2,4,5,1);
/* Using the field 'USER' */
Rectangle->USER = Rectangle;
. . . .
RdsWindow = allocrdswindow();
RdsWindow->XMIN = -200;
RdsWindow->YMIN = -200;
RdsWindow->XMAX = 200;
RdsWindow->YMAX = 200;
RdsWindow->DX = 4;
RdsWindow->DY = 4;
RdsWindow->SIDE = 100;
RdsWindow->SIZE = RdsWindow->DX * RdsWindow->DY ;
RdsWindow->WINTAB = allocrdswin( RdsWindow->SIZE );
/* Save the field 'USER' of the rectangle */
POINTER_LINKREC(Rectangle) = Rectangle->USER;
/* */ addrdsrecwindow( Rectangle, RdsWindow );
/* windows associated to a rectangle are pointed by the
field 'USER' of the rectangle */
/* getting windows (pointer *ScanWin) of a rectangle */
if ( IsRdsOneWindow(Rectangle) )
{
ScanWin = (rdswin_list *) Rectangle->USER;
}
else
{
ScanRecWin = Rectangle->USER;
while ( ScanRecWin != NULL )
{
ScanWin = (rdswin_list *) (ScanRecWin)->WINDOW;
ScanRecWin = ScanRecWin->NEXT;
}
}
. . .
}
SEE ALSO
librwi, delrdsrecwindow
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 ADDRDSRECWINDOW(3)