putty.exe ½ÇÇàÆÄÀÏÀ» C:\WINDOWS/system32 Æú´õ·Î º¹»çÇصдÙ.
¡Ø ÁÖÀÇ
Wscript.Shell : ws ´Â ´ë¹®ÀÚ!!
PUTTY_LOGIN.SWF
<package> <job id = "js"> <script language = "Jscript"> var SERVER = new Array(1); var i; var USER = "root"; var PW = "XXXXXXX"; var COMMAND = "ls -al"; # ·Î±×ÀÎÈÄ ½ÇÇàÇÒ ¸í·É¾î
SERVER[1] = "192.168.0.99"; SERVER[2] = "192.168.0.100";
for (i = 1; i <= 2; i++) { var Shell = Wscript.CreateObject("Wscript.Shell"); Shell.Exec("PUTTY " + CapA[i] + " -l " + USER + " -pw " + PW); Wscript.Sleep(300); # ´ë±â ½Ã°£ Shell.SendKeys(COMMAND + "~"); Wscript.Sleep(300); # ´ë±â ½Ã°£ }
</script> </job> </package> |
¸Þ¸ðÀåÀ¸·Î ÇØ´çÆÄÀÏÀ» ¸¸µé¾î¼ Ŭ¸¯ÇϽøé ÀÚµ¿À¸·Î ·Î±×ÀÎ...