I am trying to submit the job using drqueue's sendjob tool. When doing this from the terminal it works just fine. However, when doing this from cron, I get segmentation fault at libc (2.11.3-4). I tried using strace and I found that when running from cron, it can't open tty. What would the workaround be or maybe there's something else?
You could try running it screen.
From the screen help (-h):
So something like
You can also try preceding the command in your crontab with:
This runs your command in a separate login shell with the same environment variables as a terminal session.