I’m trying run following command on a large number of samples. I have: but I have thousands of these samples to process. Each sample takes about a day or two to finish on my local computer. I’m using a shared linux cluster and a job scheduling system called Slurm, if that helps. Answer Write a sub…
Tag: linux
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.
ArangoDB Unattended Install in Vagrant Box
Trying to setup an Unattended install of ArangoDB in a Vangrant Ubuntu box. I’ve followed the Unattended install instructions here: https://docs.arangodb.com/3.1/Manual/GettingStarted/Installing/Linux.html However, this accounts for the password prompts, but not for the database upgrade and backup datab…
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
“undefined symbol: mg_free_type” when installing mod_perl 2.0.10 with Apache 2.4.26 and Perl 5.10.1
I’m trying to install mod_perl 2.0.10 for use with a new Apache 2.4 instance. I’ve got Apache 2.4.26 up and running by itself, but I also need mod_perl installed for a couple of modules to work. Here’s the problem: mod_perl always fails its tests claiming: The only information I could find o…
Linux console output on multiple UARTs
My embedded board has 2 UARTs. I want to have console output on both the UARTs. In kernel/Documentation/console/console.txt it’s mentioned that: you can only define one console per device type (serial, video). Does this mean I can use only one UART as console? Or, is it possible to redirect the console …