What should happen to the input file after the scripts complete?
These config files sound quite similar to makefiles, or could be made so.
The input file is a file containing some data to be processed.The input file would be archived after processing.
The scripts might do simple stuffs like checking whether the source file name is correct as per logic,or check whether there aint any duplication of records in the files,logic to do a data quality check.
These individual scripts run on their own and export some shell variables along with 0 return code in case of success and non zero return code for any failures.
Regards,
Dikesh Shah.
---------- Post updated at 04:50 AM ---------- Previous update was at 04:47 AM ----------
Quote:
Originally Posted by Chubler_XL
You could try something like this, not they after finding a watch file you should probably delete or move it aside to stop actions repeating on every check:
Can you please explain what does the above code does?
I am a bit new to complex shell programming.
How do I update, change, reconfigure or whatever it is that I have to do, in order to rid the GENERIC label. It just means that it is the basic kernel shipped with the OS right? Im using FBSD 4.5 (2 Replies)
Hi everyone,
Please find the script for Filewatcher rule file,which does the simple job of moving the files whenever it dectects to another directory.And whenever it detects the cmd_mm.stop file,it should terminate the job.
INTERVAL 60
ON_FILEWATCH ${HLD}/CMD/* CREATE 0 1 2 0400 5
THEN... (2 Replies)
Hi All,
Sorry to post these many questions on UNIX. i am new to unix & got only UNIX work in my organization.
I need to make a script for File Arrival Check.
1. The script should wait for indicator file for configured amount of time.
2. If the file is not received after the configured... (4 Replies)
can we copy higher version aclocal to our software.
Is there any good book for automake,aclocal.m4,configure.sub,configure.guess that explains clearly about how they are related , how to modify them etc
Thanks
Gopi (1 Reply)
Hi,
A ------> B ------> C
I have a scenario where each day, my server B would ftp to server A and pull (A,B,C,D,E) from a specific directory.
Server C would need files (B,D) only when server B finished receiving from server A. These files change everyday, so sometimes it takes longer... (3 Replies)
Hi Friends
iam using a filewatcher job which checks the path in intervals
below is the script
#!/bin/ksh
fileflag=0
timer1=0
check_interval=120 # check every 2 minutes
(( check_interval_minutes=${check_interval}/60 ))
while
do
if
then
echo "My file exists now..." | mailx -s... (7 Replies)
hi All,
I ned to write a filewatcher script, with following requirements.
1. The script should look for the file in every 5 min.
2. If the file is found, it should check in every 3 min the size of file.
3. if the file size has not changed in last 4 iterations (i.e. in last 12 min), the... (2 Replies)
Discussion started by: alok2082
2 Replies
LEARN ABOUT SUSE
io::seekable
IO::Seekable(3pm) Perl Programmers Reference Guide IO::Seekable(3pm)NAME
IO::Seekable - supply seek based methods for I/O objects
SYNOPSIS
use IO::Seekable;
package IO::Something;
@ISA = qw(IO::Seekable);
DESCRIPTION
"IO::Seekable" does not have a constructor of its own as it is intended to be inherited by other "IO::Handle" based objects. It provides
methods which allow seeking of the file descriptors.
$io->getpos
Returns an opaque value that represents the current position of the IO::File, or "undef" if this is not possible (eg an unseekable
stream such as a terminal, pipe or socket). If the fgetpos() function is available in your C library it is used to implements getpos,
else perl emulates getpos using C's ftell() function.
$io->setpos
Uses the value of a previous getpos call to return to a previously visited position. Returns "0 but true" on success, "undef" on
failure.
See perlfunc for complete descriptions of each of the following supported "IO::Seekable" methods, which are just front ends for the
corresponding built-in functions:
$io->seek ( POS, WHENCE )
Seek the IO::File to position POS, relative to WHENCE:
WHENCE=0 (SEEK_SET)
POS is absolute position. (Seek relative to the start of the file)
WHENCE=1 (SEEK_CUR)
POS is an offset from the current position. (Seek relative to current)
WHENCE=2 (SEEK_END)
POS is an offset from the end of the file. (Seek relative to end)
The SEEK_* constants can be imported from the "Fcntl" module if you don't wish to use the numbers 0 1 or 2 in your code.
Returns 1 upon success, 0 otherwise.
$io->sysseek( POS, WHENCE )
Similar to $io->seek, but sets the IO::File's position using the system call lseek(2) directly, so will confuse most perl IO operators
except sysread and syswrite (see perlfunc for full details)
Returns the new position, or "undef" on failure. A position of zero is returned as the string "0 but true"
$io->tell
Returns the IO::File's current position, or -1 on error.
SEE ALSO
perlfunc, "I/O Operators" in perlop, IO::Handle IO::File
HISTORY
Derived from FileHandle.pm by Graham Barr <gbarr@pobox.com>
perl v5.12.1 2010-04-26 IO::Seekable(3pm)