Sponsored Content
Full Discussion: Not able to delete log file
Operating Systems Solaris Not able to delete log file Post 302865223 by solaris_1977 on Friday 18th of October 2013 01:49:50 AM
Old 10-18-2013
jlliagre, when I do do "cat soa.out", it was taking very long time to give output, so I did Ctlr+C and came out. This made me think that data is still so big here, even after nullify it. Am I wrong here ?
In future, what will be best to nullify it again, without taking application downtime ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mass delete a certain string in a .log file

Hey all. I have a file that has roughly 115,000 lines in it. There are a few lines of information that I don't want in it, but I don't want to search through all of the lines to find the ones that I don't want. Is there a way to do a mass delete of the lines that I don't want? Thanks for the... (4 Replies)
Discussion started by: jalge2
4 Replies

2. Shell Programming and Scripting

how to delete blank rows in a log file

Help How to delete all blank rows in log file (4 Replies)
Discussion started by: suryanarayana
4 Replies

3. Shell Programming and Scripting

Delete lines prior to a specific date in a log file.

Hi all. I have a database log file in which log data get appended to it daily. I want to do a automatic maintainence of this log by going through the log and deleting lines belonging to a certain date. How should i do it? Please help. Thanks. Example. To delete all lines prior to Jun... (4 Replies)
Discussion started by: ahSher
4 Replies

4. Shell Programming and Scripting

Delete log file entries based on the Date/Timestamp within log file

If a log file is in the following format 28-Jul-10 ::: Log message 28-Jul-10 ::: Log message 29-Jul-10 ::: Log message 30-Jul-10 ::: Log message 31-Jul-10 ::: Log message 31-Jul-10 ::: Log message 1-Aug-10 ::: Log message 1-Aug-10 ::: Log message 2-Aug-10 ::: Log message 2-Aug-10 :::... (3 Replies)
Discussion started by: vikram3.r
3 Replies

5. Shell Programming and Scripting

Log file - Delete lines

Hello, I tried to search on the site a way to delete lines on log files but I didn't find what I am looking for... I hope someone will be able to help me. I do not know how to explain this, so I will do my best. I have a log file and I want to delete all second lines. Example : ... (3 Replies)
Discussion started by: Aswex
3 Replies

6. Shell Programming and Scripting

Delete log files content older than 30 days and append the lastest date log file date

To delete log files content older than 30 days and append the lastest date log file date in the respective logs I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs This is my script cd... (2 Replies)
Discussion started by: sreekumarhari
2 Replies

7. Red Hat

Need Script to ZIP/SAVE & then DELETE Log file & DELETE ZIPS older than 12 months

ENVIROMENT Linux: Fedora Core release 1 (Yarrow) iPlanet: iPlanet-WebServer-Enterprise/6.0SP1 Log Path: /usr/iplanet/servers/https-company/logs I have iPlanet log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I... (7 Replies)
Discussion started by: zachs
7 Replies

8. Shell Programming and Scripting

Delete all files from the directory except the ones in the log file

I have a log file with contents like below. Repository: https://someserver:9443/ Workspace: (1000) "test_scripts_ws" Component: (1001) "some_Automated_Scripts" Change sets: (1002) ---$ john "test memory" 17-Sep-2014 02:24 PM Changes: --a--... (9 Replies)
Discussion started by: gaurav99
9 Replies

9. UNIX for Dummies Questions & Answers

Log file - Delete duplicate line & keep last date

Hello All ! I need your help on this case, I have a csv file with this: ITEM105;ARI FSR;2016-02-01 08:02;243 ITEM101;ARI FSR;2016-02-01 06:02;240 ITEM032;RNO TLE;2016-02-01 11:03;320 ITEM032;RNO TLE;2016-02-02 05:43;320 ITEM032;RNO TLE;2016-02-01 02:03;320 ITEM032;RNO... (2 Replies)
Discussion started by: vadim-bzh
2 Replies

10. UNIX for Beginners Questions & Answers

Delete from another file that matched on log file

I want to write a script using Oscam Cardsharing server this is my test: cat oscam.log | grep "error" sample output: 2018/10/17 16:43:07 5C94A12E p (cccam) cccam(r) test.dyndns.org: login failed, error Once I've found an error, I need to remove its information inside another file : ... (5 Replies)
Discussion started by: vzoli1987
5 Replies
QSqlField(3qt)															    QSqlField(3qt)

NAME
QSqlField - Manipulates the fields in SQL database tables and views SYNOPSIS
#include <qsqlfield.h> Public Members QSqlField ( const QString & fieldName = QString::null, QVariant::Type type = QVariant::Invalid ) QSqlField ( const QSqlField & other ) QSqlField & operator= ( const QSqlField & other ) bool operator== ( const QSqlField & other ) const virtual ~QSqlField () virtual void setValue ( const QVariant & value ) virtual QVariant value () const virtual void setName ( const QString & name ) QString name () const virtual void setNull () bool isNull () const virtual void setReadOnly ( bool readOnly ) bool isReadOnly () const void clear ( bool nullify = TRUE ) QVariant::Type type () const DESCRIPTION
The QSqlField class manipulates the fields in SQL database tables and views. QSqlField represents the characteristics of a single column in a database table or view, such as the data type and column name. A field also contains the value of the database column, which can be viewed or changed. Field data values are stored as QVariants. Using an incompatible type is not permitted. For example: QSqlField f( "myfield", QVariant::Int ); f.setValue( QPixmap() ); // will not work However, the field will attempt to cast certain data types to the field data type where possible: QSqlField f( "myfield", QVariant::Int ); f.setValue( QString("123") ); // casts QString to int QSqlField objects are rarely created explicitly in application code. They are usually accessed indirectly through QSqlRecord or QSqlCursor which already contain a list of fields. For example: QSqlCursor cur( "Employee" ); // create cursor using the 'Employee' table QSqlField* f = cur.field( "name" ); // use the 'name' field f->setValue( "Dave" ); // set field value ... In practice we rarely need to extract a pointer to a field at all. The previous example would normally be written: QSqlCursor cur( "Employee" ); cur.setValue( "name", "Dave" ); ... See also Database Classes. MEMBER FUNCTION DOCUMENTATION
QSqlField::QSqlField ( const QString & fieldName = QString::null, QVariant::Type type = QVariant::Invalid ) Constructs an empty field called fieldName of type type. QSqlField::QSqlField ( const QSqlField & other ) Constructs a copy of other. QSqlField::~QSqlField () [virtual] Destroys the object and frees any allocated resources. void QSqlField::clear ( bool nullify = TRUE ) Clears the value of the field. If the field is read-only, nothing happens. If nullify is TRUE (the default), the field is set to NULL. bool QSqlField::isNull () const Returns TRUE if the field is currently NULL; otherwise returns FALSE. bool QSqlField::isReadOnly () const Returns TRUE if the field's value is read only; otherwise returns FALSE. QString QSqlField::name () const Returns the name of the field. Example: sql/overview/table4/main.cpp. QSqlField &; QSqlField::operator= ( const QSqlField & other ) Sets the field equal to other. bool QSqlField::operator== ( const QSqlField & other ) const Returns TRUE if the field is equal to other; otherwise returns FALSE. Fields are considered equal when the following field properties are the same: name() isNull() value() isReadOnly() void QSqlField::setName ( const QString & name ) [virtual] Sets the name of the field to name. void QSqlField::setNull () [virtual] Sets the field to NULL and clears the value using clear(). If the field is read-only, nothing happens. See also isReadOnly() and clear(). void QSqlField::setReadOnly ( bool readOnly ) [virtual] Sets the read only flag of the field's value to readOnly. See also setValue(). void QSqlField::setValue ( const QVariant & value ) [virtual] Sets the value of the field to value. If the field is read-only (isReadOnly() returns TRUE), nothing happens. If the data type of value differs from the field's current data type, an attempt is made to cast it to the proper type. This preserves the data type of the field in the case of assignment, e.g. a QString to an integer data type. For example: QSqlCursor cur( "Employee" ); // 'Employee' table QSqlField* f = cur.field( "student_count" ); // an integer field ... f->setValue( myLineEdit->text() ); // cast the line edit text to an integer See also isReadOnly(). QVariant::Type QSqlField::type () const Returns the field's type as stored in the database. Note that the actual value might have a different type, Numerical values that are too large to store in a long int or double are usually stored as strings to prevent precision loss. QVariant QSqlField::value () const [virtual] Returns the value of the field as a QVariant. Example: sql/overview/table4/main.cpp. SEE ALSO
http://doc.trolltech.com/qsqlfield.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 (qsqlfield.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QSqlField(3qt)
All times are GMT -4. The time now is 10:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy