Sponsored Content
Full Discussion: hell and sqlite
Top Forums Shell Programming and Scripting hell and sqlite Post 302197352 by scarfake on Tuesday 20th of May 2008 10:14:17 PM
Old 05-20-2008
try this:

Code:
#!/bin/sh
i=1
while [ $i -le 50 ]
do

sqlite /var/local/database/dblist "insert into list (owner_id,behavior,entry) values(0,0,'newblacklistentry$i.com') "

  i=`expr $i + 1`
done

if it works turn the value "50" to "100000" and let it roll Smilie
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sqlite issue?

i'm on freebsd 5.2.1, and from a fresh installation i've used pkg_add for the latest ported version of apache, as well as installing php 5. supposedly php5 comes with native support for sqlite (in the binary package), and this is what i added. i am trying to install a site engine (the 'gyrator'... (0 Replies)
Discussion started by: brandan
0 Replies

2. HP-UX

sqlite database in HP-UX vs Linux

Hi everybody, We have a cgi application which accesses sqlite database. It works fine in Linux environment but the same code doesn't enter data into the database when done in HP-UX environment. Should the codes vary depending on whether it is Linux or HP-UX. Regards Ruma (1 Reply)
Discussion started by: perlprg
1 Replies

3. Shell Programming and Scripting

Perl - SQLite question

Hello All, I am trying to write a Perl script that is using 'SQLite' as the application needs a very light weight Database. I wanted to know how to catch exceptions when I run queries in SQLite. Without this the Perl script comes to a halt everytime an exception occurs. Please help. Regards,... (4 Replies)
Discussion started by: garric
4 Replies

4. Linux

Using squid_db_auth to authenticate squid users against SQLite

Hi guys, Can we use squid_db_auth to authenticate squid users against SQLite database? I googled but all configurations are in MySQL. (0 Replies)
Discussion started by: majid.merkava
0 Replies

5. Shell Programming and Scripting

[ask]sqlite with shell script

hlow all i have file like this : BDG0100.2011091620162100CF5341.DAT BDG0100.2011091720175500CF5342.DAT BDG0100.2011091820192900CF5343.DAT BDG0100.2011091920210600CF5344.DAT but now i want make file like this 20110916.DAT 20110919.DAT 20110918.DAT 20110919.DAT so what i can do that... (3 Replies)
Discussion started by: zvtral
3 Replies

6. UNIX and Linux Applications

ruby/SQLite database interface

Hello, I'm not sure this is quite the right place, but there do seem to be allot of posts with folks using ruby to play nicely with databases so I thought I would give it a go. I am starting a long process of developing a database application bases on SQLite and ruby. This will run on various... (1 Reply)
Discussion started by: LMHmedchem
1 Replies

7. Shell Programming and Scripting

Using sqlite query to build script...

Okay, so this one is a bit above my knowledge level so I'm hoping for some pointers. Here's the scenario: I have a backup system on my network that makes single file images of the machines it's backing up and uses an sqlite database to keep track of everything. As is pretty typical with... (2 Replies)
Discussion started by: NyxPDX
2 Replies

8. UNIX for Beginners Questions & Answers

Manipulating UNIX and sqlite db

Hi there, I have multiple rows of data. For example: S/N | Name| Age I would like to store them into sqlite database after doing some grepping in CSV and output them into console/html format. Will it be possible? (1 Reply)
Discussion started by: alvinoo
1 Replies
convauth(8)						      System Manager's Manual						       convauth(8)

NAME
convauth - convert security authorization databases into database format SYNOPSIS
/usr/tcb/bin/convauth [-O] [-d dblist] [-q] [-r] [-u uid] [-v] [-H] FLAGS
-d dblist Specifies which databases to convert. Choose one or more of the letters d, f, p, t, or v. d - /etc/auth/system/default to /etc/auth/system/default.db f - /etc/auth/system/files to /etc/auth/system/files.db p - /tcb/files/auth/?/* to /tcb/files/auth.db and /var/tcb/files/auth.db t - /etc/auth/system/ttys to /etc/auth/system/ttys.db v - /etc/auth/system/devassign to /etc/auth/system/devassign.db If no -d option is given, the default database list is as though -d pt were specified. -q Suppresses non-error output. -r Keeps all migrated user-profile entries in /tcb/files/auth.db rather than /var/tcb/files/auth.db. -u uid Specifies the minimum general user UID. User-profile entries with uids lower than this value (default 100) are written to the /tcb/files/auth.db file, and profile entries with UIDs greater than or equal to this value are written to the /var/tcb/files/auth.db file. -v Gives more verbose messages. -O Reverts from *.db files to old-style databases. Not allowed for auth.db. -H Prints a help messages and exits with no further processing. DESCRIPTION
The convauth utility is used to convert existing ASCII system authorization database files to database format for faster access and updates. In the case of the ttys and user-profile data, this greatly improves the performance of login when using enhanced security. The convauth utility is executed by update installation scripts. EXAMPLES
The default conversion done to convert the user profiles and terminals information: # convauth The same conversion explicitly showing the default databases and general user UID assumptions: # convauth -d tp -u 100 Conversion of only the device assignment data: # convauth -d v RELATED INFORMATION
Commands: convuser(8), edauth(8), authck(8) Files: authcap(4), prpasswd(4), ttys(4), default(4), devassign(4), files(4) Security delim off convauth(8)
All times are GMT -4. The time now is 04:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy