I want to make a desktop shortcut to reset the tracker using tracker-reset -e
. It shows a yes or no question every time. Can I bypass it?
I want to make a desktop shortcut to reset the tracker using tracker-reset -e
. It shows a yes or no question every time. Can I bypass it?
yes
From coreutils package.
man
page:So in your case would be:
You can, in general, "echo" an answer to the command, as in
which indeed will automatically provide the answer "y" to the prompt.
If a terminal application requests more prompts, you could supply multiple answers as in
In this hypothetical example, the first prompt of program
terminalprogram
is answered withy
, then with a1
, then withq
. The same effect could be achieved by including each answer on a new line in a text fileanswers.txt
and then feeding the contents of the file to the program, as inor as in