I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit.
Logically, I'm looking for the best way to approach this
Thanks for any assistance in advance.
Note: I'm using a C shell and... (2 Replies)
I have a shell script that runs all the time looking for a certain type of file and then it processes the file through a series of other scripts. The script is watching a directory that has files uploaded to it via SFTP. It already checks the size of the file to make sure that it is not still... (3 Replies)
We have data files that are ftp'd every morning to a SUN server. The file names are exactly the same except for that each has the date included in its name. I have to write script to do 2 things:
STEP 1) Verify that the file arrived in morning.
STEP 2) Compare the file size of the current... (3 Replies)
Hello,
Little new to unix scripting. I need to create a script that will do the following.
Check in a directory for a file that will be present between 19:00 and 23:00. If the file is present a e-mail then needs to be sent to myself confirming. I did write something basic...as below...
... (3 Replies)
All,
Is there a way to keep checking for a file over and over again in the same script for an interval of time?
Ie
If {
mail -user
continue checking until file arrives
file arrives
tasks
exit
I don't want the script to run each time and email the user each time a file... (4 Replies)
Hi,
I am looking for a shell script with the following.
1. It should check whether a particular file exists in a location
#!/bin/sh
if ;
then
echo "xxx.txt File Exists"
else
echo "File Not Found"
fi
2. If file exists, it should check for the modified date and run a command... (2 Replies)
hi,
i have a small file with 4 rows that looks like this:
any_error_today=
any_message_today=
any_other_thing=
any_other _thing=
I want to write a script that checks if after any = there is no data(is empty), then everything is OK.
If after = there is data written, for example... (6 Replies)
Hi,
I have a file with few values in it. I need script help to read file line by line and check:
1/if it's a file (with extension eg .java .css .jar etc )
or
2/if it's a file without extension and treat it as a directory and then check if the directory exists in working copy else create one... (6 Replies)
Hello,
I am currently looking how to develop a script to monitor files placed in a particular folder. This is not actually a big deal as I usually do some perl and shell scripting, but my problem goes here:
First, the folder names in which these files are being placed uses a naming convention of... (1 Reply)
Hi,
Im going to use shell script for load the data into DB.
First i need to read the trail file(csv file has two columns with comma separated ) like file name trail1024(last 4 digitsMMDD).
In this trail file 27 entries will have like below,I need to read first csv file name and get the 4... (1 Reply)
Discussion started by: krajasekhar.v
1 Replies
LEARN ABOUT OSX
unrezwack
UNREZWACK(1) BSD General Commands Manual UNREZWACK(1)NAME
/usr/bin/UnRezWack -- Split a RezWack file into separate data and resource files.
SYNOPSIS
/usr/bin/UnRezWack file -o outFileNameBase [-f]
DESCRIPTION
The /usr/bin/UnRezWack command takes a file created by RezWack(1) as its input file (it does not read Standard In) and divides it into two
files, one containing the data fork and one containing the resource data. /usr/bin/UnRezWack takes the following flags and arguments:
file Path to the input file. This must be a file created with RezWack(1).
-o outFileNameBase
Base path of the output files. UnRezWack will create two files at this base path, one with the extension ".data" and one with the
extension ".qtr". The resource data will be written to the data fork of the resource data file; it is not possible to create a HFS
or Extended HFS resource fork file using UnRezWack.
If either file exists, /usr/bin/UnRezWack will exit with error 2 unless the -f flag is provided.
-f Force overwriting of output files.
SEE ALSO Rez(1), DeRez(1), RezWack(1), SplitForks(1)Mac OS X April 12, 2004 Mac OS X