init process & directory
hi all
earlier i inquired about running a process via inittab with an owner
other than root. the suggestion of 'su - myuser -c mycommand' did the
job very well.
i now have a similar question. i want to run the same process but i
want the process to think that it's on a different directory. since
mycommand reads files in /home/myuser/mydir.
i thought that 'env -' might do the trick, but i was mistaken.
env - PWD=/home/myuser/mydir su - myuser -c mycommand
the command above does not reset PWD rather it alway refer to the
directory where i ran env from. does anyone know how i can make this
happen.
tia
please cc my email address since i'm not on the list.
--
^X^C
q
quit
:q
^C
end
x
exit
ZZ
^D
?
help
shit
.
Reply to: