Skip to main content
1 of 3
Chris Davies
  • 128k
  • 16
  • 178
  • 323

There is no "current terminal" when running from cron.

By default, cron sends an email containing output from the job. Your local mail subsystem delivers that to the file /var/spool/mail/$USER, and you can read it using mail, mailx, or your preferred local email client.

There's no particular reason why you couldn't get your cron job to write its output to a file in your home directory, for example like this:

* * * * *    date >$HOME/.current_date 2>&1

And if you're running a GUI you can use notify-send to write messages in a pop-up on your screen. BUT it's not straightforward to do this from cron. Have a search around StackExchange for solutions to this sub-problem.

Chris Davies
  • 128k
  • 16
  • 178
  • 323