Sponsored Content
Top Forums Shell Programming and Scripting Meaning of "> /dev/null 2>&1" Post 302100935 by salanalani on Tuesday 26th of December 2006 01:24:52 AM
Old 12-26-2006
So is it somehow affecting the execution of the line or it is simply does not do anything? I mean do I need to put it at the end of each line or not?

For your information, the lines I have in the ".sh" are to call another shell file which is in hand executing an SQL scripts to generate database reports.

Thanks for your fast reply.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Meaning of $var->{"@$row[0]"}=" "; ???

while (my $row = $sth->fetchrow_arrayref) { $var->{"@$row"}=" "; } Can anyone help me understanding above mentioned. i) As per my knowledge $row is taking ARRAY Refernce from the database ii) @$row is containing the value of 0th index of the array, testted the same. but I am not able... (0 Replies)
Discussion started by: jaigs_27
0 Replies

2. Shell Programming and Scripting

Difference between ">/dev/null 2>&1" and "2>&1 >/dev/null"

Does >/dev/null 2>&1 and 2>&1 >/dev/null mean the same? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

3. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

4. Shell Programming and Scripting

Meaning of "b" modifier in "sort" command

I need to sort the following file by the rhdiskpower devices in the last column: Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path 1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
Discussion started by: wjssj
3 Replies

5. UNIX for Dummies Questions & Answers

/dev/null 2>&1 Versus /dev/null 2>1

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

6. Shell Programming and Scripting

Meaning of 2>/dev/null/ <<EOF ?

I am new to unix and learning. Came across this statement cmd 2>/dev/null/ <<EOF 2>/dev/null/ denotes that std error is stored in /dev/null but that is considered as a non-existent file!! What does << EOF mean and how does it affect? I am really confused.. :wall: Can some one explain this... (2 Replies)
Discussion started by: source
2 Replies

7. Shell Programming and Scripting

find error?? find / -name "something.txt" 2>/dev/null

why is this giving me errors? i type this in: find / -name "something.txt" 2>/dev/null i get the following error messages: find: bad option 2 find: path-list predicate-list :confused: (5 Replies)
Discussion started by: magiling
5 Replies

8. UNIX for Dummies Questions & Answers

What is the meaning of "-s" option in "if" statement?

Hi Guys, I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below: opath=/home/output for i in N1 N2 N3 N4 do echo $i if then grep $i $opath/N5_CRAI > $opath/N5_$i.crai chmod 777 $opath/N5_$i.crai ... (7 Replies)
Discussion started by: rymnd_12345
7 Replies

9. Shell Programming and Scripting

Redirecting standard out to /dev/null goes to file "/dev/null" instead

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

10. Shell Programming and Scripting

finding the strings beween 2 characters "/" & "/" in .txt file

Hi all. I have a .txt file that I need to sort it My file is like: 1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO) 2- ... (10 Replies)
Discussion started by: Behrouzx77
10 Replies
QSql(3qt)																 QSql(3qt)

NAME
QSql - Namespace for Qt SQL identifiers that need to be global-like SYNOPSIS
#include <qsql.h> Public Members QSql () enum Op { None = -1, Insert = 0, Update = 1, Delete = 2 } enum Location { BeforeFirst = -1, AfterLast = -2 } enum Confirm { Cancel = -1, No = 0, Yes = 1 } enum ParameterType { In = 1, Out = 2, InOut = 3 } enum TableType { Tables = 0x01, SystemTables = 0x02, Views = 0x04, AllTables = 0xff } DESCRIPTION
The QSql class is a namespace for Qt SQL identifiers that need to be global-like. Normally, you can ignore this class. Several Qt SQL classes inherit it, so all the identifiers in the Qt SQL namespace are visible without qualification. See also Database Classes. Member Type Documentation QSql::Confirm This enum type describes edit confirmations. QSql::Yes QSql::No QSql::Cancel QSql::Location This enum type describes SQL navigation locations. QSql::BeforeFirst QSql::AfterLast QSql::Op This enum type describes edit operations. QSql::None QSql::Insert QSql::Update QSql::Delete QSql::ParameterType This enum is used to set the type of a bind parameter QSql::In - the bind parameter is used to put data into the database QSql::Out - the bind parameter is used to receive data from the database QSql::InOut - the bind parameter is used to put data into the database; it will be overwritten with output data on executing a query. QSql::TableType This enum type describes types of tables QSql::Tables - All the tables visible to the user QSql::SystemTables - Internal tables used by the DBMS QSql::Views - All the views visible to the user QSql::AllTables - All of the above MEMBER FUNCTION DOCUMENTATION
QSql::QSql () Constructs a Qt SQL namespace class SEE ALSO
http://doc.trolltech.com/qsql.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qsql.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QSql(3qt)
All times are GMT -4. The time now is 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy