7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the below bash which runs great. Before I make a change I wanted to check with experts (as I am not one). After the perl code completes, I am going to display "annotation complete" then go into the remove function .
annovar() {
# combine id and position files
cd... (2 Replies)
Discussion started by: cmccabe
2 Replies
2. Shell Programming and Scripting
Hi I wanted to call the AutoFsm function (given below) in vim to generate a code something like:
**********verilog code to generate *************
always @(posedge clk or negedge rst_n) begin
if(!rst_n) begin
state_r <= #1 next_stateascii_r; ... (0 Replies)
Discussion started by: dll_fpga
0 Replies
3. AIX
Hi Admins,
I am having a whole system lpar in open firmware state on HMC.
How can I bring it to running state ?
Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies
4. Programming
I am very new at programming and this is probably an easy question, but I am desperate. I need to change this low level code into a C program that I can run so I can print out every "A" that appears with the fork() command. You help is greatly appreciated.
PRINT A
p=fork()
if( p == 0) {... (0 Replies)
Discussion started by: tpommm
0 Replies
5. Shell Programming and Scripting
Dear all,
I have file like below shown. In that file i need to identify how many state change in the column "type".For example 94713357873 goes from type B --> 1
i need to count it.But when we count the x number should be uniq, cant get the count B-->1 state chage for different x numbers.
so... (2 Replies)
Discussion started by: Nayanajith
2 Replies
6. UNIX for Dummies Questions & Answers
Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in.
Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies
7. Shell Programming and Scripting
So a script is working properly (tested many times) , then you add a new fine piece of code ,finaly its fails generally with a syntax error at the last line of the script.
:confused:... does anybody why this happens?
>uname -a
HP-UX test... (4 Replies)
Discussion started by: Klashxx
4 Replies
PTHREAD_DETACH(3) Library Functions Manual PTHREAD_DETACH(3)
NAME
pthread_detach - put a running thread in the detached state
SYNOPSIS
#include <pthread.h>
int pthread_detach(pthread_t th);
DESCRIPTION
pthread_detach put the thread th in the detached state. This guarantees that the memory resources consumed by th will be freed immediately
when th terminates. However, this prevents other threads from synchronizing on the termination of th using pthread_join.
A thread can be created initially in the detached state, using the detachstate attribute to pthread_create(3). In contrast, pthread_detach
applies to threads created in the joinable state, and which need to be put in the detached state later.
After pthread_detach completes, subsequent attempts to perform pthread_join on th will fail. If another thread is already joining the
thread th at the time pthread_detach is called, pthread_detach does nothing and leaves th in the joinable state.
RETURN VALUE
On success, 0 is returned. On error, a non-zero error code is returned.
ERRORS
ESRCH No thread could be found corresponding to that specified by th
EINVAL the thread th is already in the detached state
AUTHOR
Xavier Leroy <Xavier.Leroy@inria.fr>
SEE ALSO
pthread_create(3), pthread_join(3), pthread_attr_setdetachstate(3)
LinuxThreads PTHREAD_DETACH(3)