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)
Hi,
I need a script for "FILE WATCHER"
I have in a remote FTP location server named MAIN _104
EveryDay mrng 8 i hav to search couple of folders(COL, ATT, TRA) in that FTP server (MAIN_104), and if any files are present in that folders i hav to bring back to my computer and store it anywhere... (4 Replies)
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)
Hi all,
I am writing a script to do the following:
1) Check if there are any new <csv> files (in abc directory) to process
2) If there is new file, then perform some operation on that file.
3) Move it to a different location(after step2 is successful)
4) Do further processing on the file
... (2 Replies)
Hi friends,
Instead of creating a script autosys 11.3 has a feature for filewatcher.
Can anyone please share a link where ican create a file watcher job (more like manual).
i need to create a filewatcher job where the job should search for a file for every 5 mins
and send a mail whether the... (1 Reply)
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)
if test -n "$(find/data/path/ 'filename.txst' -print-quit)
then
echo "file found"
exit 0
else
echo "file not found"
exit 46
fi
So I basically looking to understand the
if test -n "$(find/data/path/ 'filename.txst' -print-quit)
line.
Pls help to elaborate what this command... (6 Replies)
Hi All,
Good morning...
I have prepared a shell script which will monitor files in a certain folder and if available, SCP it to a destination path.
Now the challenge I'm facing is my script is currently SCP-ing to only a single destination path. Wherever different destination path is in... (1 Reply)
Discussion started by: saps19
1 Replies
LEARN ABOUT PHP
evchild
EVCHILD(3) 1 EVCHILD(3)The EvChild classINTRODUCTION
EvChild watchers trigger when the process receives a SIGCHLD in response to some child status changes (most typically when a child dies or
exits). It is permissible to install an EvChild watcher after the child has been forked(which implies it might have already exited), as
long as the event loop isn't entered(or is continued from a watcher), i.e. forking and then immediately registering a watcher for the child
is fine, but forking and registering a watcher a few event loop iterations later or in the next callback invocation is not.
It is allowed to register EvChild watchers in the default loop only.
CLASS SYNOPSIS
EvChild
EvChildextends
EvWatcher
Properties
o public$pid
o public$rpid
o public$rstatus
Inherited properties
o public$is_active
o public$data
o public$is_pending
o public$priority
Methods
o public EvChild::__construct NULL (int $pid, bool $trace, callable $callback, [mixed $data], [int $priority])
o finalpublicstatic object EvChild::createStopped (int $pid, bool $trace, callable $callback, [mixed $data], [int $priority])
o public void EvChild::set (int $pid, bool $trace)
Inherited 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 $pid
- Readonly . The process ID this watcher watches out for, or 0 , meaning any process ID.
o $rpid
- Readonly .The process ID that detected a status change.
o $rstatus
- Readonly . The process exit status caused by $rpid .
PHP Documentation Group EVCHILD(3)