V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
meloncrashed
V2EX  ›  Linux

ubuntu 下如何指定程序运行在指定的控制台下,且用户没有登陆到该控制台? 比如在 tty24 指定当前目录程序 a,运行在 tty3 上?

  •  
  •   meloncrashed · 2015-12-13 16:25:29 +08:00 · 2864 次点击
    这是一个创建于 3055 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2015-12-14 13:56:44 +08:00
    wxg4net
        1
    wxg4net  
       2015-12-13 16:36:57 +08:00   ❤️ 1
    这么做的真实目的是什么?有什么好处呢 如果是给别人看的,是不是用 screen 更好些
    meloncrashed
        2
    meloncrashed  
    OP
       2015-12-13 18:30:56 +08:00
    @wxg4net screen 是个伟大的程序,谢谢
    zealot0630
        3
    zealot0630  
       2015-12-14 12:26:12 +08:00
    参考一下 systemd 里面 getty 的实现,用 agetty 拉程序起来就可以了
    meloncrashed
        4
    meloncrashed  
    OP
       2015-12-14 13:56:44 +08:00
    @zealot0630 谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5053 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:39 · PVG 17:39 · LAX 02:39 · JFK 05:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.