How to redirect the output of an command executed with dbclient on a remote server?

2010-07-23 Thread mbus25 .
Hello, im fighting with dbclient to redirect the ouput of an remotely executed command, but it seems not possible i can redirect the stderr before the connection to the server ( for example connection refused error ), but after it doesn't work. Im running dbclient from an script that is

Re: How to redirect the output of an command executed with dbclient on a remote server?

2010-07-23 Thread Matt Johnston
What commandline are you running? If it works by hand but not from a script then that suggests that it might be that the program needs a TTY to run properly - you could try running dbclient -t in the cronjob? Testing here redirecting output seems to work as below (the shell is zsh). I've added -T