0

I have script to mute sound:

pactl set-sink-mute 0 true

Tt's working if I run directly in terminal but if I make file.sh or run in crontab:

* * * * * pactl set-sink-mute 0 true

I get error.

Is there any way if I open the terminal & the script auto write & auto enter in terminal by file.sh or crontab?

Regards, Adrian

Raffa
  • 24,905
  • 3
  • 35
  • 79
adrian
  • 27
  • 4
  • Related: [Shell script works manually but doesn't work correctly in Crontab](https://askubuntu.com/q/1465163) – Raffa May 19 '23 at 08:31
  • 2
    Does this answer your question? [Shell script works manually but doesn't work correctly in Crontab](https://askubuntu.com/questions/1465163/shell-script-works-manually-but-doesnt-work-correctly-in-crontab) – muru May 19 '23 at 08:41

0 Answers0