Skip to content
Advertisement

How to store data permanently under /tmp in linux?

Before anyone gets bent out of shape saying you’re not supposed to do that and the like: I am currently working with a router with very limited disk space running OpenWRT. I need to install a few programs. Looks like there is plenty of space under /tmp, but nowhere else due to how the file system is partitioned. Looking to

LXC using separate HDD/VOLUME

Is there some method how can I define the major device (hdd, volume, ..) for LXC container? I have separated disks for each service/project which I want run inside LXC container. But I couldn’t find the way how can I specify storage for all files in the container. I mean whole container (/, /home, /var,…) So finally I want to

Find the closest match between two files in unix

As a beginner i’m looking for a solution in shell scripting, I have file1 with content as below lines: And file2 with filenames and their modified timestamp. I’m looking shell script solution where it can tell the closest match in timestamp in the between both files. Like timestamp_x and timestamp_y comes in between timestamp_1 and timestamp_2. Thanks Answer If your

Bash script how to display matched words in custom order

The following is the output of the command ads2 cls create However, I’m trying to extract the value of name and state for each node, save them in a variable and display them in the following order: Till now i, with the help of this so much powerful learning site, could extract the values of name and state by executing

read directories withoud readdir

I’m working on POSIX linux to learn. I’m using C Programming Languages. I want to read a folder, but instead of using readdir or opendir, I want to use pure open and read, I want to extract subfolders or files in this folder as names as string. Is this possible with open() and read() as open and read (without using

How to debug the argument problem in Linux at the bash [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question The question is contents of the variable $TEST are equal to the string “success, or the number 5 or the contents of the variable $RESULT

Cannot convert string to boolean – ansible to powershell on linux

I read this whole thread about how to pass boolean values to a parameter to powershell on Linux. Nothing worked for me. My code in Ansible is as follows: I’ve used many variants, such as -ParticipateInCEIP:False, or -ParticipateInCEIP False, or -ParticipateInCEIP $false, but I get always the same error, that it expects boolean, but I sent string. I am running

CRON not running python script – Debian/RPi [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 year ago. Improve this question

Advertisement