Score:0

Automatically input text ( sript ) when the terminal open

mc flag

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 avatar
jp flag
Related: [Shell script works manually but doesn't work correctly in Crontab](https://askubuntu.com/q/1465163)
muru avatar
us flag
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)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.