3

I can run

gnome-terminal -- journalctl --since "10min ago" -f 

What is the equivalent of this command for alacitty.

I tried

alacritty -e "journalctl --since \"10min ago\" -f" alacritty -e "journalctl --since '10min ago' -f" alacritty -e 'journalctl --since "10min ago" -f' 

every command returns

Error: Failed to spawn command 'journalctl --since '10min ago' -f': No such file or directory (os error 2) 
2
  • Did you try not quoting the whole command? Commented May 31, 2022 at 7:39
  • alacritty -e journalctl --since "10min ago" -f works. Thank you very much. Commented May 31, 2022 at 7:44

1 Answer 1

2

alacritty will use the arguments after the -e option as the command to execute. Since the terminal uses the first argument after -e as the utility name, quoting the whole command will make the terminal use the complete command string as the utility name, which will fail.

Instead, remove the quotes around the command. This allows alacritty to distinguish between the utility name and its arguments.

Note too that -e needs to be the last option on alacritty's command line.

In short: -e in alacritty works like -- in gnome-terminal.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.