| trackrun - Record when the given command was started and ended and expose to it in environment variables |
trackrun - Record when the given command was started and ended and expose to it in environment variables
trackrun [OPTIONS] [--] COMMAND [ARGS]
It records when it starts COMMAND and when it ends, identifying COMMAND either by one of 4 options:
Set TRACKRUN_LAST_STARTED and TRACKRUN_LAST_ENDED environments for COMMAND to the ISO 8601 representation of the date and time when COMMAND was last started and ended respectively. Set TRACKRUN_LAST_STATUS to the status COMMAND last exited with. Those are left empty if no data yet.
On every run, a UUID is generated, so you can connect events of concurrent runs in the track report. It is exposed in TRACKRUN_UUID env.
Show the hash generated from either of those options above before run the COMMAND. This hash is used for the filename in which command-related events are stored.
Show the current run's UUID before actually start the command.
Write current run's UUID in the given file before start the command.
Do not run COMMAND, instead display its tracked history.
Store tracking data in ~/.trackrun directory.
The last successful run's UUID, date-time when started and ended.
The current run's UUID
Trackrun does not do locking. You may take care of it if you need using flock(1), cronrun(1), or similar.
| trackrun - Record when the given command was started and ended and expose to it in environment variables |