Closed ghen2 closed 4 years ago
like echo compact | ./ssdb-cli in a cron job.
echo compact | ./ssdb-cli
When stdin is not a tty, skip the histfile and the printing of the welcome message, the prompt and the execution time of commands.
This way, a cron script can discard stdout, and still catch actual errors on stderr.
Resubmitted as https://github.com/ideawu/ssdb/issues/1347 for further discussion, as the patch is only a first draft.
like
echo compact | ./ssdb-cli
in a cron job.When stdin is not a tty, skip the histfile and the printing of the welcome message, the prompt and the execution time of commands.
This way, a cron script can discard stdout, and still catch actual errors on stderr.