10-08-2008
Check the Usability of files
Hi All,
I am in the process of collecting data which i need for further analysis and taking necessary actions.
Can i check when a certain file was used last time.
How can i differentiate that usage and creation is different in Unix.
I have log files but those are huge in size not sure how to take out that information out of them exactly.
Any help would be appreciated.
Regards
Karan
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I know how to count lines, count byte of a file, but really dont know how to compare line , I am newbie and hope you can help me to learn more about UNIX.
Here is my problem.
====
How :
1. File A (Flatfile with NAME|DATE|ID1|ID2|ID3|ID4|ID5)... (3 Replies)
Discussion started by: sabercats
3 Replies
2. Shell Programming and Scripting
Hi,
I am a newbie to shell scripting. here is my objective:
1)The shell program should take 2 parameters - ie-> DestinationFolder, WebFolder
2)Destination folder contains few files that has to has be verified and deleted.
3)WebFolder is a folder containing a list of master files
4)It... (1 Reply)
Discussion started by: sandhyagupta
1 Replies
3. Shell Programming and Scripting
Hi,
I have a dir in which I need to check for 3 files. and naming for three files are as below.
fileone_yyyy_mm_dd.dat
filetwo_yyyy_mm_dd.dat
filethree_yyyy_mm_dd.datand YYYY_mm_dd will change everyday as the date changes. I need to check everyday all these files are existing or not... (4 Replies)
Discussion started by: ravinunna
4 Replies
4. Shell Programming and Scripting
Hi,
I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is
# echo $0
-sh
My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies
5. Shell Programming and Scripting
Hi Experts,
I am checking how to get day in Perl.
If it is “Monday” I need to process…below is the pseudo code.
Can you please prove the code for below condition.
if (today=="Monday" )
{
while (current_time LESS THAN 9:01 AM)
... (1 Reply)
Discussion started by: ajaypatil_am
1 Replies
6. Shell Programming and Scripting
Hi all,
I have 2 files in which i have to find commom entries in column 1 an dif soemthing is common write other data of both files in front of it mentioned.
Gene symbol and disease name
column 1 column2
ARFGEF2 CAD
DDEF2 CAD
PSCD3 CAD
PSCD4 CAD
CAMK1... (15 Replies)
Discussion started by: manigrover
15 Replies
7. Shell Programming and Scripting
Hi,
I have to check the files in another server using sftp to do that, below is the code i am going with
#!/bin/bash
export SRC_FOLDER=$1
export ARC_FOLDER=$2
HOST=as07u3456
USER=relfag
sftp ${USER}@${HOST} <<EOF
cd $SRC_FOLDER/DSCOR
ls
bye
EOF
echo "done"
whatever the files i... (8 Replies)
Discussion started by: ursrami
8 Replies
8. Shell Programming and Scripting
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies
9. What is on Your Mind?
For the first time in the history of the site Google Search Console (GSC) has unix.com showing "no mobile viewability errors". This is no small achievement considering the hundreds of thousand of lines of legacy code we run at a site which has been around much longer than Facebook or LinkedIn:
... (0 Replies)
Discussion started by: Neo
0 Replies
RIVET(1) User Commands RIVET(1)
NAME
rivet - Robust Independent Validation of Experiment and Theory
SYNOPSIS
rivet [options] myfifo
OPTIONS
--version
show program's version number and exit.
-h, --help
show this help message and exit.
-l NATIVE_LOG_STRS
set a log level in the Rivet library.
-a ANA, --analysis=ANA
add an analysis to the processing list.
--list-analyses
show the list of available analyses' names. With -v, it shows the descriptions, too.
--list-used-analyses
list the analyses used by this command (after subtraction of inappropriate ones).
--show-analysis=SHOW_ANALYSES, --show-analyses=SHOW_ANALYSES
show the details of an analysis.
--analysis-path=PATH
specify the analysis search path (cf. $RIVET_ANALYSIS_PATH).
--analysis-path-append=PATH
append to the analysis search path (cf. $RIVET_ANALYSIS_PATH).
--pwd append the current directory (pwd) to the analysis search path (cf. $RIVET_ANALYSIS_PATH).
-H HISTOFILE, --histo-file=HISTOFILE
specify the output histo file path (default = Rivet.aida).
-x XS, --cross-section=XS
specify the signal process cross-section in pb.
-n NUM, --nevts=NUM
restrict the max number of events to read.
--runname=NAME
give an optional run name, to be prepended as a 'top level directory' in histo paths.
--ignore-beams
Ignore input event beams when checking analysis compatibility.
--event-timeout=NSECS
max time in whole seconds to wait for an event to be generated from the specified source (default = 21600)
--run-timeout=NSECS
max time in whole seconds to wait for the run to finish. This can be useful on batch systems such as the LCG Grid where tokens
expire on a fixed wall-clock and can render long Rivet runs unable to write out the final histogram file (default = unlimited).
--histo-interval=HISTO_WRITE_INTERVAL
[experimental!] specify the number of events between histogram file updates. Default is to only write out at the end of the run.
Note that intermediate histograms will be those from the analyze step only: analysis finalizing is currently not executed until the
end of the run.
-v, --verbose
print debug (very verbose) messages.
-q, --quiet
be very quiet.
EXAMPLES
mkfifo hepmc.fifo
my-generator -o myfifo &
rivet --analysis=ANALYSIS_NAME hepmc.fifo
ENVIRONMENT
:
RIVET_ANALYSIS_PATH
list of paths to be searched for plugin analysis libraries at runtime.
RIVET_REF_PATH
list of paths to be searched for reference data files.
RIVET_INFO_PATH
list of paths to be searched for analysis metadata files.
AUTHOR
This manual page was written by Lifeng Sun <lifongsun@gmail.com> for the Debian system (but may be used by others).
Rivet June 2012 RIVET(1)