uabrc / uabrc/devops-docs

Terminal messaging

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.