05-05-2005
/dev/null
Hi,
following command i use with connected to database from unix box,
db2 "import from /dev/null of del modified by chardel< coldel| replace into table name"
this is the code and it refresh the data from table when i run this code.
thanks
sam71
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Maybe it's an stupid question but remeber... I'm Junior..
I use command line to run programs, and some of them gives a lot of information when, for example, you open a window or other actions. That's really bad because my terminal gets full of unwanted messages, so I use "bin file & >/dev/null"... (1 Reply)
Discussion started by: piltrafa
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
Q1-What does
nroff -ms > /dev/null
Q2- What does mean -A under STAT column :
ps aux |head -20
UTIL PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
root 516 93,0 0,0 12 12 - A 04 nov 3906:51 wait
Thank you. (4 Replies)
Discussion started by: big123456
4 Replies
3. Shell Programming and Scripting
hello all,
In many shell scripts i found '> /dev/null' , i am not able to get this,
will any one please explain why we are using this.
thanks
sudha (2 Replies)
Discussion started by: rrs
2 Replies
4. Solaris
Hi, Anyone can help
My solaris 8 system has the following
/dev/null , /dev/tty and /dev/console
All permission are lrwxrwxrwx
Can this be change to a non-world write ??
any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies
5. Shell Programming and Scripting
Hi expert,
May I know what is the difference between below cron tab entry ?
0,12 * * * * /abc/myscript.sh > /dev/null 2>&1
0,12 * * * * /abc/myscript.sh (7 Replies)
Discussion started by: olaris
7 Replies
6. Shell Programming and Scripting
when do you use the path /dev/null (3 Replies)
Discussion started by: webmunkey23
3 Replies
7. UNIX for Dummies Questions & Answers
How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&"
echo "hello" > /dev/null 2>&1
echo "hello" > /dev/null 2>1 (3 Replies)
Discussion started by: glev2005
3 Replies
8. Shell Programming and Scripting
I apologize if this question has been answered else where or is too elementary.
I ran across a KSH script (long unimportant story) that does this:
if ; then
CAS_SRC_LOG="/var/log/cas_src.log 2>&1"
else
CAS_SRC_LOG="/dev/null 2>&1"
fithen does this:
/usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies
9. Shell Programming and Scripting
Hello All and a Happy New year to yous guys.
I'm running the below command on my AIX box and it keeps giving me the message that the file doesn't exist. I know the file don't exist, but I don't want to see the error. 2>/dev/null doesn't work.
bash-3.00$ ls -l C* | wc -l 2>/dev/null
ls:... (2 Replies)
Discussion started by: bbbngowc
2 Replies
10. Shell Programming and Scripting
Friends have the following problem
a search may not find anything which would correct example:
ls -ltr *prueba.txt | nawk '{ print $9 }' > Procesar.dat 2>/dev/null
When he finds nothing gives me the following error
ls: prueba.txt: No such file or directory
because 2> / dev / null... (4 Replies)
Discussion started by: tricampeon81
4 Replies
LEARN ABOUT DEBIAN
databaseintro
databaseintro(1grass) Grass User's Manual databaseintro(1grass)
Database management in GRASS GIS
Attribute management in general
GRASS can be linked to one or many database management systems (DBMS). The db.* set of commands provides basic SQL support for attribute
management, while the v.db.* set of commands operates on the vector map (see Vector introduction).
Available drivers
Available drivers are listed in SQL support in GRASS GIS.
Notes:
The default DBF driver provides only very limited SQL support (as DBF is not an SQL DB) while the other DBMS backends (such as PostgreSQL,
MySQL etc) provide full SQL support since the SQL commands are sent directly to the DBMS.
DB connection management
The current database management settings are shown or modified with db.connect for current mapset. Available DBMI drivers are listed with
db.drivers. Some DBMI backends require a user/password for driver/database to be set with db.login. In order to test a driver, run
db.test.
Attribute data import and export
Attribute data can be imported with db.in.ogr from various formats and exported with db.out.ogr. To internally copy a a full table or
selectively parts of it, use db.copy.
Further conversion tools:
MDB Tools: Convert MS-Access data to SQL, DBF, etc.
Openoffice.org with SQL Databases
SQL commands
GRASS supports to main SQL operations, execution of an SQL statement (db.execute) and selection of data from a table (db.select). See the
SQL help page for examples.
Managing the default DBMI settings
Per default vector map attributes are stored in DBF table files. This default definition can be modified with db.connect. If an external
DBMS is used, db.login may be required.
Creating a database
Specific commands are explained on the individual driver pages (these pages are only available if driver was compiled in this installa-
tion):
DBF: see DBF page
SQLite: SQLite page
mySQL: meSQL pages
ODBC: ODBC page (connect to Oracle, etc.)
PostgreSQL: PostgreSQL and PostGIS page
Metadata
All columns for a given table are listed with db.columns. The command db.describe describes a table in detail. To list all available
tables for a given database, run db.tables.
Table maintenance
To drop a column from a selected attribute table, use db.dropcol. With db.droptable an attribute table can be deleted.
Database Schema
Currently schema support only works for PostgreSQL connections. Default schema can be set with db.connect. Note that the default schema
will be used by all db.* modules.
db.tables returns 'schema.table' if schemas are available in the database.
Migrating to a different database engine
To migrate a GRASS database table (or a GRASS vector map) to a different DBMI engine, the best solution is to create a new MAPSET, define
the DBMI settings accordingly with db.login. Then the table of interest can be copied over with db.copy from the original MAPSET. Like-
wise, a vector map including its table(s) are copied from the original MAPSET to the current MAPSET with g.copy.
See also
Introduction to GRASS vector map processing
Introduction to GRASS raster map processing
Main index - database index - full index
(C) 2008-2011 GRASS Development Team
GRASS 6.4.2 databaseintro(1grass)