Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个脚本,我正在设计一个新脚本,并且将使用并调用给定的脚本。
问题是给定的包含许多“回声”打印。
有没有办法使用给定的脚本,但不能在控制台中获得这些打印?
谢谢
运行这个,
yourscript.sh > /dev/null
它将输出发送到很远很远的地方
你也可以这样做yourscript.sh:
yourscript.sh
#!/bin/bash exec 1>/dev/null # rest of the script...
伙计们,你能帮我一点吗,我收到这个错误:
"JSONException: Value <!DOCTYPE of type java.lang cannot be converted to JSONObject"
当我在这里解析数据时是我的代码:
public class JSONParser { static In