Added redirect on input. And changed execl to execve so we can handle environment variables