Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Created November 14, 2011 04:44
Show Gist options
  • Save yoshikaw/1363255 to your computer and use it in GitHub Desktop.
Save yoshikaw/1363255 to your computer and use it in GitHub Desktop.
screenrcで起動時にsshしてtopとかtailする例
# 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