On Sat, Jun 24, 2000 at 08:01:34PM +0200, Jasper Spit wrote:
-> Hi,
->
-> On Sat, 24 Jun 2000, Charles Curley wrote:
->
-> > I suspect you want to take out the initial hyphen. Here is what I use to
-> > start up the distributed net daemon:
-> >
-> > # dnetc 2000 06 21 16:19:34
-> > pushd /home/dnetc/bin
-> > su dnetc -c \"./dnetc\" -s /bin/bash
-> > popd
-> >
-> > Your initial hyphen tells su to run the login sequence, e.g. run the
-> > .bash_profile, etc.
->
-> This doesn't work for me. I just don't understand why su doesn't load
-> the user's profile. What's the point of the -c option if it doesn't load
-> the profile with the correct PATH settings, etc. ?!?
OK, then try escaping the quotes and the semicolon and any other shell
special characters in the original.
The point of the -c with or without the user profile, etc., depends on
what you are trying to do. You may not want the user profile for some
things. You may want some other profile, like that of the user you are
suing from. Not being a Microsoft product, Linux is not going to prohibit
you from doing something just because the developers can't think of a
reason why you would want to do it.
The sample I showed above does not load the profile, and works just
fine. I didn't load the profile in that one because I didn't need it.
--
-- C^2
No windows were crashed in the making of this email.
Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley
PGP signature