Posts

In cron, /usr/bin/paplay does not display stderr

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite My PC's pulse audio dies whenever I open and close virtualbox windows in a certain situation. So I tried to monitor the audio state by crontab -e. Usually, in the commandline, $ paplay beep.wav >>err.log 2>&1 || echo "``date` `" >>err.log; is enough. If no error, it adds nothing to err.log but beeping sound. If an error, it adds "... shm_open() ..." and a current timestamp to err.log without beeping sound. But if I locate this command line in cron, it makes beep sound periodically but when failed it does not log err.log. It simply doesn't make any stderr though no beep sounds. Likewise, || echo... doesn't work, either. cron file-descriptors stderr share | improve this question edited Mar 14 at 7:41 muru 33.4k 5 77 141 asked Mar 14 at 7:39 user58029 11 3 Please post your crontab -l entry for this command. – ya...

no sound in antergos

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite so i recently installed antergos on my laptop and i get no sound out of my speakers or my headphones - hdmi out does not work either. i have tried going into alsa mixer and its not muted. $ inxi -xA Audio: Card-1 bytcht-es8316 driver: bytcht-es8316 Card-2 Intel HDMI/DP LPE Audio driver: HdmiLpeAudio Sound: Advanced Linux Sound Architecture v: k4.15.8-1-ARCH upon trying speaker-test -c2 i get this speaker-test 1.1.5 Playback device is default Stream parameters are 48000Hz, S16_LE, 2 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 16 to 204800 Period size range from 8 to 102400 Using max buffer size 204800 Periods = 4 Unable to set hw params for playback: Invalid argument Setting of hwparams failed: Invalid argument and trying pavucontrol just sits there establishing connection. trying lspci -nn | grep Audio gives me no output but lspci gives me this lsp...

stderr redirection by reading a file [duplicate]

Image
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite This question already has an answer here: How to make bash substitution $(<“filename”) silent 4 answers I read content of the file into variable like this var=$(<somefile) But if the file doesn't exist I get accordingly an error message bash: somefile: No such file or directory Is it possible to redirect stderr to >/dev/null without using cat command? bash io-redirection stderr share | improve this question asked Mar 14 at 8:37 renton 11 1 marked as duplicate by Jeff Schaller, Community ♦ Mar 14 at 10:51 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. add a comment  |  up vote 2 down vote favorite This question already has an answer here: How to make bash substitution $(...