2
如何打开PDF作为BASH变量?
我正在尝试使用Preview打开PDF,其中输入文件是shell var: $ pdf=$(wget -qO- 'http://website.com/file.pdf') && open "$pdf" $ pdf=$(wget -qO- 'http://website.com/file.pdf') && open -a /Applications/Preview.app -f "$pdf" $ open -a /Applications/Preview.app $(wget -qO- 'http://website.com/file.pdf') $ pdf=$(wget -qO- 'http://website.com/file.pdf') | open -a /Applications/Preview.app -f - 等等 我总是得到同样的错误: -bash:/ usr / bin / open:参数列表太长 是否有可能做到这一点? 任何想要尝试的人的示例PDF: https://www.exploit-db.com/docs/english/44592-linux-restricted-shell-bypass-guide.pdf