You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
170 B
Bash

#!/bin/bash
id=$(basename "$REQUEST_URI")
[[ ! $id =~ ^[0-9]+$ ]] && echo bad query && exit 1
[[ ! -f logs/$id ]] && echo no logs available && exit 1
tail -fn+1 logs/$id