broke it again
qualified the sleep method
works and loads api key
opens files for stdin/out/err twice, fail.
eliminates double open of stdin/out/err.
perm denied for fence_task.log
works with separate stderr and stdout files, as long as write permission is granted to the path/file