I’ve downloaded a youtube playlist with youtube-dl is there any way i can rename the files i’ve downloaded to the appended id of the file in playlist. e.g. now xyz.mp4 abc.mkv want 1 – xyz.mp4 2 – abc.mkv (which is according to the number in the youtube playlist) Answer If the files ar…
Tag: linux
Segmentation fault while trying to return a pointer to object from a method
g++ throw me ‘segmentation fault’ while I’m trying to return an object of a classB from a method of a classA. I don’t know how to fix this error, if anybody can tell me why this error happens, I would be grateful. So… here is the code: classA.h classA.cpp classB.h classB.cpp main…
apt-get dist-upgrade wants to remove kde desktop [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Can a program leave no traces behind when handling passwords?
There is a script that generates a passwords and stores it in a variable and in a file. Then the password in the variable is used to encrypt another file. That’s it! Now that is not hard to write the hard part is: Can you delete all traces? Because from what I have read the commands in the script (and
ELK stack and web app on different servers, how to feed logs from later to former?
I have a website on digital ocean and on AWS I have ELK – Elastic Search, Kibana, Logstash – stack. I’m trying to understand how feed the logs files from web app to ELK stack. Is it possible to feed them via the internet between different servers? Do you I have to install nginx to be able to…
How do I get screen resolution in a shell script on Linux
Environment System: Linux Mint 18 / 19 Cinnamon 64-bit. Shell: dash (POSIX). Question I need to dynamically account for the screen resolution in a POSIX shell script. I prefer a function for re-use. Answer Function Usage
Using DPDK Kernel NIC Interface in a virtualized environment
I’m going to develop a DPDK Linux application on a laptop, but the laptop’s hardware is not supported by DPDK. Furtunately, DPDK supports paravirtualized devices including QEMU’s virtio-net. So I’m trying to configure a QEMU guest for running the Kernel NIC Interface(KNI) on a virtio-n…
redirecting stdin to tempfile in script
I want to write a bash script that receives a list of files through a pipe, writes a tempfile and then starts a program (qiv – an image viewer) with this tempfile. Example: where piped_qiv would look something like this: I’m probably missing something very basic about bash scripting but I was not …
Are linux shell pipes pipelined?
Given a file input.txt if I do something like is the output from the first command continuously passed (as soon as it is generated) as input to the second command? Or does the pipe wait until the first command finishes to start running the second command? Answer Yes, they’re pipelined — each compo…
Multixterm – “can’t find package Expect”
I am attempting to open multixterm on my desktop machine, but I end up with the error: usr:~> multixterm can’t find package Expect while executing “package require Expect” (file “/usr/local/bin/multixterm” line 6″) Any help would be appreciated. I’ve tried running …