4

I'm searching for the documentation of the time command that can be prepended to the script in crontab

* * * * * time somescript.sh
1
  • Where's the time output going?
    – RonJohn
    Jun 3, 2023 at 1:14

1 Answer 1

6

/bin/time. Not cron-specific, a general tool available on Unix-like systems. https://man7.org/linux/man-pages/man1/time.1.html

See also: https://www.gnu.org/software/time/

2
  • Thanks @ckhan: I was confused by the built-in time command of my bash-shell which behaves different
    – wolfrevo
    Jun 2, 2023 at 7:29
  • 1
    Perhaps of interest is that although time has no special significance to the POSIX shell, to Bash it is a reserved word and an optional part of the syntax of pipelines. That's more deeply integrated into Bash than a built-in command (which time is not). Jun 2, 2023 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .