Skip to content

Tag: linux

Variable as Tar file name in SunOs 5.10

I am trying to get the following result in the 1.files archived as tar with current date as a part of the tar name. 2.files removed once archived. /usr/sap/ST1/POC/backtest/*.txt has 2 txt files. This works fine as the file name is mentioned as arc_2017-02-28.tar. But when I tried this: The output is an error…

pyravendb query parameters parsing error

I’ve noticed a weird parsing problem with ravendb’s python client. when i use this query knowing that url = “http://www.mywebsite.net/” The relevent part of the error stack is the following : BUT if I simply add a simple ‘ ‘ to the url parameter in the query, it works witho…

Linux best practice to start and watch another process

In my process I need to start/restart another process. Currently I use a thread with a tiny stack size and the following code: I feel like that’s not best practice. I have no idea about the resources the std::system() call is blocking or wasting. I’m on an embedded Linux – so in general I tr…

Weird recursive directory structure

Somehow, my system (Ubuntu WSL layer on Windows; so treat as exactly Ubuntu) went a bit crazy. For a directory (a git repo if it matters) /path/to/foo, running ls shows the git files ORIG_HEAD, index, and index.lock in there. I tried to debug this by going cd .git, but an ls there showed me my same list of fi…

Raspberry pi is in a reboot-loop

I wrote this python program for my Raspberry Pi 3: I made an edit in the /etc/rc.local that the program will autostart. The edit is only adding the following line before exit 0: python /home/pi/reboot.py But now my Raspberry pi 3 is in a reboot loop. How can I delete the line I added in /etc/rc.local? Answer …