Konsole执行脚本

问题描述 投票:0回答:1
konsole --noclose -e --rcfile /filepathtomyscript

我试图执行上面的命令,因为我希望konsole可以执行带有参数的命令列表

lftp
open...
login
put....

但是,我不断得到错误。请你帮助我好吗?非常感谢。到目前为止我找到的所有例子只执行一个命令。

ubuntu-10.04 konsole
1个回答
1
投票

试试这个

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

Konsole Man Page

-th w arguments $

          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.
© www.soinside.com 2019 - 2024. All rights reserved.