10-30-2009
Quote:
Originally Posted by
sylwesterr
[...]
1. why one would use env tool to launch perl instead of launching perl directly?
You could need to call it that way when you don't have control over the owner of the apache process and/or
you want to use the same configuration file on more non identical systems.
Quote:
2. how to modify the env's output?
If the above is not true just modify the environment of the owner of the apache process and point directly to the desired
Perl interpreter.
You will use
/usr/bin/env ... when you are not sure where exactly the needed executable is located, but you're sure it can be found somewhere in the environment.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
2. AIX
I need help figuring out why I lose /usr/bin directory sometimes it goes down 3-4 times a day and I have to link them back using ln - /usr/bin bin I cannot figure out why this is happenning (23 Replies)
Discussion started by: smatherly
23 Replies
3. Solaris
Hi all,
below is the problem details:
ora10g@CNORACLE1>which ld
/usr/ucb/ld
ora10g@CNORACLE1>cd /usr/ccs/bin
ora10g@CNORACLE1>ln -s /usr/ucb/ld ld
ln: cannot create ld: File exists
ora10g@CNORACLE1>
how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies
4. Solaris
Hi ,
Can anyone tel me how to read the content of /usr/bin/rm file and pls tell me is it possible to edit that file??? (23 Replies)
Discussion started by: sudhan143
23 Replies
5. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
6. Solaris
Hi Experts,
I found that the same commands(sort, du, df, find, grep etc.) exists in both dir.
What is the difference to use them?
i.e: to use xpg4/bin/grep and usr/bin/grep
My OS version is SunOS 5.10
Regards,
Saps (7 Replies)
Discussion started by: saps19
7 Replies
7. BSD
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)
Discussion started by: AntumDeluge
2 Replies
8. Shell Programming and Scripting
Hi.
In thread https://www.unix.com/shell-programming-and-scripting/265878-date-format-problem.html , Aia and I were discussing the usefulness of using #!/usr/bin/env bash (or ksh, or perl, or ...) as the shebang line. The exchange was good, but it was getting beyond the scope or the thread, so I... (4 Replies)
Discussion started by: drl
4 Replies
9. Shell Programming and Scripting
Hi,
I installed ruby using rvm with root user on Linux.
Now i m trying the below command as a non root user with sudo privileges.
sudo /usr/local/rvm/rubies/ruby-2.2.5/bin/gem install passenger
I get the below error:
I had even reset the path for both gem as well as ruby as you... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT ULTRIX
siglongjmp
sigsetjmp(3) Library Functions Manual sigsetjmp(3)
Name
sigsetjmp, siglongjmp - nonlocal goto
Syntax
#include <setjmp.h>
sigsetjmp(env, savemask)
sigjmp_buf env;
void siglongjmp(env, val)
sigjmp_buf env;
Description
These routines deal with errors and interrupts encountered in a low-level subroutine of a program.
The subroutine saves its stack environment in env for later use by It returns a value of 0. If the value of the savemask argument is not
zero, the subroutine also saves the process' current signal mask as part of the calling environment.
The subroutine restores the environment saved by the last call of with the supplied env buffer. If the env argument was initialized by a
call to the subroutine with a nonzero savemask argument, the subroutine restores the saved signal mask. It then returns in such a way that
execution continues as if the call of had just returned the value val to the subroutine that invoked which must not itself have returned in
the interim. However, cannot cause to return the value 0. If is invoked with a val of 0, returns a value of 1. All accessible data have
values as of the time was called.
Restrictions
The subroutine does not save the current notion of whether the process is executing on the signal stack. When you invoke the subroutine,
the signal stack is left in an incorrect state.
See Also
sigstack(2), sigvec(2), signal(3), sigprocmask(3)
sigsetjmp(3)