Im trying to create a script to create a dir-tree of pod converted to html. so far this is the script:
It kinda works but the dirs don't get created and some dirs are comming out as .html files... I know iv'e overlooked something so simple but i cant see it ... In need of some jolt me thinks
Hello UNIX people. I was just cruising around my UFS and came across the directory /usr/lib/32. This directory continues up many directories (/usr/lib/32/32/32/32->). Each level of 32/ directory seems to be a copy of the previous one. I have been working with UNIX for a little while now, but I... (3 Replies)
I want to move /usr/lib on a seperate partition.
( is is now all at / )
I know how to copy data and update fstab but...
At boot time, the mepis distro already needs stuff from /usr/lib but it is not mounted yet. So i get error before /usr/lib is mounted.
Does this mean you cannot move... (4 Replies)
pls my server that is running UnixOs solaris is not working properly. it use to display the following errors:
INIT:Command is respawning too rapidly. check for possible errors.
id: sc "/usr/lib/saf/sac -t 300"
what am i suppose to do to correct this problem?
Regards. (1 Reply)
did something very dump under /usr/lib, eg: overwite a bunch of files from a similar system's /usr/lib, while the system is live..
I have no backup on this..it crashed...and came up with a bunch of device driver load errors and hung...
This is Solaris10 update 7 .. I wonder if I could do a... (0 Replies)
We are trying to install our project on solaris 10 x86 machine. we are getting the following error.
Can't load '/u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so' for module DBI: ld.so.1: perl: fatal:
/u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so: wrong ELF data... (3 Replies)
Hi,
i have a solaris 5.10 machine on which i am getting below error while
executing cat command
ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory
Killed
it is related to file vhost.so missing
Also when i did ldd cat result is as below
libc.so.1... (1 Reply)
Hi,
I want to use the function "v12n_domain_uuid" on solaris box. The library "libv12n" is present in /usr/lib but i can't locate the header "libv12n.h" anywhere in the box.
How do i run the API "v12n_domain_uuid" (4 Replies)
I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries.
I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble:
$ ./autogen.sh
checking... (2 Replies)
Dear All
After powering on my Netra120 Solaris server and waiting for all of the installed processes to be started , when trying for login I am getting :
"can not open module /usr/lib/security/pam_authtok_get.so.1"
Can you please let me know what has happened to my server and how can I reach... (3 Replies)
Discussion started by: hadimotamedi
3 Replies
LEARN ABOUT POSIX
basename
BASENAME(3P) POSIX Programmer's Manual BASENAME(3P)PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
basename -- return the last component of a pathname
SYNOPSIS
#include <libgen.h>
char *basename(char *path);
DESCRIPTION
The basename() function shall take the pathname pointed to by path and return a pointer to the final component of the pathname, deleting
any trailing '/' characters.
If the string pointed to by path consists entirely of the '/' character, basename() shall return a pointer to the string "/". If the
string pointed to by path is exactly "//", it is implementation-defined whether '/' or "//" is returned.
If path is a null pointer or points to an empty string, basename() shall return a pointer to the string ".".
The basename() function may modify the string pointed to by path, and may return a pointer to internal storage. The returned pointer might
be invalidated or the storage might be overwritten by a subsequent call to basename().
The basename() function need not be thread-safe.
RETURN VALUE
The basename() function shall return a pointer to the final component of path.
ERRORS
No errors are defined.
The following sections are informative.
EXAMPLES
Using basename()
The following program fragment returns a pointer to the value lib, which is the base name of /usr/lib.
#include <libgen.h>
...
char *name = "/usr/lib";
char *base;
base = basename(name);
...
Sample Input and Output Strings for basename()
In the following table, the input string is the value pointed to by path, and the output string is the return value of the basename() func-
tion.
+---------------+---------------+
| Input String | Output String |
+---------------+---------------+
|"/usr/lib" | "lib" |
|"/usr/" | "usr" |
|"/" | "/" |
|"///" | "/" |
|"//usr//lib//" | "lib" |
+---------------+---------------+
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
dirname()
The Base Definitions volume of POSIX.1-2008, <libgen.h>
The Shell and Utilities volume of POSIX.1-2008, basename
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2013 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, Copyright (C) 2013 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Stan-
dard is the referee document. The original Standard can be obtained online at http://www.unix.org/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source
files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
IEEE /The Open Group 2013 BASENAME(3P)