Please tell us what UNIX you are using and what shell. In this case it makes a big difference. Linux has better date/time tools than Solaris for example. So the answer to your question will be different for different OS/shell.
Using AIX and KSH
---------- Post updated at 02:24 PM ---------- Previous update was at 08:12 AM ----------
Quote:
Originally Posted by RudiC
For just the time check, try
For the youngest file's time stamp, your attempt should work.
Hi Rudi,
Can you help me with the complete script, I didn't get your solution.
I need to write a script to find files older than 2 hours in set of direcotries and list them ina mail. I know find command ti list files greater/lesser than days but i need to do it for hours. Any input. (6 Replies)
shell script to send email with usage of space in the directory as description :
Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Hi ,
I am new to shell scripting. i have a requirement say i will receive a file in a directory say /xyz.if that file stays in that directory more than 30 min i need to get a mail to my outlook.this should run for every 20 min in crontab.
can anyone help me? (8 Replies)
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Hello ALL,
need a BASH script who find file and send email with attachment.
I have 50 folders without sub directories in each generated files of different sizes but with a similar name Rp01.txt Rp02.txt Rp03.txt ...etc. Each directors bound by mail group, I need a script that goes as... (1 Reply)
Hello All,
I have need as below:
1--> I need to get all users(who submit jobs) and their details by using below command:
qstat -u \*
output of the above command looks line below:
job-ID prior name user-id state "submit/start at" queue jclass slots ja-task-ID... (5 Replies)
Hi All,
I have the below code(.sh) and need to send an email.
#!/bin/bash
cp /u02/xxc_incoming/TEST*.dat /u02/xxc_archive_incoming/AMER7764_ARPP_2/
cat /u02/xxc_incoming/TEST*.dat > /u02/xxc_incoming/XXC_TEST.dat
rm /u02/xxc_incoming/TEST*.dat
cd $XXC_TOP/bin
sqlldr userid=apps/<pwd> ... (12 Replies)
Discussion started by: Mist123
12 Replies
LEARN ABOUT DEBIAN
jh_makepkg
JAVAHELPER(1) User Commands JAVAHELPER(1)NAME
Javahelper - Part of the Java Helper packaging tools Refer to the tutorials in /usr/share/doc/javahelper for more detail
SYNOPSIS
jh_makepkg [options]
OPTIONS -h --help: show this text
-V --version: show the version
-p<name> --package=<name>: Set the name of the package (defaults to directory name without version)
-m<name> --maintainer=<name>: Set the maintainer name (defaults to DEBFULLNAME, NAME, or the user's full name)
-e<email> --email=<email>: Set the maintainer email (defaults to DEBEMAIL EMAIL or user@host)
-v<version> --upstream=<version>: Set the upstream version (defaults to the directory name after a -)
-c --clean: Tidy up common problems with Java source packages. Removes .class, .jar files and pre-built javadoc trees before creating the
orig.tar.gz
Pick One: -l --library: This is a library package -a --app: This is an application package Pick One: -t --ant: Build with ant -k
--makefiles: Build with make -n --none: Create own buildsystem Pick One: -g --gcj: Build with gcj -d --default: Build with default
free compiler -o --openjdk: Build with OpenJDK 6 -o7 --openjdk7: Build with OpenJDK 7
Environment Variables:
DEBEMAIL: Default maintainer email address EMAIL: Default maintainer email address DEBFULLNAME: Default maintainer name NAME:
Default maintainer name
Javahelper Version 0.5 January 2008 JAVAHELPER(1)