Burhan KARADERE
Bilgisayar Mühendisi ve Ekonomist 1982 yılında İstanbul Fatih'te doğdum. Bilişim teknolojileri alanında AR-GE çalışmaları yapıyor, özel bir şirkette SAP SE ERP sistemleri üzerine proje yöneticisi olarak görev alıyorum. Teknolojiye olan ilgim, uçak teknolojileri ve özellikle jet motorlarına yönelmiş durumda. Aynı zamanda SoloTürk hayranıyım ve iyi bir drone pilotuyum. Fenerbahçe Spor Kulübü üyesiyim ve teknoloji merakımı, özellikle bu alandaki deneyimlerimi paylaşmayı amaçlıyorum. Teknolojik ürünler ve yeniliklerle ilgili bilgileri paylaşarak, bu alandaki tutkumuzu geniş bir kitleye ulaştırmayı hedefliyorum. Felsefi olarak bilginin doğru yönetilmesi gerektiğine inanıyor ve metafiziğe olan ilgimi de ilim ve bilimle harmanlıyorum. Elektrikle çalışan her şey hakkında düşünmeyi ve beyin fırtınası yapmayı sevenlerle bilgi paylaşımı yapmaktan keyif alıyorum. Daha fazla bilgi için blog.karadere.com adresinden takip edebilirsiniz. Çağrı Kodu: TA1HKB Kod Adı: Burhan_07 Nickname: Swish_+
Howto Set LPT1 Virtualbox on Windows System SAP Netweaver 7.5 Portal SSO Problem After Windows Update
Eyl 20 2022
Expect Script ile SFTP
Unix veya Linux sistemlerde Expect Script ile SFTP programını parametrik çağırma
burhansftp.exp
# !/usr/local/bin/expect -f
set login [lrange $argv 0 0]
set passw [lrange $argv 1 1]
set localfile [lrange $argv 2 2]
set remotefile [lrange $argv 3 3]
set timeout -1
spawn sftp $login
expect “assword:”
send “$passw\r”
expect “sftp>”
send “lcd /usr/sap/Bankagonderilecek/ \r”
expect “sftp> “
send “put $localfile $remotefile \r”
expect “sftp> “
send “bye \r”
burhansftp.exp kullaniciadi@ip password local_file remote_file
burhansftpilk.exp
# !/usr/local/bin/expect -f
set login [lrange $argv 0 0]
set passw [lrange $argv 1 1]
set timeout -1
spawn sftp $login
expect “Are you sure you want to continue connecting (yes/no)?”
send “yes\r”
expect “assword:”
send “$passw\r”
expect “sftp> “
send “bye \r”
burhansftpilk.exp
burhansftpcmd.exp de su sekilde:
# !/usr/local/bin/expect -f
set login [lrange $argv 0 0]
set passw [lrange $argv 1 1]
set command [lrange $argv 2 4]
set timeout -1
spawn sftp $login
expect “assword:”
send “$passw\r”
expect “sftp>”
send “$command \r”
expect “sftp> “
send “bye \r”
burhansftpcmd.exp user@IP sifre komut (mesela “rm klasor/*.txt”)
burhansftpmget.exp
# !/usr/local/bin/expect -f
set login [lrange $argv 0 0]
set passw [lrange $argv 1 1]
set remotepath [lrange $argv 2 2]
set localpath [lrange $argv 3 3]
set timeout -1
spawn sftp $login
expect “assword:”
send “$passw\r”
expect “sftp> “
send “get $remotepath $localpath/. \r”
expect “sftp> “
send “bye \r”
sapsftpmget.exp $login(user@IP) $password $remotepath $localpath
By Burhan KARADERE • Genel • 0 • Tags: Expect, script, SFTP