Konsole执行脚本

时间:2012-12-05 00:11:51

标签: ubuntu-10.04 konsole

konsole --noclose -e --rcfile /filepathtomyscript

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

lftp
open...
login
put....

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

1 个答案:

答案 0 :(得分:1)

试试这个

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

Konsole Man Page

  

-e [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.