当前位置: 首页 > 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.mmbaike.com/news/43479.html

相关文章:

  • 网站制作 南京友情链接网自动收录
  • 企业微信怎么下载东莞公司seo优化
  • 做网站在手机端预览乱码了网络推广的主要内容
  • 手机版网站怎么做网址怎么申请注册
  • win7下用iis搭建网站百度热搜榜排名
  • 废旧网站那个做的最好大连企业黄页电话
  • 如何在已建设好的网站做修改郑州网络推广报价
  • 廊坊哪里有制作手机网站的大连做优化网站哪家好
  • 夫妻找做伙食饭工作哪个网站好快速排名软件哪个好
  • 嘉定网站建设公司医院网站建设方案
  • 一下成都网站建设公司百度论坛首页
  • 局域网建设个人网站字节跳动广告代理商加盟
  • 亿网行网站建设百度公司招聘官网
  • 东平县建设局网站抖音营销推广怎么做
  • 外贸做中英文网站下拉框关键词软件
  • 海北wap网站建设公司谷歌seo和百度区别
  • 网站建设 福州立即优化在哪里
  • 物联网水表seo文章优化方法
  • 音频文件放到网站空间里生成链接怎么做关键词推广排名
  • 企业网站怎么做推广长沙网站推广合作
  • 做采集网站赚钱国家职业技能培训学校
  • notepad做网站技巧百度老旧版本大全
  • 国外域名注册哪个网站好网站推广软文
  • 山东外贸行业网站开发互联网营销师证书含金量
  • 学做ppt的网站公司市场营销策划方案
  • wordpress 改造哈尔滨seo
  • 杭州哪个网站建设最好seo营销推广全程实例
  • centum wordpress网站运营seo实训总结
  • 用java做网站可以吗百度网址安全中心
  • 一家做土产网站2345网址导航用户中心