Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Compare file name and take action Post 303035331 by abhaydas on Tuesday 21st of May 2019 10:01:21 AM
Old 05-21-2019
Please advise ,where its going wrong in syntax.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare 2 different file version and prompt for action

Hi, I need some assistance with comparing 2 diff application. The format of the first file is in TAR "filename.1.2.3.tar" . The second file is a running application for which i need to find the version and then prompt the user for action as below :- Once compared, It needs to prompt the user,... (0 Replies)
Discussion started by: systemali
0 Replies

2. Shell Programming and Scripting

Clean file in single action

What one finds challenging another finds simple... (HPUX B.11.11) I have a text file named something like 12345.dst that could look like this: DOG CAT NONE TEST CAT What I want to end up with is 12345.dst looking like this: CAT DOG TEST removing "NONE" should it be there and... (1 Reply)
Discussion started by: djp
1 Replies

3. Shell Programming and Scripting

Perform action file name written to the pipe

Hello, I have a script that monitors files uploaded via ftp. After a successful upload, the file name is written to the pipe. There is another program that reads this pipe and allows automatically run any program or script ( say test.sh ) to process the newly uploaded file. cat test.sh... (2 Replies)
Discussion started by: fed.linuxgossip
2 Replies

4. Shell Programming and Scripting

Take action if a particular file appears in a directory

This is my task - pls help Write a script that will run every 5 min and check if a particular file has appeared in a particular directory. Once it appears then rename the file and move it a bkp directory and run another script. (3 Replies)
Discussion started by: mrudula009
3 Replies

5. Shell Programming and Scripting

Opening file and executing an action

I want the script to read the directory I am running the script from and print the contents of any file that has GX in it's title. This is the code needed. But how do I combine it? #!/usr/bin/perl opendir(CURRENT,"."); @list = readdir(CURRENT); closedir(CURRENT); foreach $item (@list){... (4 Replies)
Discussion started by: DemonixX
4 Replies

6. Shell Programming and Scripting

Take action only if a file is X hours (or seconds) old

shell: #!/bin/ash I searched and found a few relevant posts (here and here - both by porter, on the same day (?)) however both are just a do while loop, I need to check a file date and compare it to the current time. I would like it to say if file 'test' is more than 12 hours old than "right... (3 Replies)
Discussion started by: phdeez
3 Replies

7. Shell Programming and Scripting

shell script - search a file and perform some action

hi, i have a service on unix platform, it will generate traces in a particular folder i want to check using shell script if traces exist, then perform some action else continue to be in loop. filename is service.tra can you please help? thanks (4 Replies)
Discussion started by: gauravah
4 Replies

8. Shell Programming and Scripting

Script to monitor for new file with ext .err and size > 0 bytes and perform a action or command

Hi All, I need to create a script to monitor a dir for new files with ext .err and also it should b a non empty files. and perform a action or command . We have a new ETL application that runs on a linux server, every times a etl fails it creates a .err file or updates the existing .err... (4 Replies)
Discussion started by: MAKHAN
4 Replies

9. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
QSignal(3qt)															      QSignal(3qt)

NAME
QSignal - Can be used to send signals for classes that don't inherit QObject SYNOPSIS
#include <qsignal.h> Inherits QObject. Public Members QSignal ( QObject * parent = 0, const char * name = 0 ) ~QSignal () bool connect ( const QObject * receiver, const char * member ) bool disconnect ( const QObject * receiver, const char * member = 0 ) void activate () bool isBlocked () const (obsolete) void block ( bool b ) (obsolete) void setParameter ( int value ) (obsolete) int parameter () const (obsolete) void setValue ( const QVariant & value ) QVariant value () const DESCRIPTION
The QSignal class can be used to send signals for classes that don't inherit QObject. If you want to send signals from a class that does not inherit QObject, you can create an internal QSignal object to emit the signal. You must also provide a function that connects the signal to an outside object slot. This is how we have implemented signals in the QMenuData class, which is not a QObject. In general, we recommend inheriting QObject instead. QObject provides much more functionality. You can set a single QVariant parameter for the signal with setValue(). Note that QObject is a private base class of QSignal, i.e. you cannot call any QObject member functions from a QSignal object. Example: #include <qsignal.h> class MyClass { public: MyClass(); ~MyClass(); void doSomething(); void connect( QObject *receiver, const char *member ); private: QSignal *sig; }; MyClass::MyClass() { sig = new QSignal; } MyClass::~MyClass() { delete sig; } void MyClass::doSomething() { // ... does something sig->activate(); // emits the signal } void MyClass::connect( QObject *receiver, const char *member ) { sig->connect( receiver, member ); } See also Input/Output and Networking and Miscellaneous Classes. MEMBER FUNCTION DOCUMENTATION
QSignal::QSignal ( QObject * parent = 0, const char * name = 0 ) Constructs a signal object called name, with the parent object parent. These arguments are passed directly to QObject. QSignal::~QSignal () Destroys the signal. All connections are removed, as is the case with all QObjects. void QSignal::activate () Emits the signal. If the platform supports QVariant and a parameter has been set with setValue(), this value is passed in the signal. void QSignal::block ( bool b ) This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. Blocks the signal if b is TRUE, or unblocks the signal if b is FALSE. An activated signal disappears into hyperspace if it is blocked. See also isBlocked(), activate(), and QObject::blockSignals(). bool QSignal::connect ( const QObject * receiver, const char * member ) Connects the signal to member in object receiver. See also disconnect() and QObject::connect(). bool QSignal::disconnect ( const QObject * receiver, const char * member = 0 ) Disonnects the signal from member in object receiver. See also connect() and QObject::disconnect(). bool QSignal::isBlocked () const This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. Returns TRUE if the signal is blocked, or FALSE if it is not blocked. The signal is not blocked by default. See also block() and QObject::signalsBlocked(). int QSignal::parameter () const This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. void QSignal::setParameter ( int value ) This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. void QSignal::setValue ( const QVariant & value ) Sets the signal's parameter to value QVariant QSignal::value () const Returns the signal's parameter SEE ALSO
http://doc.trolltech.com/qsignal.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 (qsignal.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QSignal(3qt)
All times are GMT -4. The time now is 08:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy