views:

17

answers:

0

I have a process monitor script, procer, that runs as root and launches child processes and then chroots them to become my user and drop priviledges. This all works nicely. The problem I am having though is that I prefer to use tcsh rather than bash for normal day to day command line activities (in Snow Leopard), but the aforementioned (chroot'd) processes need bourne shell, /bin/sh, but even though their start scripts specify #!/bin/sh they don't seem to actually use /bin/sh and end up using tcsh and failing (when bourne directives are encountered). Is there anyway around this? I feel like I am missing some unix knowledge here that could help.

Thanks in advance