Re: su and environment.

2010-07-10 Thread Sthu Deus
Thank You for Your time and answer, Bob: > > $ su -c 'abc' -l anotheruser > > > > but it returns > > > > -su: abc: command not found > > > > The abc is in the anotheruser's path, but it seems option '-l' does > > not work here. > > > > How I can accomplish the goal (without manually specifying

Re: su and environment.

2010-07-09 Thread Bob Proulx
Sthu Deus wrote: > $ su -c 'abc' -l anotheruser > -su: abc: command not found > > The abc is in the anotheruser's path, but it seems option '-l' does not > work here. A very confusing topic and one often discussed is the process bash uses to start up and what environment files are processed and a

Re: su and environment.

2010-07-08 Thread Bob McGowan
On 07/08/2010 02:27 AM, Sthu Deus wrote: > Good day. > > The following: > > $ su -c 'abc' -l anotheruser > > but it returns > > -su: abc: command not found > > The abc is in the anotheruser's path, but it seems option '-l' does not > work here. > > How I can accomplish the goal (without manua