6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi friends,
I do not have much thoughts so need any help on the below issue:
I need to create shell script that will find the files & throw an error through job (autosys) when file not found.
Daily we use to receive 3 files from a system.
Obstacles:
1) All 3 files names are same.
2)... (4 Replies)
Discussion started by: tush
4 Replies
2. Shell Programming and Scripting
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
3. Shell Programming and Scripting
Hi
I have a pdf file that is being generated using the rwrun command in the shell script.
I then have the lp command in the shell script to print the same pdf file.
Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies
4. UNIX for Dummies Questions & Answers
Hi Guys,
I hope anyone can help me on how to create a watcher-script. The script will act as watcher wherein whenever it will find an error (say the word Error) in a file, it will prompt the user.
Please help!
br,
rymnd_12345 (3 Replies)
Discussion started by: rymnd_12345
3 Replies
5. Shell Programming and Scripting
Hi Experts
I will have be having 3 types of files in directory
file1_p0_date
file1_p1_date
file1_p2_date
As soon as it sees any of the files it needs to kick off another process and also would need the file name
For this I am creating a file watcher script which will look for file1* My... (2 Replies)
Discussion started by: westernmichnov
2 Replies
6. Shell Programming and Scripting
Hi
Please help me in this
I want to execute a shell script abc.ksh.
But I only want it to execute if file XYZ is not present.
If file XYZ is present than I want to unix to sleep for 5 Sec and than agaian check for XYX existence.
if it sleeps for more than 30 seconds ( 6 time )I want it to... (3 Replies)
Discussion started by: er_zeeshan05
3 Replies
EVWATCHER(3) 1 EVWATCHER(3)
The EvWatcher class
INTRODUCTION
EvWatcher is a base class for all watchers( EvCheck , EvChild etc.). Since EvWatcher 's constructor is abstract , one can't(and don't need
to) create EvWatcher objects directly.
CLASS SYNOPSIS
EvWatcher
abstract
EvWatcher
Properties
o public$is_active
o public$data
o public$is_pending
o public$priority
Methods
o public int EvWatcher::clear (void )
o abstractpublic EvWatcher::__construct (void )
o public void EvWatcher::feed (int $revents)
o public EvLoop EvWatcher::getLoop (void )
o public void EvWatcher::invoke (int $revents)
o public bool EvWatcher::keepalive ([bool $value])
o public void EvWatcher::setCallback (callable $callback)
o public void EvWatcher::start (void )
o public void EvWatcher::stop (void )
PROPERTIES
o $is_active
- Readonly . TRUE if the watcher is active. FALSE otherwise.
o $data
- User custom data associated with the watcher
o $is_pending
- Readonly . TRUE if the watcher is pending, i.e. it has outstanding events, but its callback has not yet been invoked. FALSE
otherwise. As long, as a watcher is pending(but not active), one must not change its priority.
o $priority
- Integer between Ev::MINPRI and Ev::MAXPRI . Pending watchers with higher priority will be invoked before watchers with lower
priority, but priority will not keep watchers from being executed(except for EvIdle watchers). EvIdle watchers provide functional-
ity to suppress invocation when higher priority events are pending.
PHP Documentation Group EVWATCHER(3)