作业完成后如何在终端中收到声音通知
我在远程机器上运行作业。这些作业需要几分钟才能完成,我希望在本地计算机上发出声音通知,以便知道作业已完成。任何人都可以建议一个命令(如果存在)或执行此操作的工具吗?
谢谢
编辑:我在远程计算机上运行作业,但需要在完成后发出声音通知(这显然必须发生在本地计算机上)!这可能吗?
I run jobs on a remote machine . The jobs take a few mins to complete and I'd like a sound notification on my local machine in order to know that the job has been completed . Can anybody suggest a command if exists, or a tool that does this ?
Thanks
EDIT : I run jobs on remote machine, but need a sound notification (which has to obviously happen on local machine) upon completion ! Is that possible ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你是说你从命令行一一运行它们吗?我不在 Linux atm 中,所以我无法验证这一点,但我相信钟转义字符 - “\a” - 在 bash 中有效,所以你应该能够执行以下操作:
./dojob;回显“\a”
再说一次,这超出了我的想象,所以可以用打开 gedit 后按响铃之类的东西来测试它。
Are you saying you run them one-by-one from the command line? I'm not in Linux atm, so I can't verify this, but I believe the bell escape character - "\a" - works in bash, so you should be able to do something like:
./dojob; echo "\a"
Again, this is off the top of my head, so test it with something like opening gedit followed by a bell or something.