proxmox xenlology install script
# Virtualation/Private Cloud2025. 3. 12. 19:11proxmox xenlology install script

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 패..

embed이미지 본문 첨부 메일발송 스크립트
# Script/Bash2023. 2. 16. 09:04embed이미지 본문 첨부 메일발송 스크립트

#!/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..

[bash]텔넷 접속 후 명령실행(결과 화면 저장)
# Script/Bash2023. 1. 12. 17:21[bash]텔넷 접속 후 명령실행(결과 화면 저장)

[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 *..

[bash]변수 내 문자열 길이 확인
# Script/Bash2023. 1. 12. 15:16[bash]변수 내 문자열 길이 확인

엑셀이 있다면 len함수등으로 글자수를 카운트하겠지만 없을 경우 [darksharavim]cat test.sh #!/bin/bash dark="darksharavim" echo "${#dark}" [darksharavim]sh test.sh 12

curl이용 imap 및 pop3 접속체크
# E-Mail2022. 9. 23. 15:12curl이용 imap 및 pop3 접속체크

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

image