Skip to content

Show all sourced files in ZSH

I want to see which files got sourced while starting the Z-shell. Does it even keep track and if yes is there a way to list all the files? Answer You could do a at the beginning of the very first file which gets sourced. See man zshoptions.

How to save movie in mjpg-streamer?

I have installed mjpg-streamer on Raspbarry Pi,and it ran well. But how to save movie in my sdcard? I tried mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -i “mjpg-streamer/mjpg-streamer-experimental/input_uvc.so” -o “mjpg-streamer/mjpg-streamer-experimental/output_http.so -w mjpg-st…

Unexpected behaviour of double quotes in bash script

I’ve created a variable which looks like this: If I print it to the terminal, using echo $firstAndLastLines, I get the following output: root bin daemon adm lp Privilege-separated SSH Account used by the trousers package to sandbox the tcsd daemon Norbert Fogarasi But, if I use echo “$firstAndLast…

ffmpeg HLS transcoding and chunks upload to remote server

I am trying to create a so called origin server for storing the hls chunks and the manifest file on a remote server. The sending machine running ffmpeg is with IP: 192.168.178.50 and the web server which has to store both the HLS chunks and the manifest file is with IP: 192.168.178.100. My ffmpeg transcoding …

pthread_self() doesn’t return a meaningful thread id?

I was running this program on RHEL 5 with gcc4.1.2. Seems the syscall can give the correct thread id(same like process id), but pthread_self doesn’t give meaningful result. Is it because pthread_self is not portable? Answer If you read man pthread_self, which you should: Thread identifiers should be con…

linux running few scripts launch from a central script

I have several bash script which contain in them infinite while loop. I would like to run all of them from a single script: what I get is that it stuck on the first script and it does not proceed to the next one to run them simultaneous. Answer Notice the & symble at the end of each line, that