Created
November 14, 2011 04:44
-
-
Save yoshikaw/1363255 to your computer and use it in GitHub Desktop.
screenrcで起動時にsshしてtopとかtailする例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# top | |
screen -t server1:top 38 ssh oracle@server1 | |
stuff "top c\n" | |
sleep 10 | |
stuff "m\n" | |
# tail alert.log(10g) | |
screen -t server1:alert 39 ssh oracle@server1 | |
encoding sjis | |
stuff "tail -f \$ORACLE_BASE/admin/\$ORACLE_SID/bdump/alert_\${ORACLE_SID}.log\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment