https://github.com/ComputeCanada/software-stack-custom/blob/main/bin/computecanada/diagnose.py, a diagnose script with the following interface: ``` diagnose <subcommand> <parameters> ``` Subcommands to implement: - [x] `job_script <job_id>` => displays the job script - [x] `inspect <path>` => display the metadata of a path, for a directory, file ACLs, `ls -d <path>`, for a file: file ACLs, output of `file <path>`, `ls -d <path> - [x] `show <path>` => display the content of a path, for a directory, display the listing, for a file, show the content - [x] `env` => display the environment in a login shell ... == Restrictions == It must be read-only. It must run as the user (i.e. assume no privilege)
https://github.com/ComputeCanada/software-stack-custom/blob/main/bin/computecanada/diagnose.py, a diagnose script with the following interface:
Subcommands to implement:
job_script <job_id>=> displays the job scriptinspect <path>=> display the metadata of a path, for a directory, file ACLs,ls -d <path>, for a file: file ACLs, output offile <path>, `ls -dshow <path>=> display the content of a path, for a directory, display the listing, for a file, show the contentenv=> display the environment in a login shell...
== Restrictions ==
It must be read-only.
It must run as the user (i.e. assume no privilege)