will this script work? I want to use it in unix.
clear
ans='y'
While test $ans='y'
do
notfound()
{
echo $response " is not logged in"
}
found()
{
echo $response "is logged into " $name
}
name=`ps -eaf | grep "\<$response\>" | cut -b 80-85`
if
;
then
name=`rsh server2 ps -eaf... (7 Replies)
Alright, so I'm interested in using Unix, but I have a couple of pretty basic questions:
1) What's the relationship between Linux and Unix? Are they one and the same, or completely different?
2) Can you use Unix on a laptop?
and
3) Where can you get Unix?
Thanks for listening. (9 Replies)
I have been reading up on starting a website, but i am still lost. I am in much need of assistance. Kind of a step by step because i still don't know where to start. please help. thank you (1 Reply)
First time so excuse my ignorance please.
I may not be accurately describing the issue.
I have inherited a small lab mostly SUN V120s.
We lost power and are trying to recover.
Nope no backups...
The primary issue I have is 1 box is an Oracle Server.
It has 2 36Gb harddrives.
I am able to... (3 Replies)
:eek: im trying to make a website and im on a site that tells how...
but, it says 2 access my unix account to make 1 online and im alrdy confused!! (1 Reply)
Fair warning... I know nothing of Unix. That's why I joined this forum and I need your feedback desperatly. Here is the situation...
I built an app using ASP and Northcode's SWF Studio v3 for a cd launcher tool for a client that develops software. They like the app and it works well on... (2 Replies)
I have been using linux now for about 6 months. I like it although it was quite a learning process. Pretty simple for the most part. Here is my prob...
The first time I installed linux on my computer it went in just fine, no problems.
It did eventually crash though and I had to re-install it.... (2 Replies)
I want to execute my own utilities from my bin folder without having to specify paths at run time - i.e. just enter name on command line - to do
this my search path needs to be set up at login time - when I do this the path is not getting set right apparently(?) - PATH echos OK but the search... (0 Replies)
I am taking an online Linux class, which is mandatory for me to graduate. Unfortunately I got the worst online teacher ever, he never respond to any e-mails. I have no idea what going on in this class so I am turning to you guys.
Here is the questions for the week, Ok I don't expect anybody to... (1 Reply)
Discussion started by: Thunderbunny
1 Replies
LEARN ABOUT HPUX
pthread_rwlockattr_setpshared
pthread_rwlockattr_getpshared(3T)pthread_rwlockattr_getpshared(3T)NAME
pthread_rwlockattr_getpshared(), pthread_rwlockattr_setpshared() - get or set the process-shared attribute
SYNOPSIS PARAMETERS
attr Pointer to the read-write lock attributes object whose attributes are to be set/retrieved.
pshared This parameter either specifies the new value of the process-shared attribute (set function) or points to the memory loca-
tion where the process-shared attribute of attr is to be returned (get function).
DESCRIPTION
The attributes object attr must have been previously initialized with the function before these functions are called.
Read-Write locks can be used only by threads within the process or shared by threads in multiple processes. The process-shared attribute in
a read-write lock attributes object describes who may use the read-write lock. The legal values for the process-shared attribute are:
This option permits a read-write lock to be operated upon by any thread
that has access to the memory where the read-write lock is allocated. The application is responsible for allocating the
read-write lock in memory that multiple processes can access.
The read-write lock can only be operated upon by threads created within
the same process as the thread that initialized the read-write lock. If threads of differing processes attempt to operate on
such read-write lock, the behavior is undefined.
The default value of process-shared is
is used to set the process-shared attribute in the initialized attributes object attr. The new value of the process-shared attribute of
attr is set to the value specified in the pshared parameter.
retrieves the value of the process-shared attribute from the read-write lock attributes object attr. The value of the process-shared
attribute of attr is returned in the pshared parameter.
RETURN VALUE
Upon successful completion, and return zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the and functions return the corresponding error number:
is not defined and these functions are not supported.
For each of the following conditions, if the condition is detected, the and functions return the corresponding error number:
The value specified by
attr is invalid.
The value specified by
pshared is not a legal value.
The value pshared points to an illegal address.
WARNINGS
If a read-write lock is created with the process-shared attribute defined as the cooperating processes should have access to the memory in
which the read-write lock is allocated.
AUTHOR
and were developed by X/Open.
SEE ALSO pthread_create(3T), pthread_rwlockattr_init(3T), pthread_rwlock_init(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_rwlockattr_getpshared(3T)