/dev/null while read line-6ren">
gpt4 book ai didi

linux - 如何在 bash 中隐藏 "Created new window in existing browser session"

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:49:05 24 4
gpt4 key购买 nike

你好,我正在为大学做一个项目,我是 bash 脚本的新手。我的部分代码如下(在 Chrome 中打开标签):

chromium-browser& &>/dev/null
while read line
do
chromium-browser "$line"& &>/dev/null
sleep 5
done < url.in

但是,每次打开选项卡时,我都会在 shell 上收到一条烦人的消息“在现有浏览器 session 中创建新窗口”。它不会停止执行或任何东西,但我不希望它在那里,因为我希望之后的输出更清晰。由于重定向不起作用,关于如何使其消失的任何想法?

最佳答案

你可以使用nohup:

nohup command >/dev/null 2>&1 &

关于linux - 如何在 bash 中隐藏 "Created new window in existing browser session",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33672818/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com