Skip to content

Tag: shell

Bash terminal and color output [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question I have a shell with colors enabled: somefile contains escape characters for coloring. Now I want t…

wget: Unsupported scheme on non-http URL

I have the following line in my shell script: When I tried to run the script it give me the following error: Does it mean wget supports http and ftp ONLY? Answer man wget shows: It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Try curl, it supports file URLs. Also note yo…

Shell script for remote SSH

I’m new to shell scripts, and I have centos running. I want to write a shell script that ssh a remote machine and execute a bunch of commands. The problem I’m facing is how to provide the username, the password, the remote machine address, and the private access key to a command that shall connect…

Interacting with a .db file from Linux shell

I recently installed minidlna, a lightweight UPnP server, on my Raspberry Pi. Since this lacks the web interface of other programs such as Mediatomb, I thought it could be an interesting project for me to write one. I believe minidlna stores library information in a single file named “files.db”. E…