Skip to content

Commit

Permalink
New Features
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Lopez committed Feb 28, 2024
1 parent f95d186 commit 8fd9187
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions monitoring/logging.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' [email protected] tail -f /minecraft_server/logs/latest.log
4 changes: 4 additions & 0 deletions monitoring/top.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

pid=$(ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' [email protected] pidof java)
ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' [email protected] ps -p ${pid} -o %cpu,%mem,cmd

0 comments on commit 8fd9187

Please sign in to comment.