07-11-2019
I am guessing this post really belongs in another thread. Somewhere. Anybody know? We can move into its proper home
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how to pass values from oracle sql plus to unix shell script (2 Replies)
Discussion started by: trichyselva
2 Replies
2. Shell Programming and Scripting
only the arguments that are written to the file,
my script is (sh /u01app/wkf.sh"$start_no","$name","$Condition","$file_name") like that
when ever I run my script I need to write into a new file every time,
like wise I have upto10 files with different names.bec my $start_no and $name will... (1 Reply)
Discussion started by: sai123
1 Replies
3. Shell Programming and Scripting
Hello,
i am using '#!/bin/bash', i want to make a loop in pl/sql, this loop takes values from a table according to some conditions, each time the loop choose 3 different variables. What i am not able to do is that during the loop i want my shell script to read this 3 variables and run a shell... (1 Reply)
Discussion started by: rosalinda
1 Replies
4. Shell Programming and Scripting
Hi all,
I have two ksh scripts
#sample1.sh
#!/bin/ksh
. ./sample2.sh
echo $fileExist
#sample2.sh
#!/bin/ksh
func()
{
i=1
return $a
}
func
echo $?
Here how should I return the value of sample2.sh back to sample1.sh?
Thanks in advance. (2 Replies)
Discussion started by: gp_singh
2 Replies
5. Shell Programming and Scripting
hi,
Could anyone tell me how to pass the output values of the PL/SQL procedure to Shell script and how to store that values in a shell script variable...
Thanks in advance... (5 Replies)
Discussion started by: funonnet
5 Replies
6. Shell Programming and Scripting
Hi,
is it possible to pass more values from web form like textbox to shell script and if yes,how to do that.:confused::confused::confused: (2 Replies)
Discussion started by: tdev457
2 Replies
7. Shell Programming and Scripting
experts, i wrote a python script to do a certain job, i tried it and it is working fine, i want this script to be executed automatically after a ksh script, the problem is when i execute the ksh script my python script runes perfectly after the ksh script as I have include it at the end of the ksh... (1 Reply)
Discussion started by: q8devilish
1 Replies
8. Shell Programming and Scripting
HIi Guys... I am in a fix.... 1st the code :
Script 123.sh looks like this :
./abc # a script which is getting called in this script
while true
do
count=`ps -ef | grep abc | wc -l`
if
echo "abc is running
sleep 10
fi
done
but the process is getting checked... (5 Replies)
Discussion started by: chatwithsaurav
5 Replies
9. Shell Programming and Scripting
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
10. UNIX for Beginners Questions & Answers
Need ideas on how to achieve the below.
We have a script say "profile.sh" which internally calls another existing script called "name.sh" which prompts for the
name and age of a person upon execution. When i run profile.sh how can i populate a pre-defined value from another file and pass that... (1 Reply)
Discussion started by: sankasu
1 Replies
lgrp_home(3LGRP) Locality Group Library Functions lgrp_home(3LGRP)
NAME
lgrp_home - get home lgroup
SYNOPSIS
cc [ flag... ] file... -llgrp [ library... ]
#include <sys/lgrp_user.h>
lgrp_id_t lgrp_home(idtype_t idtype, id_t id);
DESCRIPTION
The lgrp_home() function returns the ID of the home lgroup for the given process or thread. A thread can have an affinity for an lgroup in
the system such that the thread will tend to be scheduled to run on that lgroup and allocate memory from there whenever possible. The
lgroup with the strongest affinity that the thread can run on is known as the "home lgroup" of the thread. If the thread has no affinity
for any lgroup that it can run on, the operating system will choose a home for it.
The idtype argument should be P_PID to specify a process and the id argument should be its process ID. Otherwise, the idtype argument
should be P_LWPID to specify a thread and the id argument should be its LWP ID. The value P_MYID can be used for the id argument to specify
the current process or thread.
RETURN VALUES
Upon successful completion, lgrp_home() returns the ID of the home lgroup of the specified process or thread. Otherwise, -1 is returned and
errno is set to indicate the error.
ERRORS
The lgrp_home() function will fail if:
EINVAL The ID type is not valid.
EPERM The effective user of the calling process does not have appropriate privileges, and its real or effective user ID does not
match the real or effective user ID of one of the threads.
ESRCH The specified process or thread was not found.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
lgrp_affinity_get(3LGRP), lgrp_init(3LGRP), attributes(5)
SunOS 5.10 1 Jun 2003 lgrp_home(3LGRP)