Terminal messaging
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Proposal for a script to message researchers with an active terminal. Use like send_message wwarr matlab or send_message wwarr.
#!/bin/bash
user="$1"
app="$2"
if [ -z "$app" ]; then
app_msg=", including $app".
else
app_msg="."
fi
read -r -d '' message <<-EOM
Please run research software in a job context instead of on the login node$app_msg
For more information on jobs, please visit our documentation at
https://docs.rc.uab.edu/cheaha/slurm/submitting_jobs/#common-slurm-terminology
If you need assistance, please email us at support@listserv.uab.edu.
EOM
for term in $(w "$user" | grep "$user" | awk '{print $2}'); do
echo "$user :: $term"
echo "$message" | write "$user" "$term";
done;
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the proposed Bash script and its send_message usage, including how w, grep, awk, and write identify and contact a user's terminals. Confirm where this script belongs in the repository and how it should be invoked; done means the command messages matching active terminals and includes the optional application text and documentation link.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100