10-13-2009
Hello, I am sorry about not following guidelines. I will follow for future posting.
I am sorry for inconvenience. I would appreciate if any one can help me on this.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello there!
Here is my problem. I hope I can get some help about it.
I need to know how can I get the return code of an application in the Unix shell script.
The script is like below:
PREVIOUS STATEMENT & VARIABLES
sqlplus scott/tiger @$sqldir/$sqlscript
NEXT STATEMENT (Like... (7 Replies)
Discussion started by: Shaz
7 Replies
2. Shell Programming and Scripting
Im a newbee..
I have a script which runs few times daily. I want to write another script which should pick up the latest log generated from the last run of the first job and trigger a thrid script if the first script runs successfuly.
Please help...
Cheers (1 Reply)
Discussion started by: Athena
1 Replies
3. UNIX for Dummies Questions & Answers
there is something wrong with my system. when I do this:
diff file1 file1 && echo 1
the output is 1.
but
diff file1 file2 >/dev/null && echo 1
output nothing
while
diff file1 file2 >/dev/null || echo 1
shows 1.
the same with "grep" return status. they are both GNU utilities.... (5 Replies)
Discussion started by: phil518
5 Replies
4. UNIX for Advanced & Expert Users
Hi Experts:
I have a shell script that's kicked off by cron. Inside this shell script, I need to kick off two or more oracle sql scripts to process different groups of tables. And when both sql scripts are done, I will continue in the shell script to do other things like checking processing... (3 Replies)
Discussion started by: huasheng8
3 Replies
5. Shell Programming and Scripting
Hi All,
I need to return value to the main shell script, depending on whether the UPDATE command in the embedded pl/sql is successfu or not.
#!bin/ksh
updateStatus=`sqlplus --conn details-- << EOF
DECLARE
var_rows NUMBER;
BEGIN
update table_name
set column_name =... (7 Replies)
Discussion started by: rituparna_gupta
7 Replies
6. Shell Programming and Scripting
Hi,
I am trying to capture logs of the script in the file as well as on the screen. I have used exec and tee command for this. While using exec command I am getting the correct output in the file but, script output is not getting displayed on the screen as it get executed.
Below is my sample... (14 Replies)
Discussion started by: Prathmesh
14 Replies
7. Shell Programming and Scripting
Hi All,
Need some help like how to exit from the script after updating the column in data base.
db2 connect to DB
STATUS=$(db2 "SELECT STATUS FROM XYZ )
echo $STATUS
Initially the status value will be '4' or 'NOT YET RUN'.
The Shell script has to run until the status value is updated... (7 Replies)
Discussion started by: sumanmca2006
7 Replies
8. Shell Programming and Scripting
Main Script
#!/bin/ksh
echo "Maimn script"
./clocal/www/web-data/WAS/WebSphere7/scripts/DealerLocator/Scripts/secondscript.ksh
echo "$? = status"
Sdecond Script
#!/bin/ksh
echo "In second SCript"
exit 1
Output:
Maimn script
./testmain.ksh:... (4 Replies)
Discussion started by: dineshaila
4 Replies
9. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT HPUX
numa_mode
numa_mode(5) File Formats Manual numa_mode(5)
NAME
numa_mode - HP-UX kernel mode on NUMA servers
VALUES
Default
Allowed values
Integer values or
DESCRIPTION
HP-UX can operate in one of two modes (LORA or SMP) when operating on ccNUMA (cache coherent Non-Uniform Memory Architecture) servers.
LORA is the Locality-Optimized Resource Alignment mode. SMP is the Symmetric Multiprocessor mode. See for information on LORA mode.
LORA mode is optimal when the underlying partition is configured according to the guidelines for LORA Partitions. In LORA mode, HP-UX
attempts to align the allocation of memory and scheduling of processes within the minimal number of localities. SMP mode is optimal when
the partition does not meet the guidelines for LORA partitions. In SMP mode, HP-UX distributes the memory and CPU allocations across all
the localities.
The tunable allows users to set the mode independent of the partition guidelines.
There are 3 possible values for this tunable.
This value is the default value.
HP-UX evaluates the hardware configuration at boot time to determine the appropriate mode. HP-UX automatically switches into
LORA mode when the partition meets the guidelines for LORA partitions; otherwise, it switches into SMP mode. The tunable
should also be set to zero to allow HP-UX to perform memory allocation in NUMA aware manner when HP-UX is set to LORA mode.
Use to determine the HP-UX mode of operation.
This value causes HP-UX to operate in LORA mode even if the partition does
not meet LORA Partitions guidelines. It minimizes the number of localities used to meet the CPU and memory requirements of a
workload.
This value causes HP-UX to operate in SMP mode operation. It spreads the
load evenly across all the localities.
Restrictions on Changing
Changes to this tunable take effect upon next reboot.
When Should the Value of This Tunable Be Changed to 1?
should be changed to 1 if the partition is configured with more than 50% local memory but is not compliant with LORA guidelines.
When Should the Value of This Tunable Be Changed to -1?
should be set to -1 on NUMA server if the partition has been extensively tuned for NUMA by passing hints to APIs such as and or by using
commands such as The memory allocation policy should be appropriately set using the tunable.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
SEE ALSO
mpsched(1), parconfig(1M), parcreate(1M), parmodify(1M), fadvise(2), shmget(2), mpctl(2), numa_policy(5), numa_sched_launch(5), lora(7).
white paper at
Tunable Kernel Parameters numa_mode(5)