Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pid=$(pgrep -n duplicity); if [ $pid ]; then fd=$( ps -o cmd --no-headers $pid | sed -E 's/.+(log-fd=[0-9]+).?/\1/' | cut -f2 -d =); if [ $fd ]; then cat /proc/$pid/fd/$fd; else echo "fd not found"; fi else echo "pid not found"; fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement