ITを基礎からやってくブログ

とにかく基礎からやってくんです。基礎が大事なんです。

Windowsイベントログをコマンドでエクスポートする

Windowsイベントログをコマンドでエクスポートするのは、一定の需要があるようなので調べてみた。 エクスポートは、あとからイベントビューアで読み込めるevtx形式で行う前提。 1. PowerShellの場合 まず何かと便利なPowerShellで調べてみると、Get-EventLog…

cronでメール送信時にNSS関連のエラー

CentOS6.5にて、mailコマンドでメールを送るシェルをcronで動かしていたのだけど、 メールが来ない事象が発生。 コマンド mail -v -s "タイトルほげほげ" \ -r xxxxxxxxxxxxx@gmail.com \ -S smtp-use-starttls \ -S smtp=smtp://smtp.gmail.com:587 \ -S sm…

基礎からWebアプリ#3

window._pt_lt = new Date().getTime(); window._pt_sp_2 = []; _pt_sp_2.push('setAccount,3586f9dc'); var _protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); (function() { var atag = document.createElement('scrip…

基礎からWebアプリ#2

window._pt_lt = new Date().getTime(); window._pt_sp_2 = []; _pt_sp_2.push('setAccount,3586f9dc'); var _protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); (function() { var atag = document.createElement('scrip…

基礎からWebアプリ#1

window._pt_lt = new Date().getTime(); window._pt_sp_2 = []; _pt_sp_2.push('setAccount,3586f9dc'); var _protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); (function() { var atag = document.createElement('scrip…

シェルスクリプト内に書いたsshコマンドの接続先でsshを実行する

window._pt_lt = new Date().getTime(); window._pt_sp_2 = []; _pt_sp_2.push('setAccount,3586f9dc'); var _protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); (function() { var atag = document.createElement('scrip…