solusipse / fiche

Command line pastebin for sharing terminal output.
http://termbin.com
MIT License
1.41k stars 166 forks source link

Stdout #82

Closed gonzalo- closed 5 years ago

gonzalo- commented 6 years ago

Hello,

There is any way to make fiche more silent as a ,,daemon'' without all the output on stdout?

solusipse commented 5 years ago

Sorry for my late reply. You should be able to silence it by modifying these: https://github.com/solusipse/fiche/blob/master/fiche.c#L291-L317

solusipse commented 5 years ago

We may consider implementing some kind of switch that would silence all messages if more people will be interested in this

gonzalo- commented 5 years ago

If is a daemon, should be like that right? Send the output to a log not to stdout or atleast have that option?

linxon commented 5 years ago

@gonzalo- If you open man start-stop-daemon:

-1, --stdout logfile
             Redirect the standard output of the process to logfile when started with -background.  The logfile Must be an absolute pathname, but relative to the path optionally given
             with -r, --chroot.  The logfile can also be a named pipe.

-2, --stderr logfile
             Redirect the standard error of the process to logfile when started with -background.  The logfile must be an absolute pathname, but relative to the path optionally given with
             -r, --chroot.  The logfile can also be a named pipe.
gonzalo- commented 5 years ago

@linxon I am not using loonix.