Perhaps the program writes its log to stderr, and not to stdout? If so, you can redirect both stdout and stderr to file with: command &> out On Fri, Mar 1, 2019 at 12:47 PM Maykel Franco via arch-general < arch-general@xxxxxxxxxxxxx> wrote: > HI, I playing with cccam for a proyect with decoder and I like stdout > console log to specific log but not work... > > I try all: > > >> /var/log/test.log > > tee -a /var/log/test.log > > strace -p pid > > The command is: > > /usr/local/bin/CCcam -d > 18:43:15.717 CCcam: > ====================================================================== > 18:43:15.717 CCcam: starting CCcam > ====================================================================== > 18:43:15.717 CCcam: online using nodeId 91dd747775a31f66 > 18:43:15.735 CCcam: create 1 cam device(s) > 18:43:15.739 CCcam: readKeyfile: cannot open /var/keys/SoftCam.Key or not > found > 18:43:15.739 CCcam: readKeyfile: cannot open /var/keys/AutoRoll.Key or not > found > 18:43:15.739 CCcam: static cw not found or bad > 18:43:15.746 CCcam: parsed 11522 entries from /var/etc/CCcam.prio > 18:43:15.747 CCcam: added 1005 provider names from /var/etc/CCcam.providers > 18:43:15.798 CCcam: added 11097 channel names from > /var/etc/CCcam.channelinfo > 18:43:15.798 CCcam: server started on port 47015 > > > > The binary program is: > > /usr/local/bin/CCcam: ELF 64-bit LSB executable, x86-64, version 1 > (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, > for GNU/Linux 2.6.32, BuildID[sha1]=6ab44025c0a35a3 > 83d63f30e96e489f29df424b5, stripped > > > I've tried everything, I do not know what to do to have that output > write it to log. > > I've tried inclusy with tty, pts but it's impossible. > > Does somebody knows why it could be? with any other command / program > works well > > with the only thing that I have managed to write to log is add: > > | stdbuf -oL > > but the program closes >