启动没有输出的 Perl 脚本
我正在制作一个脚本(Perl
或 shell
)来启动第二个 Perl
脚本。它启动的脚本有数千行输出。所以基本上我想制作一个脚本来启动另一个脚本而没有任何输出 - 如果可能的话在 screen
会话中运行它,然后退出该脚本(但保持另一个在 screen< /代码>)?我该怎么做?
I'm making a script (Perl
or shell
) that launches a second Perl
script. The script that it's launching has thousands of lines of output. So basically I want to make a script that launches another script without any output - and if possible run it within a screen
session and then exit the script (yet keep the other running in the screen
)? How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
当您启动脚本时,直接输出到/dev/null。 要使脚本在后台运行,请使用
&
符号。例如,以下内容将在控制台中不显示任何内容并在后台运行......When you launch your script direct output to /dev/null. To make a script run in the background use the
&
symbol. For example the follow will show nothing in the console and run in the background...