given a relative path, how do i convert it into a full one. i.e. if i am in
/home/polypus
and i am given foo/bar then to get a full path i can just concatinate it with pwd, but what if i am given "../mama"
how do i programmatically convert:
/home/polypus and ../mama into ... (4 Replies)
Hi,
I am trying to develop a simple program that uses Sockets. I have a windows machine and MUST use C++. I found out that I can use C's Socket (#include <sys/socket.h>) API calls, but this is only possible on a unix machine. So I installed Cygwin to imitate a unix environment on my windows... (4 Replies)
This has been bugging me for a while. How can i list file to show full path.
/directory/test
$ ls file.tst
file.tst
$
desired output:
/directory/test/file.tst (2 Replies)
Hi,
My name is Daniel and I'm spanish, so I'm sorry if you can't undertand something becouse of my low-level english.
Something stranger is happening to me with socket++ library and I don't know how to work on it.
I has a library called commands.so and the sslclient is and object of that... (4 Replies)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Hey
I'm new to the forums here, and I'm seeking help for this script that I'm writing. When I do ls -l of a directory it shows the full pathname for files in it. For example, if the directory is /internet/post/forum/ and the file is topic, it currently shows internet/post/forum/topic. What's the... (3 Replies)
My product has 2 libraries say "x & y".
x depends on y.
During the installation of my products package, user will be prompted for his own location to copy my product libraries.
Installation will copy libraries "x & y" and create my product specific ENV variable say "MYPATH" pointing to User... (4 Replies)
I have a small script to send copies of files to another computer used for tests but in the same location:pwd=`pwd`
for i in "$@"
do
echo "rcp -p $i comp-2:$pwd/$i"
rcp -p $i comp-2:$pwd/$i
echo "Finished with $i"
doneIs there a way I can check the parameter to see if it is a full... (5 Replies)
Discussion started by: wbport
5 Replies
LEARN ABOUT SUNOS
libsocket
libsocket(3LIB) Interface Libraries libsocket(3LIB)NAME
libsocket - sockets library
SYNOPSIS
cc [ flag... ] file... -lsocket [ library... ]
DESCRIPTION
Functions in this library provide the socket internetworking interface, primarily used with the TCP/IP protocol suite.
INTERFACES
The shared object libsocket.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object
interfaces.
__xnet_bind __xnet_connect
__xnet_getsockopt __xnet_listen
__xnet_recvmsg __xnet_sendmsg
__xnet_sendto __xnet_socket
__xnet_socketpair accept
bind connect
endnetent endprotoent
endservent ether_aton
ether_hostton ether_line
ether_ntoa ether_ntohost
freeaddrinfo gai_strerror
getaddrinfo getnameinfo
getnetbyaddr getnetbyaddr_r
getnetbyname getnetbyname_r
getnetent getnetent_r
getpeername getprotobyname
getprotobyname_r getprotobynumber
getprotobynumber_r getprotoent
getprotoent_r getservbyname
getservbyname_r getservbyport
getservbyport_r getservent
getservent_r getsockname
getsockopt htonl
htons if_freenameindex
if_indextoname if_nameindex
if_nametoindex in6addr_any
in6addr_loopback inet_lnaof
inet_makeaddr inet_network
listen ntohl
ntohs rcmd
rcmd_af recv
recvfrom recvmsg
rexec rexec_af
rresvport rresvport_af
ruserok send
sendmsg sendto
setnetent setprotoent
setservent setsockopt
shutdown socket
socketpair
FILES
/lib/libsocket.so.1 shared object
/lib/64/libsocket.so.1 64-bit shared object
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsl (32-bit) |
+-----------------------------+-----------------------------+
| |SUNWcslx (64-bit) |
+-----------------------------+-----------------------------+
|MT-Level |See the manual page for |
| |each interface. |
+-----------------------------+-----------------------------+
SEE ALSO pvs(1), intro(2), intro(3), socket.h(3HEAD), attributes(5)SunOS 5.10 2 Nov 2004 libsocket(3LIB)