Skip to content

Tag: sqlite

Linux – Store a sql select value in a variable bash

I want to store the value of the sqlite statement in a variable backup=$(sqlite3 “/home/miguel/Desktop/SO/ProjetoFinal/Backup_Principal.db” “SELECT periocidade_backup FROM STORAGE WHERE path’$path’;”) But when i echo $backup it returns the following: sqlite3 “/home/mi…

ACID Transactions at the File System

Background: I am getting a temperature float from an arduino via a serial connection. I need to be able to cache this temperature data every 30 seconds for other applications (e.g. web, thermostat controller) to access and not overload the serial connection. Currently I cache this data to RAM as a file in /ru…

Login script using Python and SQLite

I’m trying to create a login script using SQLite to store the user data. Any ideas on how to to that? I have research over hours and found nothing of the kind. I would appreciate any help! 🙂 This is what I got so far: But it always returns Login failed… I want to check the input “user”…

Sqlite libsqlite3.so.0 Not Found

I’m trying to get sqlite3 to work on ubuntu linux. I first tried to download sqlite3 but was given an error about multiple versions. I then deleted libsqlite3.so.0 and another counterpart to that using gksudo natalie, which was recommended. I then reinstalled the two rpm files…I now have eight of …

Embed data in a C++ program

I’ve got a C++ program that uses SQLite. I want to store the SQL queries in a separate file — a plain-text file, not a source code file — but embed that file in the executable file like a resource. (This has to run on Linux, so I can’t store it as an actual resource as far as I know,