-1

This is simply a shortcut for the panel.

[Desktop Entry]
Exec=bash -c "tail -n 10 -f /var/log/httpd/error_log"
Type=Application
Icon=/root/Desktop/2.svg

i need that Exec= command to open a new terminal and run the command in it.

  • 2
    Which terminal application are you using? Most support a command line option to run a command after opening the window. eg, "gnome-terminal -e 'echo hi'" would open a terminal and then run that command. – pgl Aug 09 '13 at 12:13
  • ...what's with [this question](http://stackoverflow.com/questions/18365156/we-finally-found-some-info-on-this-troll)? – tckmn Aug 21 '13 at 18:40

1 Answers1

0

To open a terminal Exec=nameOfYourTerminalApp (eg:gnome-terminal, lxterminal, xterm) Then you can run your commands in the opened terminal. Otherwise, you can create a script with some command and run it. In that case you have to put tail -n 10 -f /var/log/httpd/error_log in the script and make it executable. Then call it with a shortcut file.

mattd
  • 543
  • 4
  • 16