10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies
2. Shell Programming and Scripting
hi buddies;
i have a very strange problem. i made a script composed of just 5 line. it is containing awk and nawk codes and it is working perfectly when it is applied one-by-one (copy & paste).
but when i type run myscript.mos, it is giving:
nawk: syntax error at source line 1
context is... (5 Replies)
Discussion started by: gc_sw
5 Replies
3. Red Hat
Hello all,
If anyone has time, I have a few questions:
How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too.
1. How to lock the account after a few (like 3) invalid password attempts?
2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies
4. Programming
for a floating-point array x whose size is n, find the geometric mean..
GM =n x1.x2.x3...xn (2 Replies)
Discussion started by: allyjaah
2 Replies
5. Programming
hello,
For school i make the next mission:
give how many chambers in a constant number. use an array which chamber is free and count how many chamber there are free. make also something to test
I don't now how to start. I need an well example so i can make the mission
thank you (1 Reply)
Discussion started by: wouter88
1 Replies
6. Programming
I have some compile programme .crn now I want to run .crn programme on express cobol which allow only *.gnt programme any solution to run *.crn programme (0 Replies)
Discussion started by: bibi
0 Replies
7. Shell Programming and Scripting
Hi Guyz
can u tell me how to write a programme in perl using snmpget.
Regards'
Harrr (0 Replies)
Discussion started by: Harikrishna
0 Replies
8. Programming
Dear Friends,
I ve two text files like
re_im.dat
13.7663000000 5.9572200000
10.2682000000 10.9345000000
5.0810700000 14.1132000000
two real values per row
Sarf.dat
127 128 128 128 71 0
128 128 128 128 71 0
128 128 128 128 71 0
This is having 6... (2 Replies)
Discussion started by: user_prady
2 Replies
9. Shell Programming and Scripting
hi
i am having a c code which gives the output of my password in text format
i.e when i run my c code which which gives the password asfollows====>>>>>>
$./passwdprogram ======>>>>>>abc@123(this is the output)
now i have an expect script to remotely ssh which uses the password set in ... (0 Replies)
Discussion started by: xander
0 Replies
10. UNIX for Dummies Questions & Answers
how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device?
thanks (7 Replies)
Discussion started by: dianayun
7 Replies
PTHREAD_RWLOCK_INIT(3) BSD Library Functions Manual PTHREAD_RWLOCK_INIT(3)
NAME
pthread_rwlock_init -- initialize a read/write lock
SYNOPSIS
#include <pthread.h>
int
pthread_rwlock_init(pthread_rwlock_t *lock, const pthread_rwlockattr_t *attr);
DESCRIPTION
The pthread_rwlock_init() function is used to initialize a read/write lock, with attributes specified by attr. If attr is NULL, the default
read/write lock attributes are used.
The results of calling pthread_rwlock_init() with an already initialized lock are undefined.
RETURN VALUES
If successful, the pthread_rwlock_init() function will return zero. Otherwise an error number will be returned to indicate the error.
ERRORS
The pthread_rwlock_init() function will fail if:
[EAGAIN] The system lacked the necessary resources (other than memory) to initialize the lock.
[ENOMEM] Insufficient memory exists to initialize the lock.
[EPERM] The caller does not have sufficient privilege to perform the operation.
The pthread_rwlock_init() function may fail if:
[EBUSY] The system has detected an attempt to re-initialize the object referenced by lock, a previously initialized but not yet
destroyed read/write lock.
[EINVAL] The value specified by attr is invalid.
SEE ALSO
pthread_rwlock_destroy(3), pthread_rwlockattr_init(3), pthread_rwlockattr_setpshared(3)
STANDARDS
The pthread_rwlock_init() function is expected to conform to Version 2 of the Single UNIX Specification (``SUSv2'').
HISTORY
The pthread_rwlock_init() function first appeared in FreeBSD 3.0.
BUGS
The PTHREAD_PROCESS_SHARED attribute is not supported.
BSD
August 4, 1998 BSD