Files
ansible-shared/server/files/bin/watch-process

6 lines
105 B
Bash

#!/bin/bash
# Watch a process output
# mReschke 2018-01-19
sudo tail -f /proc/$(pgrep $1|head -n1)/fd/1