[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash Script Issues



On Sun,14.Sep.08, 19:28:20, Telly Williams wrote:
 
[...]

> 	echo "Still more..."
> 	su -c /home/different/etc.sh <different_user>
 
[...]

> 	When I excute the script, the first two above will execute no problem.  
> But when it gets to the third, where it changes to the <different_user>, the script 
> goes to a shell prompt (<different_user@localhost>) instead of executing the script 
> as the said different_user.  If I type "exit", then the fourth line of the script 
> above gets executed.  Why is that?  I've looked at google and the Debian User archives, 
> but can't seem to find why my script doesn't automatically execute as the said user.  Thanks. 
 
Does it work if you run it directly?

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: