当前位置: 首页 > news >正文

个人网站备案注销域名批量查询

个人网站备案注销,域名批量查询,政府网站建设与管理规范,网站建设与管理结课论文前言 mac os 终端不支持使用 rz sz 上传下载文件,本文提供解决方法。 mac 上安装 brew install lrzsz两个脚本 注意:/usr/local/bin/iterm2-send-zmodem.sh 中的 sz命令路径要和你mac 上 sz 命令路径一致。 /usr/local/bin/iterm2-recv-zmodem.sh 中…

前言

mac os 终端不支持使用 rz sz 上传下载文件,本文提供解决方法。

mac 上安装

brew install lrzsz

两个脚本

注意:/usr/local/bin/iterm2-send-zmodem.sh 中的 sz命令路径要和你mac 上 sz 命令路径一致。
/usr/local/bin/iterm2-recv-zmodem.sh 中的 rz 命令路径要和你 mac 上的 rz 命令路径一致。
查看 mac 上 rz 和 sz 命令的路径

$ which rz
/opt/homebrew/bin/rz
$ which sz
/opt/homebrew/bin/sz
cat > /usr/local/bin/iterm2-send-zmodem.sh < EOF
#!/bin/bash
# Author: Matt Mastracci (matthew@mastracci.com)
# AppleScript from http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script
# licensed under cc-wiki with attribution required
# Remainder of script public domainosascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm
if [[ $NAME = "iTerm" ]]; thenFILE=`osascript -e 'tell application "iTerm" to activate' -e 'tell application "iTerm" to set thefile to choose file with prompt "Choose a file to send"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
elseFILE=`osascript -e 'tell application "iTerm2" to activate' -e 'tell application "iTerm2" to set thefile to choose file with prompt "Choose a file to send"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
fi
if [[ $FILE = "" ]]; thenecho Cancelled.# Send ZModem cancelecho -e \\x18\\x18\\x18\\x18\\x18sleep 1echoecho \# Cancelled transfer
else/opt/homebrew/bin/sz "$FILE" -e -bsleep 1echoecho \# Received $FILE
fi
EOF
cat > /usr/local/bin/iterm2-recv-zmodem.sh  << EOF
#!/bin/bash
# Author: Matt Mastracci (matthew@mastracci.com)
# AppleScript from http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script
# licensed under cc-wiki with attribution required
# Remainder of script public domainosascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm
if [[ $NAME = "iTerm" ]]; thenFILE=`osascript -e 'tell application "iTerm" to activate' -e 'tell application "iTerm" to set thefile to choose folder with prompt "Choose a folder to place received files in"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
elseFILE=`osascript -e 'tell application "iTerm2" to activate' -e 'tell application "iTerm2" to set thefile to choose folder with prompt "Choose a folder to place received files in"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
fiif [[ $FILE = "" ]]; thenecho Cancelled.# Send ZModem cancelecho -e \\x18\\x18\\x18\\x18\\x18sleep 1echoecho \# Cancelled transfer
elsecd "$FILE"/opt/homebrew/bin/rz -E -e -bsleep 1echoechoecho \# Sent \-\> $FILE
fi
EOF

给脚本赋予权限

sudo chmod 777 /usr/local/bin/iterm2-*

配置 iterm2

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
注意 Action 列有下拉选项框,选择即可。其他列复制粘贴。
在这里插入图片描述
为方便复制

Regular expression: rz waiting to receive.\*\*B0100Action: Run Silent CoprocessParameters: /usr/local/bin/iterm2-send-zmodem.shInstant: checkedRegular expression: \*\*B00000000000000Action: Run Silent CoprocessParameters: /usr/local/bin/iterm2-recv-zmodem.shInstant: checked
http://www.tj-hxxt.cn/news/67048.html

相关文章:

  • 一个企业的网站建设旅游企业seo官网分析报告
  • 丹东振兴区中国seo关键词优化工具
  • wordpress网站维护页面模板营销系统
  • 专业网站制作哪里好什么平台推广效果最好
  • 一个网站的后台怎么做长春网站优化页面
  • 建设集团简介泰州网站建设优化
  • 农林行业网站开发公司推广普通话的意义论文
  • dw个人网站制作教程搜索引擎营销特点是什么
  • 东莞市视频直播网站开发北京网站
  • 赣州 做网站广告联盟平台哪个好
  • 西安的网站设计公司名称下载手机百度最新版
  • 网络架构有哪些seo排名影响因素主要有
  • 粉丝网站制作百度ai人工智能
  • 深圳设计周展会2023兰州seo推广
  • 企业官网建站网站推广网站的方法有哪些
  • 网站搜索引擎友好性分析百度小程序入口
  • 鸡泽网站建设案例seo技巧
  • 河北建投商务网西安全网优化
  • 网联科技网站建设谷歌手机版下载安装
  • 免费做字体的网站好seo优化网络公司排名
  • 淘宝客网站的模板凌云seo博客
  • 公司网站一年多少钱正规推广赚佣金的平台
  • 个人能为公司网站备案吗中央人民政府
  • 制作企业网站首页效果图sem优化师是做什么的
  • 做网站兼容性怎么设置广点通和腾讯朋友圈广告区别
  • 云南省城乡住房建设厅网站网络营销策略有哪几种
  • 怎么做科技小制作视频网站昆明网站seo服务
  • 中文域名最新资讯seo搜索引擎优化书籍
  • 建个普通网站企业培训内容包括哪些内容
  • wordpress网站怎么设置关键词seo入门视频