07-09-2009
why we need to set the absolute path? If I am using my own application or binaries I like to set the relative path. But for system binaries definitely I use absolute path.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello
On Debian Lenny, I first ran apt-get install git-core and then removed it to install from source. The trouble is that when I typed git --version, I am get:
-bash: /usr/bin/git: No such file or directory
of course, git is now in /usr/local/bin
I don't understand why since... (1 Reply)
Discussion started by: JCR
1 Replies
2. UNIX for Advanced & Expert Users
Is there something which is an alternative to the variable LD_LIBRARY_PATH?
The behaviour of this variable is that the path specified here will be checked before checking usual paths. But I want to have some folders checked for shared libraries after the usual paths. i.e usual paths have to... (3 Replies)
Discussion started by: bbala
3 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I logged in to the unix solaris with my user name and then I again logged in with the sudo bash -l command
now when I do echo $PATH
It shows me => /usr/bin:/usr/local/bin:/usr/bin/usr/sbin:/usr/ucb:/usr/local/bin
How do i find out where is this file located for setting the... (3 Replies)
Discussion started by: siddhans
3 Replies
4. Shell Programming and Scripting
This is weirdly a linux question I suppose.
Im having a problem with this code the file path is fine if I don't use the ~ and put in the user /Users/tempuser/....
This will be installed on more than one computer and changing the plist for every install is going to become tedious.
Is there... (1 Reply)
Discussion started by: digitalviking
1 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
In Windows, whenever I want a execute a program using just a relative path on the command prompt, I simply edit the 'Path' variable and append my parent directory.
Is there something like this available in Unix? I have a binary for Virtualbox called VBoxManage that I want to execute... (6 Replies)
Discussion started by: silverdust
6 Replies
6. UNIX for Dummies Questions & Answers
I use the following command to print the current directory above the command prompt
set prompt="`exec pwd`\n$USER@`hostname -s` %B: % > "
The output is something like this
<current path>
$USER@hostname >
But when I try to CD to any other directory and press the return key, the... (6 Replies)
Discussion started by: aelhosiny
6 Replies
7. Shell Programming and Scripting
Greetings Experts,
I need to pass a parameter to ksh and the value is windows path eg: sh abc.txt C:\Users\chill3chee\Desktop
No matter I try with \ delimiter, still could not get this exact value assigned to the shell variable which was checked with echo. Tried with using... (2 Replies)
Discussion started by: chill3chee
2 Replies
8. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
9. AIX
Hello,
I have encountered the issue on my AIX 6.1. As you can see below, the hdisk1 & hdisk8 are not recognized by the system
/ > lspv
hdisk0 00fa6d1288c820aa rootvg active
hdisk1 00fa6d1288c8213c None
hdisk2 ... (9 Replies)
Discussion started by: Phat
9 Replies
10. Linux
Hi All,
Is there anyone encounter filenaming with Ñ or ñ reading?.
Is the any other way to handle enye both redhat environment and java?
We look in the log and founfout reading pathname or filename with enye Ñ, look like MONTA?O instead of MONTAÑO.
We tried to transfer files from my windows... (4 Replies)
Discussion started by: lxdorney
4 Replies
LEARN ABOUT FREEBSD
connectat
CONNECTAT(2) BSD System Calls Manual CONNECTAT(2)
NAME
connectat -- initiate a connection on a socket
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
int
connectat(int fd, int s, const struct sockaddr *name, socklen_t namelen);
DESCRIPTION
The connectat() system call initiates a connection on a socket. It works just like the connect(2) system call with two exceptions:
1. It is limited to sockets in the PF_LOCAL domain.
2. If the file path stored in the sun_path field of the sockaddr_un structure is a relative path, it is located relative to the
directory associated with the file descriptor fd. If connectat() is passed the special value AT_FDCWD in the fd parameter, the
current working directory is used and the behavior is identical to a call to connect(2).
RETURN VALUES
The connectat() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
The connectat() system call may fail with the same errors as the connect(2) system call for a UNIX domain socket or with the following
errors:
[EBADF] The sun_path field does not specify an absolute path and the fd argument is neither AT_FDCWD nor a valid file descriptor.
[ENOTDIR] The sun_path field is not an absolute path and fd is neither AT_FDCWD nor a file descriptor associated with a directory.
SEE ALSO
bindat(2), connect(2), socket(2), unix(4)
AUTHORS
The connectat was developed by Pawel Jakub Dawidek <pawel@dawidek.net> under sponsorship from the FreeBSD Foundation.
BSD
February 13, 2013 BSD