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
<form> | |
<select name="hostname"> | |
<option value="">- Select Host -</option> | |
<?php | |
$collector_dir = '/var/tmp/days'; | |
$hosts = array_unique(explode("\n", shell_exec("/bin/ls $collector_dir/*"))); | |
foreach ($hosts as $host) { | |
if ( strstr($host,"/") ) { |
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
;; Start SSH session using the currently selected text as the target hostname. | |
$#S:: | |
; Putty copies selected text to the clipboard so you don't need to copy it | |
; doing Ctrl-Insert throws away what you already have in the Clipboard. | |
; Can't use Ctrl-C in putty, because it sends that to your session as ^C | |
WinGet, Active_ID, ID, A | |
WinGet, Active_Process, ProcessName, ahk_id %Active_ID% | |
if ( Active_Process ="putty.exe" ) | |
{ |