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.
Your question doesn't really give enough info (i.e. which OS you're using)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT LINUX
uselib
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)