Command line tracking

Upon installation, Jort provides a command line utility jort to help track programs at the command line.

Track new command

To track a new command, you can run:

jort track your_command

If the target command uses its own options, place quotes around the full command.

jort track "your_command -a -b -c"

To send notifications on completion via e-mail or SMS, add the -e or -t flags, respectively. Note that both methods require appropriate login credentials, which can be entered at the command line using jort config.

To save job details to database, add the -d flag. You can specify the session name with -s, and have jort skip jobs that both are already saved in the database under the same session and have completed successfully via the -u option.

The jort tool spawns a subprocess with your command, so it can capture all stdout/stderr output. You can save this output and send as a .txt attachment to an e-mail notification by adding the flag -o (in addition to the e-mail flag).

Track existing process

You can also track an existing process using its integer process ID:

jort track PID

Similarly, add the -e or -t flags for either e-mail or SMS notification on completion, and -d and -s flags for saving info to database. Note that since jort was not the parent process, it can’t save output or flag errors.