bash -n logsign2.sh logsign2.sh: line 68: unexpected EOF while looking for matching “’ logsign2.sh: line 105: syntax error: unexpected end of file Share on Facebook
Share on FacebookTag Archives: Bash
Verify of Output a Command While Working Over The Bash
Shell üzerinde yazdığınız herhangi bir komut isteminin problemsiz çalışıp sonlandığını test etmek adına komut satırı sonuna pipe ile echo $? ekleriz.Aynı zamanda bash üzerinde conditional bir kod yazdığınızı varsayalım.Processing aksiyonu gerçekleşmiş komutun fail durumuna uğrayıp uğramadığını integar bir değer ile eşleyerek bulabiliyoruz.Eğer yazdığınız komut ile herhangi bir verbose döndüremiyorsanız, sonucu $?’nin döneceği integar bir değer(0) [...]
Share on FacebookBulk Domain Ping with Powershell
Powershell scripting ile işi hızlandirip birden fazla domainin hangi IP’yi cozdugunu ve ping’e cevap verip vermedigini tespit edebiliriz. Kısaca Powershell Nedir? Microsoft’un .Net Framework destekli gelistirdigi en kapsamlı shell konsoludur. Powershell uzerinde .net tabanlı scripting calistirma imkanı bulabiliyorsunuz. “Bulk Domain Ping” betigine ait ilgili kodları asağıda paylaşıyorum. $readfile=get-content “C:\Users\root\Desktop\servers.txt“ foreach($readf in $readfile) { $ALive=get-wmiobject win32_pingstatus [...]
Share on Facebook
