Hi,
From a Unix book, i'd found that the way to list files in a directory.
But those file info are all not shown, wat is shown is only the file name.
Can anyone pls teach me how to show the file details?
(etc file size, read/write permission, modified date)
my code:
Dir *dirp;
struct... (3 Replies)
I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
I know this is prob a simple question but anyway here goes. I want to find out the owner of a certain file. I also want to find out what permissions that owner has. Is their any command that is similair to file in that it can tell men this specfic information about a file the way file tells you... (1 Reply)
My server with Solaris OS and SUNW,Sun-Fire-V240 give me core file like below:
----------------- lwp# 1 / thread# 1 --------------------
fed40e50 _pause (1, 0, fed82000, ffbfe9bc, fedda780, 0) + 8
ff1a22b0 __1cLMTlsSigHdlrEwait6Mb_v_ (1013d0, 1, 1, 0, 0, 0) + 58
0003d274 main (1,... (3 Replies)
I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves.
Also, the script should only move a file from /exports to... (6 Replies)
Hello.
I can't figure out how to see file size info here.
Can someone comment on this ?
bash-3.2$ uname -a
HP-UX fms-a B.11.31 U ia64 1717699127 unlimited-user license
bash-3.2$ pwd
/u01/app/oracle/oradata/fms
bash-3.2$ ls -l fms_tools_1.dbf
lrwxr-xr-x 1 root sys 21... (2 Replies)
I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction?
for FILE in `cat list`; do
if ;
then
... (1 Reply)
Hi, long time reader, first time poster.
I've done some searching so please if this is a repeated post excuse the duplicate, but what I have are two files roughly like so:
File 1:
A W
B X
C Y
D Z
File 2:
A 1
C 2
D 3
And what I would like to get out is... (4 Replies)
I have a code fragment
#dosomething
(
#do many things
) |tee -a zzz.log
#dosomething
I want a varialbe var
if var =1, print the info in (#do many things ) to console, if var=0, not print the info to console (1 Reply)
Hi,
I have a .csv file that contains a variety of fields for 60 clients: USERNAME, PASSWORD, and COMMENTS. I have a template file which contains a great deal of data for each client and has the fields USERNAME, PASSWORD, and COMMENTS that has to be filled with the values of USERNAME,... (1 Reply)
Discussion started by: mojoman
1 Replies
LEARN ABOUT CENTOS
iowatcher
iowatcher(1) General Commands Manual iowatcher(1)NAME
iowatcher - Create visualizations from blktrace results
SYNOPSIS
iowatcher OPTIONS...
DESCRIPTION
iowatcher graphs the results of a blktrace run. It can graph the result of an existing blktrace, start a new blktrace, or start a new blk-
trace and a benchmark run. It can then create an image or movie of the IO from a given trace. iowatcher can produce either SVG files or
movies in mp4 format (with ffmpeg) or ogg format (with png2theora).
OPTIONS --help Print a brief usage summary.
-d, --device <device>
Controls which device you are tracing. You can only trace one device at a time for now. It is sent directly to blktrace, and only
needed when you are making a new trace.
-D, --blktrace-destination <destination>
Destination for blktrace.
-p, --prog <program>
Program to run while blktrace is run.
-K, --keep-movie-svgs
Keep the SVG files generated for movie mode.
-t, --trace <file|directory>
Controls the name of the blktrace file. iowatcher uses a dump from blkparse, so -t tries to guess the name of the corresponding per
CPU blktrace data files if the dump file doesn't already exist. If you want more than one trace in a given graph, you can specify
-t more than once. If a directory is specified, iowatcher will use the name of the directory as the base name of the dump file and
all trace files found inside the directory will be processed.
-l, --label <label>
Sets a label in the graph for a trace file. The labels are added in the same order the trace files are added.
-m, --movie [spindle|rect]
Create a movie. The file format depends on the extension used in the -o filename.* option. If you specify an .ogv or .ogg exten-
sion, the result will be Ogg Theora video, if png2theora is available. If you use an .mp4 extension, the result will be an mp4
video if ffmpeg is available. You can use any other extension, but the end result will be an mp4. You can use --movie=spindle or
--movie=rect, which changes the style of the IO mapping.
-T, --title <title>
Set a title to be placed at the top of the graph.
-o, --output <file>
Output filename (default: trace.svg).
-r, --rolling <seconds>
Control the duration for the rolling average. iowatcher tries to smooth out bumpy graphs by averaging the current second with sec-
onds from the past. Larger numbers here give you flatter graphs.
-h, --height <height>
Set the height of each graph
-w, --width <width>
Set the width of each graph
-c, --columns <columns>
Numbers of columns in graph output
-x, --xzoom <min:max>
Limit processed time range to min:max
-y, --yzoom <min:max>
Limit processed sectors to min:max
-a, --io-plot-action <action>
Plot given action (one of Q,D,C) in IO graph
-P, --per-process-io
Distinguish between processes in IO graph
-O, --only-graph <graph>
Add a single graph to the output (see GRAPHS). By default all the graphs are included, but with -O you get only the graphs you ask
for. -O may be used more than once.
-N, --no-graph <type>
Remove a single graph from the output (see GRAPHS). This may also be used more than once.
GRAPHS
Choices for -O and -N are:
io, tput, latency, queue_depth, iops, cpu-sys, cpu-io, cpu-irq, cpu-user, cpu-soft
EXAMPLES
Generate graph from the existing trace.dump:
iowatcher -t trace.dump -o trace.svg
Skip the IO graph:
iowatcher -t trace.dump -o trace.svg -N io
Only graph tput and latency:
iowatcher -t trace.dump -o trace.svg -O tput -O latency
Generate a graph from two runs, and label them:
iowatcher -t ext4.dump -t xfs.dump -l Ext4 -l XFS -o trace.svg
Run a fio benchmark and store the trace in trace.dump, add a title to the top, use /dev/sda for blktrace:
iowatcher -d /dev/sda -t trace.dump -T 'Fio Benchmark' -p 'fio some_job_file'
Make a movie from an existing trace:
iowatcher -t trace --movie -o trace.mp4
iowatcher(1)