10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
Iam running with one issue, since particular date looks like one of the script vanished from the system after restarting of the system.
I dont know which scrit it was but definatelt there should be one.
but might be some logs would be there which have not updated from that day.
so... (2 Replies)
Discussion started by: ajju
2 Replies
2. Shell Programming and Scripting
Hi,
I am trying to work on this script that needs to monitor a Directory.
In case there are no files received in that Directory for the last 5 minutes, it has to send out an alert.
Could someone please suggest any approach for the same.
Note: I did check out various previous psts -... (8 Replies)
Discussion started by: rituparna_gupta
8 Replies
3. Shell Programming and Scripting
Hi All,
I have a process which after some time continues move a files to some folder(say the name of the folder is logdir)
What i am trying to do is as the files are coming to the logdir folder, I want the latest updated time and date
of the folder in PERL. (1 Reply)
Discussion started by: parthmittal2007
1 Replies
4. Shell Programming and Scripting
HI
I have a requirement to find the last updated files from a directory whcih has subdirectories and inside them we have files with .txt,.doc,.xls .. extensions. i have to find those files which were updated in the last 1hr and rename the files with respective <sub-directory>_<filename> and copy... (3 Replies)
Discussion started by: ramse8pc
3 Replies
5. Shell Programming and Scripting
Hi
i have many sets of files as shown below(here i have shown 2 sets)
basel_aa_20091030.txt
basel_aa_20091130.txt
basel_aa_20091230.txt
basel_bb_20091030.txt
basel_bb_20091130.txt
basel_bb_20091230.txt
from each set of files i need to select the latest updated file(there are... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies
6. Shell Programming and Scripting
hi gurus,
i would like to know how can i find logs files which were recently modified or updated? :confused:
using this command?
find . -name "*.log" -mtime ??
so what should i put for mtime?
thanks.
wee (9 Replies)
Discussion started by: lweegp
9 Replies
7. Shell Programming and Scripting
Put this together from somewhere else on the forums, just modified it and added the loop.
#!/bin/ksh
localFile=$1
remoteFile=$2
#source FTP parameters
. .ftp_put.cfg
mylog=ftp_session.log
echo "$(date "+%H:%M:%S") - Attempt to FTP $1 to $2" > $mylog
machine="server1 server2... (5 Replies)
Discussion started by: cbo0485
5 Replies
8. Shell Programming and Scripting
Is there a shell command that will allow me to list index files in the /home directory for all users on a server that have been updated within the past 24 hours?
(e.g. index.htm .html .php in/home/user1/public_html /home/user2/public_html /home/user3/public_html etc ) (2 Replies)
Discussion started by: Kain
2 Replies
9. Programming
hi all, i'm a student and managing lab at my insti. there in one application in which log file has to be maintaine the number of bytes transferred and received. but after certain entries these two attributes stop getting updated and holds same values for rest of the session. This happens one time... (4 Replies)
Discussion started by: KornFire
4 Replies
10. Shell Programming and Scripting
Hi,
I would like to define a script in order to update a file with the last updated records:
I wrote :
#!/bin/sh
YEAR=$(date +%Y)
MONTH=$(date +%m)
DAY=$(date +%d)
COMM=/usr/bin/comm
for file in * ;
do
if ] ; then
FILE=${DPSTY}
UNIQUE=Unique_${FILE}
... (4 Replies)
Discussion started by: dbfree
4 Replies