10-31-2012
1 : Finding the first process: once youve mastered a bit ps command it should not be too difficult to find the requested... it must be PID 0 or 1 or...
You are to look at the man pages for ps syntax differ between OS (e.g ps ax v.s. ps -ef...)
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How would one find and list all links in a file system? My situation is
that I built several servers for disaster recovery, mirror images of
several servers in our main location. Instead of doing a "ls -l" on every
file system down the /usr structor to verify that I have all the necessary
links... (3 Replies)
Discussion started by: ruger14
3 Replies
2. Shell Programming and Scripting
hi
i m new to this forum as well as UNIX. I've got an assignment but i don't know how can I start it.
can anyone please help to tell me how can I start it?
I added here few lines from my assignment.
In industry, it is common for a single organisation to provide technical support for a... (0 Replies)
Discussion started by: moco
0 Replies
3. AIX
Hi,
Just wondered what command you would use to list all the files on Aix by filesize?
I've tried a few but none of which seem to do the trick!
Currently running du -m -a . | sort -rn | more as root
Thanks,
Matt. (1 Reply)
Discussion started by: elmesy
1 Replies
4. Shell Programming and Scripting
Hi, I am trying to access and read certain lines from a configuration XML file on multiple servers (within the LAN). Fortunately the file name and path is always the same for all servers. An example extract of the file is as follows:
<DUMMY-SMSC>false</DUMMY-SMSC> ... (2 Replies)
Discussion started by: jaz8212
2 Replies
5. Infrastructure Monitoring
I am trying to locate the proper MIB and OID location, to determine if the system attention light is on IBM-702x servers running 5.x.
Currently, we get this on our Blade Centers Management Modules at location: 1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.7.xx were xx is the actual Blade number. A value of 1... (0 Replies)
Discussion started by: stamfdf
0 Replies
6. Shell Programming and Scripting
Hi,
When i use the system( ) function inside a awk, i am getting the ouput with a 0 appended in a new line.
Can someone guide me to eliminate the extra line containing 0.
Ex :
awk -F"|" '{print system("convert.sh" $1}'
The output is displayed with 0 in a new line.
... (8 Replies)
Discussion started by: muruganksk
8 Replies
7. Solaris
Hello Friends,
I need to change network filesystem status as online but it always seems in maintenance mode, I appreciate your any suggestion to change its state as online.
shell>svcadm enable svc:/system/filesystem/local
shell>svcs -l svc:/system/filesystem/local
fmri ... (4 Replies)
Discussion started by: EAGL€
4 Replies
8. Shell Programming and Scripting
HI
I want to get an e-mail @ my yahoo address when the file system used space gets more than 89% ,
& the message contents must be the outputs of
df -g
errpt
netstat -i
??????? (3 Replies)
Discussion started by: majd_ece
3 Replies
9. What is on Your Mind?
Dear All,
Here is the current status of the badging system:
The Beta 1 phase of the new badging system is close to completion.
42 prototype badges have been "allocated"
6 prototype badge slots are held in reserve
The "alert you have new badges" prototype is running and is currently... (4 Replies)
Discussion started by: Neo
4 Replies
LEARN ABOUT CENTOS
gettid
GETTID(2) Linux Programmer's Manual GETTID(2)
NAME
gettid - get thread identification
SYNOPSIS
#include <sys/types.h>
pid_t gettid(void);
Note: There is no glibc wrapper for this system call; see NOTES.
DESCRIPTION
gettid() returns the caller's thread ID (TID). In a single-threaded process, the thread ID is equal to the process ID (PID, as returned by
getpid(2)). In a multithreaded process, all threads have the same PID, but each one has a unique TID. For further details, see the dis-
cussion of CLONE_THREAD in clone(2).
RETURN VALUE
On success, returns the thread ID of the calling process.
ERRORS
This call is always successful.
VERSIONS
The gettid() system call first appeared on Linux in kernel 2.4.11.
CONFORMING TO
gettid() is Linux-specific and should not be used in programs that are intended to be portable.
NOTES
Glibc does not provide a wrapper for this system call; call it using syscall(2).
The thread ID returned by this call is not the same thing as a POSIX thread ID (i.e., the opaque value returned by pthread_self(3)).
SEE ALSO
capget(2), clone(2), fcntl(2), fork(2), get_robust_list(2), getpid(2), ioprio_set(2), perf_event_open(2), sched_setaffinity(2), sched_set-
param(2), sched_setscheduler(2), timer_create(2), tgkill(2)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2013-02-04 GETTID(2)