Sponsored Content
Full Discussion: process command
Top Forums UNIX for Dummies Questions & Answers process command Post 56114 by zazzybob on Tuesday 28th of September 2004 09:14:18 AM
Old 09-28-2004
This is definitely in the wrong forum (I'm sure a mod will move it)!

Anyway, try the "ldd" command to show shared libraries (under Linux anyway), e.g.
Code:
$ ldd /bin/ls
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x4001e000)
        libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Your question doesn't really give enough info (i.e. which OS you're using)

Cheers
ZB
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

trying to read batch process but need some command help

I am trying to access batch process that take place each nite. I am using Solaris 5.8 (and i am used to redhat). however I am trying to access say a certain directory. The home/oradev , is the directory...in there i am trying to access say a batch file within this, how can see if they are in... (1 Reply)
Discussion started by: etravels
1 Replies

2. Shell Programming and Scripting

need script to process ls-l command

ne1 know how i can do this???? a script that process the output of UNIX command ls -l cheers (12 Replies)
Discussion started by: sinner
12 Replies

3. Shell Programming and Scripting

Process ID of Command

I need a way to get the Process ID of the last command I executed in a script. Not the last background process but the last command. For example, suppose I am executing a binary inside a script like so. binary.program argument1 argument2 If this binary program runs fast, is there a... (4 Replies)
Discussion started by: scotbuff
4 Replies

4. Shell Programming and Scripting

what is the command to how much percentage has taken by a process

Hello Friends, please help me to know about tha above question. Thanks & Regards Siva Ranganath 7760774961 (1 Reply)
Discussion started by: sivaranganath
1 Replies

5. Shell Programming and Scripting

Running a command in a new process?

Hello I'm using GNU screen for an application that I'm making. I will try to explain: This application opens 2 screen session, A and B. Screen session A has a script running in teh first window. I want to be able to switch from screen session A to screen session B, from the script running in... (1 Reply)
Discussion started by: jondecker76
1 Replies

6. Shell Programming and Scripting

Tracking process via ps command

Hello folks, I am tracking a process httpd only. But when i am grepping it, it is returning me multiple process of httpd, second it is showing another process of monitorix-httpd. Below commands i have tried. Current output # ps ax |grep http 929 ? Ss 0:00 monitorix-httpd... (5 Replies)
Discussion started by: learnbash
5 Replies

7. Shell Programming and Scripting

Getting Process ID of a ftp command

Dear all Here is my command in my ksh script: ftp ${ftpParameter} ${serverName} 2>&1 <${ftpScriptFile} |tee -a $LOG_FILE & ftpPid=$! wait Due to server problem,the server accepts the connection and then do nothing,it makes the above script hang, is it possible to set time out for ftp... (1 Reply)
Discussion started by: cstsang
1 Replies

8. Shell Programming and Scripting

Storing process Id of a nohup command

Hi, I am running below code: for i in `ls` do nohup sqlldr userid=apps/apps data=data01.dat log=my1.log control=my.ctl bad=my1.bad direct=yes silent=all parallel=true & done This will run the sqlldr command in parallel as a background process. I want to store the process Id each... (7 Replies)
Discussion started by: Pratiksha Mehra
7 Replies

9. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies

10. Shell Programming and Scripting

Check if process is running if not then use command

Hello, Could someone do the following bash ubuntu script for me? I have 5 screen processes of bot: SCREEN -dmS Xbot_instance_1 php core.php -i 1 SCREEN -dmS Xbot_instance_2 php core.php -i 2 SCREEN -dmS Xbot_instance_3 php core.php -i 3 SCREEN -dmS Xbot_instance_4 php core.php -i 4 ... (2 Replies)
Discussion started by: kotch
2 Replies
USELIB(2)						     Linux Programmer's Manual							 USELIB(2)

NAME
uselib - load shared library SYNOPSIS
#include <unistd.h> int uselib(const char *library); DESCRIPTION
The system call uselib() serves to load a shared library to be used by the calling process. It is given a pathname. The address where to load is found in the library itself. The library can have any recognized binary format. RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS
In addition to all of the error codes returned by open(2) and mmap(2), the following may also be returned: EACCES The library specified by library does not have read or execute permission, or the caller does not have search permission for one of the directories in the path prefix. (See also path_resolution(7).) ENFILE The system limit on the total number of open files has been reached. ENOEXEC The file specified by library is not an executable of known type, e.g., does not have the correct magic numbers. CONFORMING TO
uselib() is Linux-specific, and should not be used in programs intended to be portable. NOTES
uselib() was used by early libc startup code to load the shared libraries with names found in an array of names in the binary. Since libc 4.3.2, startup code tries to prefix these names with "/usr/lib", "/lib" and "" before giving up. In libc 4.3.4 and later these names are looked for in the directories found in LD_LIBRARY_PATH, and if not found there, prefixes "/usr/lib", "/lib" and "/" are tried. From libc 4.4.4 on only the library "/lib/ld.so" is loaded, so that this dynamic library can load the remaining libraries needed (again using this call). This is also the state of affairs in libc5. glibc2 does not use this call. SEE ALSO
ar(1), gcc(1), ld(1), ldd(1), mmap(2), open(2), dlopen(3), capabilities(7), ld.so(8) COLOPHON
This page is part of release 3.27 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 2005-01-09 USELIB(2)
All times are GMT -4. The time now is 02:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy