09-23-2013
No.I am afraid that cannot be done. The filename remains fixed. I was thinking it can be much easier to check the file on the code basis "01" , "02" etc rather than on the date basis. I am not sure.But that is what i was thinking.
Any improvement to the above logic is please greatly appreciated.
---------- Post updated at 01:40 AM ---------- Previous update was at 12:39 AM ----------
Corona is there a way we can just extract the "01"/"02" etc part of the file by reading the output file and use this as a criterion to compare between an older and a newer file in the week please?
10 More Discussions You Might Find Interesting
1. Programming
Hi
First I want to explain the scenerio :
In my project I want to control the printing of some messages. Thats why I use
#ifdef MESSAGE
------------print message--------------
#endif
And when I compile the program with -DMESSAGE option, it shows all message and without -DMESSAGE option... (7 Replies)
Discussion started by: sumsin
7 Replies
2. Shell Programming and Scripting
Hi,
Can any body help me,How to pickup file from folder using shellscript.
FolderName:/test
FileinFolder: test.txt
MY req is:Shellscript pickup file from folder and pass file as parameter to java program..?
Thanks,
Rams (0 Replies)
Discussion started by: ram2s2001
0 Replies
3. Shell Programming and Scripting
Freinds,
I need help:
I need to process number of flat files on weekly basis. My source dir will receive flat files regulary at mid night
between 1:00am and 6:00am. When I run my weekly file process it should get only the files which are until last friday
(including friday)and move them in... (1 Reply)
Discussion started by: magi
1 Replies
4. UNIX for Dummies Questions & Answers
How can I pickup files with a specific date by "ls" command without options? (1 Reply)
Discussion started by: gd2003
1 Replies
5. Shell Programming and Scripting
I have four files a,b,c,d which need to contain certain in the sequence a, b, c ,d , each file command which needs to be executed,
what i m in need is that to executed file and cmd in the defined order and if any of the command FAIL or throw ERROR, it script shud come out... (3 Replies)
Discussion started by: tarunn.dubeyy
3 Replies
6. Shell Programming and Scripting
In my code, I know I can write...
if ( defined &test_sub ) {
test_sub();
} else {
print "Subroutine doesn't exist";
}
This tests the existence of the test_sub subroutine without actually calling it.
If, though, I replace test_sub with a package method...
if ( defined... (1 Reply)
Discussion started by: JerryHone
1 Replies
7. Shell Programming and Scripting
Hi,
I have two files to pick and excute these ones.
File1:DOLFIN.PRL_100.OIB.TLU.001.D20110510.T144948
File2:DOLFIN.PRM_100.OTU.001.D20100726.T050026
date '+%H:%M:%S'
SCRIPTS_PATH=/u/dolfin/bin
. ${SCRIPTS_PATH}/set_dolfin_env.sh
DATA_FILE_NAME=DATA_FILE
DATE_FORMAT=`date... (2 Replies)
Discussion started by: shyamu544
2 Replies
8. Shell Programming and Scripting
Hi experts,
I am facing a problem right now.I have to automate the pickup of files based on a priority.The scenario is as below:
1) There will be files from Mon-Fri with Mon file being named as abc_def_01_YYYYMMDD and Tue file being abc_def_02_YYYYMMDD and so forth till Friday's file which... (1 Reply)
Discussion started by: vikramgk9
1 Replies
9. Shell Programming and Scripting
Bash script to subdivide a given subnet into a pre-defined number of smaller subnets. Show network/broadcast address, number of hosts and assign gateway.
For example:
Input:
./subnetter.sh 192.168.0.0/24 3 Output:
192.168.0.0/128 subnet 192.168.0.0 broadcast 192.168.0.127 gateway... (1 Reply)
Discussion started by: mail2rias
1 Replies
10. Shell Programming and Scripting
Bash script to subdivide a given subnet into a pre-defined number of smaller subnets. Show network/broadcast address, number of hosts and assign gateway.
For example:
Input:
./subnetter.sh 192.168.0.0/24 3 Output:
192.168.0.0/128 subnet 192.168.0.0 broadcast 192.168.0.127 gateway... (1 Reply)
Discussion started by: mail2rias
1 Replies
LEARN ABOUT DEBIAN
script-email
SCRIPT-EMAIL(8) System Administration Commands SCRIPT-EMAIL(8)
NAME
script-email - Amanda script to send email notifications
DESCRIPTION
script-email is an Amanda script implementing the Script API. It should not be run by users directly. It sends a notification email to the
addresses specified in the MAILTO property.
PROPERTIES
This section lists the properties that control script-email's functionality. See amanda-scripts(7) for information on the Script API,
script configuration.
MAILTO
List of email addresses that will receive an email on command execution. It is a multi-valued property:
property "MAILTO" "amanda@domain.com" "sysadmin@domain.com" "amandauser@domain.com"
EXAMPLE
In this example, script-email is scheduled to be run before the DLE, on the server. The unqualified email address amanda will be passed to
the email system unchanged. The script is then attached to a dumptype, which can then be specified for any DLEs which require
notification.
define script-tool pre-email {
comment "email me before this DLE is backed up"
plugin "script-email"
execute-on pre-dle-backup
execute-where server
property "mailto" "amanda"
}
define dumptype user-tar-email {
user-tar
script "pre-email"
}
SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-scripts(7)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.1 02/21/2012 SCRIPT-EMAIL(8)