1

How to see the deamon process's output in Linux?

view story
linux-howto

http://stackoverflow.com – I wrote a test.c: #include <unistd.h> #include <stdio.h> int main() { while(1) { sleep(1); printf("====test====\r\n"); } return 0; } then i compile it : gcc ./test.c -o ./test and the i wrote a shell script: #!/bin/sh ./test & and then i made this script to be executed automatically on system boot. then I login to the Linux system using secureCRT in SSH protocol. using "ps aux | grep test" i can see the test process running, but i just cannot see the test's output, some people told me because the test output to tty, and i am using pts. co (HowTos)