11-07-2011
10 More Discussions You Might Find Interesting
1. Solaris
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies
2. Shell Programming and Scripting
Hi,
I have written a script which would FTP a dump file to the FTP server and log the whole activity into a file. to confirm the success of the file copy i grep for "226 file receive OK" and then send out an email saying success. Now i want to make sure the bytes of the local file and... (4 Replies)
Discussion started by: dba.admin2008
4 Replies
3. Shell Programming and Scripting
Hi All...
is the below command be modified in sucha way that i can get the file size along with the name and path of the file
the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also..
find / -name "*.*" -size +100000k
... (3 Replies)
Discussion started by: rpraharaj84
3 Replies
4. Solaris
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies
5. Shell Programming and Scripting
#!/bin/sh
##########################################################################################################
#This script is being used for AOK application for cleaning up the .out files and zip it under logs directory.
# IBM
# Created
#For pdocap201/pdoca202 .out files for AOK
#1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies
6. Shell Programming and Scripting
How to use 'df' only to get the 'Available' space for a specific dir, and then compare with a specific file size using stat -c %s file.txt to see if the file actually can be copied into the dir. Is there any quick way to see if a file can fit into a dir? (4 Replies)
Discussion started by: Emilywu
4 Replies
7. Shell Programming and Scripting
Hi Experts,
I have a script like
$ORACLE_HOME/bin/sqlplus username/password # << ENDSQL
set pagesize 0 trim on feedback off verify off echo off newp none timing off
set serveroutput on
set heading off
spool Schemaerrtmp.txt
select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies
8. Shell Programming and Scripting
Hi Experts,
I had to edit (a particular value) in header line of a very huge file so for that i wanted to search & replace a particular value on a file which was of 24 GB in Size. I managed to do it but it took long time to complete. Can anyone please tell me how can we do it in a optimised... (7 Replies)
Discussion started by: manishkomar007
7 Replies
9. Programming
Hi,
Can I find size of the file from size of the buffer written?
nbECRITS = fwrite(strstr(data->buffer, ";") + 1, sizeof(char), (data->buffsize) - LEN_NOM_FIC, fic_sortie);
Thank You :) (1 Reply)
Discussion started by: ezee
1 Replies
10. UNIX for Dummies Questions & Answers
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies
VOL(1) General Commands Manual VOL(1)
NAME
vol - split input on or combine output from several volumes
SYNOPSIS
vol [-rw1] [-b blocksize] [-m multiple] [size] device
DESCRIPTION
Vol either reads a large input stream from standard input and distributes it over several volumes or combines volumes and sends them to
standard output. The size of the volumes is determined automatically if the device supports this, but may be specified before the argument
naming the device if automated detection is not possible or if only part of the physical volume is used. The direction of the data is
automatically determined by checking whether the input or output of vol is a file or pipe. Use the -r or -w flag if you want to specify
the direction explicitly, in shell scripts for instance.
Vol waits for each new volume to be inserted, typing return makes it continue. If no size is explicitely given then the size of the device
is determined each time before it is read or written, so it is possible to mix floppies of different sizes. If the size cannot be deter-
mined (probably a tape) then the device is assumed to be infinitely big. Vol can be used both for block or character devices. It will
buffer the data and use a block size appropriate for fixed or variable block sized tapes.
Vol reads or writes 8192 bytes to block devices, usually floppies. Character devices are read or written using a multiple of 512 bytes.
This multiple has an upper limit of 32767 bytes (16-bit machine), 64 kb (32-bit), or even 1 Mb (32-bit VM). The last partial write to a
character device is padded with zeros to the block size. If a character device is a tape device that responds to the mtio(4) status call
then the reported tape block size will be used as the smallest unit. If the tape is a variable block length device then it is read or
written like a block device, 8192 bytes at the time, with a minimum unit of one byte.
All sizes may be suffixed by the letters M, k, b or w to multiply the number by mega, kilo, block (512), or word (2). The volume size by
default in kilobytes if there is no suffix.
OPTIONS
-rw Explicitly specify reading or writing. Almost mandatory in scripts.
-1 Just one volume, start immediately.
-b blocksize
Specify the device block size.
-m multiple
Specify the maximum read or write size of multiple blocks. The -b and -m options allow one to modify the block size assumptions
that are made above. These assumptions are -b 1 -m 8192 for block devices or variable length tapes, and -b 512 -m 65536 for charac-
ter devices (32 bit machine.) These options will not override the tape block size found out with an mtio(4) call. The multiple may
be larger then the default if vol can allocate the memory required.
EXAMPLES
To back up a tree to floppies as a compressed tarfile:
tar cf - . | compress | vol /dev/fd0
To restore a tree from 720 kb images from possibly bigger floppies:
vol 720 /dev/fd0 | uncompress | tar xfp -
Read or write a device with 1024 byte blocks:
vol -b 1k /dev/rsd15
Read or write a variable block length tape using blocking factor 20 as used by default by many tar(1) commands:
vol -m 20b /dev/rst5
Note that -m was used in the last example. It sets the size to use to read or write, -b sets the basic block size that may be written in
multiples.
SEE ALSO
dd(1), tar(1), mt(1), mtio(4).
VOL(1)