e-script in a real-life situation, the following hints may
prove useful:
inetd doesn't provide a
full working environment (in contrast to a login shell). This can be
circumvented by sourcing /etc/profile before any other commands,
as in:
unpack-and-build-prog . /etc/profile; \ cd /home/user/src; \ tar xzf $(SRC); \ cd prog; \ make; \ make install
/etc/inetd.conf. (In the example of section 2, this
is root). An effective way of allowing a multiple-user setup is to
let root run e-script, but to su to a different user
depending on each pseudo-command. An example is given below:
# This should run as user "sample" unpack-and-build-prog su - sample -c ' \ . /etc/profile; \ cd /home/user/src; \ tar xzf $(SRC); \ cd prog; \ make; \ make install'
A different pseudo-command might obviously su to a different user.