Article 6DPZ3 when i use nice with a long command it isn't working

when i use nice with a long command it isn't working

by
gonencing
from LinuxQuestions.org on (#6DPZ3)
Hi,

sudo nice -n -18 $(okular Documents/x/x.pdf 2> log.file &)

when i use this command it doesnt asks me for a sudo password, as it is not opening the pdf, then when i try to close terminal, it shows that password input but closes rapidly. so it failes. i couldn't figure out why.

my os is ubuntu 22.04
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments