--- Arvind <[EMAIL PROTECTED]> wrote:
> if i run this command
> 
>  su - amavis /usr/sbin/amavisd

> su amavis
> 
> $ /usr/sbin/amavisd
> 
> then it works perfectly.

>From what I understand su - amavis /usr/sbin/amavis will emulate a
proper login sequence in terms of setting environment variables and
terminal setup and then pass /usr/sbin/amavis to the default shell with
the -c option. Now "-c" in turn tells the shell to read the commands
from the file instead of from the terminal. I am assuming somehow the
'-c" option also disables the shell's capabilities to change the
interpretor for the file from bash to perl using the "#!/usr/bin/perl"
sequence.



Mithun

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to