Obtain Job log
job_log(job_id, print = TRUE, n_line = 10)
The job id. It can be a single job or a vector of job ids.
Whether to print the log message to the terminal.
Number of last lines for each job to show when multiple jobs are queried.
The log messages as a vector.
# \dontrun{
# a single job
job_id = 1234567 # job ids can be get from `bjobs`
job_log(job_id)
#> Error in ssh_connect(): bsub_opt$submission_node is not defined. No node to connect.
# multiple jobs
job_id = c(10000000, 10000001, 10000002)
job_log(job_id) # by default last 10 lines for each job are printed
#> Error in ssh_connect(): bsub_opt$submission_node is not defined. No node to connect.
job_log(job_id, n_line = 20) # print last 20 lines for each job
#> Error in ssh_connect(): bsub_opt$submission_node is not defined. No node to connect.
# logs for all running jobs
job_log()
#> Error in ssh_connect(): bsub_opt$submission_node is not defined. No node to connect.
# }