【问题标题】:Konsole execute a scriptKonsole 执行脚本
【发布时间】:2012-12-05 00:11:50
【问题描述】:
konsole --noclose -e --rcfile /filepathtomyscript

我尝试执行上述命令,因为我希望 konsole 可以执行带有参数的命令列表,例如

lftp
open...
login
put....

但是,我不断收到错误消息。请你帮助我好吗?非常感谢。 到目前为止,我发现的所有示例都只执行一个命令。

【问题讨论】:

    标签: ubuntu-10.04 konsole


    【解决方案1】:

    试试这个

    konsole --noclose -e /bin/bash /path/to/my/script
    

    Konsole Man Page

    -e [参数]

              Execute ’command’ instead of shell.  It  also  sets  the  window
              title  and  icon  name  to  be the basename of the program being
              executed if neither -T nor -n are given  on  the  command  line.
              This must be the last option on the command line.
    

    【讨论】:

    • 当我尝试它时,我收到警告:无法使用参数“...”启动程序“...”。警告消息中的程序和参数都相同。
    • 警告:无法使用参数“/home/ubuntu/Desktop/perfTest/input1/simple.sh”启动程序“/home/ubuntu/Desktop/perfTest/input1/simple.sh”跨度>
    • @HuyNguyen 好的,我看到我的帖子有问题。
    • 好的,-e 正在寻找的是要执行的 ELF 二进制文件,而不是脚本。
    • 我现在对你在寻找什么感到困惑。
    猜你喜欢
    • 1970-01-01
    • 2015-11-10
    • 2016-07-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-10
    • 2017-06-29
    • 2019-08-14
    相关资源
    最近更新 更多