How can crontab print messages in console?
问题 Hi I am really new in Linux:D I made a crontab program which is supposed to print current time in console every 3 minutes. What I did is below. I made a crontab. In terminal, command " crontab -e " and add a phrase " */3 * * * * /home/user/a.out " a.out is a result file of " gcc WowCron.c ". Code is below. int main (int argc, char* argv[]){ time_t now; time(&now); printf("this is what we call cron does: %s\n", ctime(&now)); return 0; } and it works wonderfully when run individually. Then I