Sponsored Content
Operating Systems Linux Viewing the progress of diff? Post 302595861 by mark54g on Sunday 5th of February 2012 03:00:32 PM
Old 02-05-2012
not sure if pv would work, but it might be worth a shot.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

diff 2 files; output diff's to 3rd file

Hello, I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3. For example: file 1 123 1234 123456 file 2 123 2345 23456 file 3 should have 2345 23456 I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies

2. UNIX for Dummies Questions & Answers

viewing tables

I have completely blanked out on this and I have done it a million times. I need to modify some tables in unix. What is the command for opening/viewing the tables? Thanks so much. :o (2 Replies)
Discussion started by: itldp
2 Replies

3. UNIX for Dummies Questions & Answers

pdf viewing

How do I view pdf files on a Solaris 9 environment? Links and such would be grateful. "AAAAHHH!! They're everywhere!!!" - Halo Grunt (3 Replies)
Discussion started by: antalexi
3 Replies

4. UNIX for Dummies Questions & Answers

Viewing files

I have a file (called CORE) that is a dump created by a crashing process. This file, I believe, is in "binary" form, so when I try to use cat, more, or vi on it, it has a bunch of garbage. Is there anything I can use to "read" or view this file just like I might a non-binary file? I am running... (2 Replies)
Discussion started by: dsimpg1
2 Replies

5. Shell Programming and Scripting

Progress

Maybe someone know how to create something like "*". If someone uses Gentoo he must see this while emerge utility preparing an update. I mean the symbol "/" spins. (2 Replies)
Discussion started by: mirusnet
2 Replies

6. Shell Programming and Scripting

Simulate SVN diff using plain diff

Hi, svn diff does not work very well with 2 local folders, so I am trying to do this diff using diff locally. since there's a bunch of meta files in an svn directory, I want to do a diff that excludes everything EXCEPT *.java files. there seems to be only an --exclude option, so I'm not sure... (3 Replies)
Discussion started by: ackbarr
3 Replies

7. Shell Programming and Scripting

.procmailrc and uudeview (put attachments from diff senders to diff folders)

Moderator, please, delete this topic (1 Reply)
Discussion started by: optik77
1 Replies

8. Shell Programming and Scripting

serach diff filename in diff location using shell scripting

Hi, I am new to shell scripting. please help me to find out the solution. I need a script where we need to read the text file(consists of all file names) and get the file names one by one and append the date suffix for each file name as 'yyyymmdd' . Then search each file if exists... (1 Reply)
Discussion started by: Lucky123
1 Replies

9. Tips and Tutorials

Viewing changes in directory

Hi, I have a directory, and there is a job running and constantly writes and removes files from and to this directory. I would like to see somehow these changes without pressing `ls` every second. Kind of `tail -f` command, but for a directory list and not for file content. I thought maybe kind... (5 Replies)
Discussion started by: ilya_dv
5 Replies

10. Shell Programming and Scripting

Diff 3 files, but diff only their 2nd column

Guys i have 3 files, but i want to compare and diff only the 2nd column path=`/home/whois/doms` for i in `cat domain.tx` do whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
QTimer(3qt)															       QTimer(3qt)

NAME
QTimer - Timer signals and single-shot timers SYNOPSIS
#include <qtimer.h> Inherits QObject. Public Members QTimer ( QObject * parent = 0, const char * name = 0 ) ~QTimer () bool isActive () const int start ( int msec, bool sshot = FALSE ) void changeInterval ( int msec ) void stop () int timerId () const Signals void timeout () Static Public Members void singleShot ( int msec, QObject * receiver, const char * member ) DESCRIPTION
The QTimer class provides timer signals and single-shot timers. It uses timer events internally to provide a more versatile timer. QTimer is very easy to use: create a QTimer, call start() to start it and connect its timeout() to the appropriate slots. When the time is up it will emit the timeout() signal. Note that a QTimer object is destroyed automatically when its parent object is destroyed. Example: QTimer *timer = new QTimer( myObject ); connect( timer, SIGNAL(timeout()), myObject, SLOT(timerDone()) ); timer->start( 2000, TRUE ); // 2 seconds single-shot timer You can also use the static singleShot() function to create a single shot timer. As a special case, a QTimer with timeout 0 times out as soon as all the events in the window system's event queue have been processed. This can be used to do heavy work while providing a snappy user interface: QTimer *t = new QTimer( myObject ); connect( t, SIGNAL(timeout()), SLOT(processOneThing()) ); t->start( 0, FALSE ); myObject->processOneThing() will be called repeatedly and should return quickly (typically after processing one data item) so that Qt can deliver events to widgets and stop the timer as soon as it has done all its work. This is the traditional way of implementing heavy work in GUI applications; multi-threading is now becoming available on more and more platforms, and we expect that null events will eventually be replaced by threading. Note that QTimer's accuracy depends on the underlying operating system and hardware. Most platforms support an accuracy of 20ms; some provide more. If Qt is unable to deliver the requested number of timer clicks, it will silently discard some. An alternative to using QTimer is to call QObject::startTimer() for your object and reimplement the QObject::timerEvent() event handler in your class (which must, of course, inherit QObject). The disadvantage is that timerEvent() does not support such high-level features as single-shot timers or signals. Some operating systems limit the number of timers that may be used; Qt tries to work around these limitations. See also Event Classes and Time and Date. MEMBER FUNCTION DOCUMENTATION
QTimer::QTimer ( QObject * parent = 0, const char * name = 0 ) Constructs a timer called name, with the parent parent. Note that the parent object's destructor will destroy this timer object. QTimer::~QTimer () Destroys the timer. void QTimer::changeInterval ( int msec ) Changes the timeout interval to msec milliseconds. If the timer signal is pending, it will be stopped and restarted; otherwise it will be started. See also start() and isActive(). bool QTimer::isActive () const Returns TRUE if the timer is running (pending); otherwise returns FALSE. Example: t11/cannon.cpp. void QTimer::singleShot ( int msec, QObject * receiver, const char * member ) [static] This static function calls a slot after a given time interval. It is very convenient to use this function because you do not need to bother with a timerEvent or to create a local QTimer object. Example: #include <qapplication.h> #include <qtimer.h> int main( int argc, char **argv ) { QApplication a( argc, argv ); QTimer::singleShot( 10*60*1000, &a, SLOT(quit()) ); ... // create and show your widgets return a.exec(); } This sample program automatically terminates after 10 minutes (i.e. 600000 milliseconds). The receiver is the receiving object and the member is the slot. The time interval is msec. int QTimer::start ( int msec, bool sshot = FALSE ) Starts the timer with a msec milliseconds timeout, and returns the ID of the timer, or zero when starting the timer failed. If sshot is TRUE, the timer will be activated only once; otherwise it will continue until it is stopped. Any pending timer will be stopped. See also singleShot(), stop(), changeInterval(), and isActive(). Examples: void QTimer::stop () Stops the timer. See also start(). Examples: void QTimer::timeout () [signal] This signal is emitted when the timer is activated. Examples: int QTimer::timerId () const Returns the ID of the timer if the timer is running; otherwise returns -1. SEE ALSO
http://doc.trolltech.com/qtimer.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, 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 (qtimer.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QTimer(3qt)
All times are GMT -4. The time now is 06:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy