200->300 Log reg
This commit is contained in:
4
log.sh
4
log.sh
@@ -6,9 +6,9 @@ LOG_DIR="/var/www/paymenter/storage/logs"
|
||||
latest_log=$(ls -t "$LOG_DIR" | head -n 1)
|
||||
clear
|
||||
if [ -n "$latest_log" ]; then
|
||||
echo "Showing last 200 lines of: $latest_log"
|
||||
echo "Showing last 300 lines of: $latest_log"
|
||||
echo "----------------------------------------"
|
||||
tail -n 200 "$LOG_DIR/$latest_log"
|
||||
tail -n 300 "$LOG_DIR/$latest_log"
|
||||
else
|
||||
echo "No log files found in $LOG_DIR"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user