Skip to content

Tag: linux

Bash Script Unstable Result

I have bash script and I put in the crontab. It runs every 10 minutes. When I run it manually, it gives perfect results. It creates “.tmp” files and these “.tmp” files are not empty, but Crontab results are not as I expected. it only creates “.tmp” files. Contents of &#8220…

Trickle error :- failed:connection refused

I have an Azure Iot Hub endpoint where I have to send some data (consider small strings). I want to set the speed of sending the data to that url and am using Trickle to achieve that. I thought will do the work, but it is showing failed: Connection refused Also tried like this: But still getting the same erro…

How to setup a ssh connection to connect only via the localhost

We have a Linux Server with 2 users user1 and user2. We have to login from user1 to user2 via ssh such as: Both users are on the same server. However, user1 is an automated script where we cant type in manually the password and we dont want to store the password. Therefore, we want to use an ssh key

[Linux | Cscore]avutil-55 DllNotFoundException

I am trying to run my application which uses cscore (https://github.com/filoe/cscore) and its sub namespace “CSCore.Ffmpeg” I’ve already tried what the author explained in “https://github.com/filoe/cscore/blob/master/CSCore.Ffmpeg/Readme.md” (‘LD_LIBRARY_PATH=./ mono MyApp.…

Cannot redirect python script output to infile

I am working on Debian Stable Linux which is otherwise working very well. I have following code in a python script file named “myrev” which works to reverse order of lines of given text file: It works properly and prints out reverse order of lines if I use following Linux command However, if I try…

C fork and pipe multiple process

I’m trying to implement this command cat /etc/passwd | grep 1000 | cut -d: -f1 in C using system calls fork and pipe. When I use only two commands cmd1 | cmd2 so 1 fork it works fine but when I’m using more than 2 process the problem occurs Here is my code, I think the problem is in the