when spawning a job, write a script to execute instead of using stdin. Maybe this will help get /etc/profile read...