https://github.com/dalso0418/dalso-config/blob/13485037184dfe7b46bf3f21c4e0242f5bd560df/pve_xpenol_install.sh#!/bin/bash# 필요한 패키지 확인 및 설치install_package() { local package=$1 if ! dpkg -l | grep -q "^ii $package "; then echo "$package 패키지가 설치되어 있지 않습니다. 설치를 진행합니다..." apt-get update -y > /dev/null 2>&1 apt-get install -y $package > /dev/null 2>&1 echo "$package 패..
#!/bin/bash # 이메일 발신자, 수신자, 제목 및 내용 설정 from_email="sender@naver.com" from_pw="password" smtphost="smtp.naver.com" to_email="recipient@example.com" subject="Test email with embedded image" body="This is a test email with an embedded image." boundary="boundary_string" # 이미지 파일 경로 설정 image_path="/path/to/image.png" # 이메일 본문에 이미지를 추가 body_with_image="From: $from_email\r\nTo: $to_email\r\nSubject: $s..
[darksharavim]cat telnet.sh #!/bin/sh tpipe(){ sleep 1; echo 'helo nice' sleep 1; echo 'quit' } tpipe | telnet smtp.nate.com 25 결과를 저장해야할 경우 [darksharavim]cat telnet.sh #!/bin/sh tpipe(){ sleep 1; echo 'helo nice' sleep 1; echo 'quit' } tpipe | telnet smtp.nate.com 25 | tee result.txt [darksharavim]cat result.txt Trying 117.53.114.15... Connected to smtp.nate.com. Escape character is '^]'. 220 *..
엑셀이 있다면 len함수등으로 글자수를 카운트하겠지만 없을 경우 [darksharavim]cat test.sh #!/bin/bash dark="darksharavim" echo "${#dark}" [darksharavim]sh test.sh 12
imap check [darksharavim.tistory.com]curl -u "mailid@test.com:password" ₩ imap://mail.test.com/inbox pop3 check [darksharavim.tistory.com]curl -u "mailid@test.com:password" ₩ pop3://mail.test.com/inbox