Sponsored Content
Top Forums Shell Programming and Scripting Run script if new file exists. Post 302464959 by timgolding on Thursday 21st of October 2010 10:48:08 AM
Old 10-21-2010
ah ok so maybe run that every 10 mins or so. Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check File Exists and compare to previous day file script

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)
Discussion started by: rbknisely
3 Replies

2. Shell Programming and Scripting

Need to write a script in UNIX to find a file if another file exists

So I have a lot of Java applications on my servers all having their own folder from the applications subdirectory. Now, I need to do the following. Search all the applications subdirectories for message.jar. If the message.jar file exists, I need to search the application directory for... (1 Reply)
Discussion started by: mmdawg
1 Replies

3. Shell Programming and Scripting

bash script quesiton - if any file exists then ...

I'd like a bash script to simply check to see if any file/files are present in a source directory, and if so move it/them to a target directory. I have this but it doesn't work: #!/bin/bash if then mv /source/* /target fi What is the right syntax? Thanks! (4 Replies)
Discussion started by: graysky
4 Replies

4. Shell Programming and Scripting

Script to check if file exists

guys, I am trying to write a script that does the following: it looks for a file in a specific directory and if the file is not there (NOT), it emails me. I have tried the following but its not working. It simply hangs up. Please help. if then mail -s 'blah blah blah' my email... (4 Replies)
Discussion started by: basisvasis
4 Replies

5. Shell Programming and Scripting

Script to check for the file existence, if file exists it should echo the no of modified days

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)
Discussion started by: karthikeyan_mac
2 Replies

6. Shell Programming and Scripting

Script to check file exists

Hi, I am trying to write a script which checks if any file exists with "*.log" or "*.out" in Directory below is the code #------------------ path=/abd/xyz/ if ; then echo "Good" else echo "Failure" fi #-------------------------- its always going to else part and printing... (8 Replies)
Discussion started by: ch33ry
8 Replies

7. Debian

Bash script to STOP installation 'if' a file exists...

Hey all, Here's my dilemma: 1. I'm a newbie at scripting! 2. I need to create a script that checks: If a file size is equal to zero, then stop the installation. Is there a way to do this or am I wasting my time??? Thanx in advance! :b: (2 Replies)
Discussion started by: thazsar
2 Replies

8. Shell Programming and Scripting

Need to check links exists in the server based on that need to run the build script

Hi, I am working on a build script which will check for the links existing in the server ,then run the gen command to start the build process. Appreciate help on this. server os:sun solaris 10.Bash shell links present in the server location /spa/5.0: genver -> sa0_genver_release... (1 Reply)
Discussion started by: muraliinfy04
1 Replies

9. Windows & DOS: Issues & Discussions

Script that, if file exists in Samba share, moves file to Unix server

I'm looking to do pretty much what the title says. I want a script that runs, it can run on Unix or Windows, doesn't matter, and searches a Samba shares for a .txt file. If the file exists, the script will move (or possibly copy) the file from the Samba share into a directory on our Unix... (3 Replies)
Discussion started by: twcostello
3 Replies

10. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
WARNQUOTA(8)						      System Manager's Manual						      WARNQUOTA(8)

NAME
warnquota - send mail to users over quota SYNOPSIS
warnquota [ -ugsid ] [ -F quotaformat ] [ -q quotatab ] [ -c configfile ] [ -a adminsfile ] [ filesystem... ] DESCRIPTION
warnquota checks the disk quota for specified local filesystems (or for each local filesystem if none specified) and mails a warning mes- sage to those users who have reached their softlimit. It is typically run via cron(8). -F, --format=quotaformat Perform setting for specified format (ie. don't perform format autodetection). Possible format names are: vfsold Original quota format with 16-bit UIDs / GIDs, vfsv0 Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits, vfsv1 Quota format with 64-bit quota limits and usage, xfs Quota on XFS filesystem. -q, --quota-tab=quotatab Use quotatab instead of /etc/quotatab as file with device description strings (see quotatab(5) for syntax). -c, --config=configfile Use configfile instead of /etc/warnquota.conf as configuration file (see warnquota.conf(5) for syntax). -a, --admins-file=adminsfile Use adminsfile instead of /etc/quotagrpadmins as a file with administrators of the groups (see quotagrpadmins(5) for syntax). -u, --user check whether users are not exceeding quotas (default). -g, --group check whether groups are not exceeding quotas. If group is exceeding quota a mail is sent to the user specified in /etc/quotagrpad- mins. -s, --human-readable Try to report used space, number of used inodes and limits in more appropriate units than the default ones. -i, --no-autofs ignore mountpoints mounted by automounter. -d, --no-details do not attach quota report in email. FILES
aquota.user quota file at the filesystem root (version 2 quota, non-XFS filesystems) quota.user quota file at the filesystem root (version 1 quota, non-XFS filesystems) /etc/warnquota.conf configuration file /etc/quotatab device description /etc/quotagrpadmins administrators of the groups /etc/mtab default filesystems /etc/passwd default set of users SEE ALSO
quota(1), quotatab(5), quotagrpadmins(5), warnquota.conf(5), cron(8), edquota(8). AUTHORS
warnquota(8) was written by Marco van Wieringen <mvw@planets.elm.net>, modifications by Jan Kara <jack@suse.cz>. This reference page writ- ten by Heiko Schlittermann <heiko@lotte.sax.de>, modifications by Jan Kara WARNQUOTA(8)
All times are GMT -4. The time now is 06:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy