10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
we are using Disk utilization and filesystem utilization seperately. In AIX using
$lsvg
rootvg
datavg
$lspv hdisk1
PHYSICAL VOLUME: hdisk1 VOLUME GROUP: datavg
PV IDENTIFIER: 00f65eab7acabb17 VG IDENTIFIER 00f65eab00004c00000001567b60a848
PV STATE: ... (3 Replies)
Discussion started by: freeaac
3 Replies
2. Shell Programming and Scripting
I am trying to check whether two files are empty or not using below if condition but its checking for only one file
if ]
Again I tried
if && ]
Need your assistance (2 Replies)
Discussion started by: Aditya_001
2 Replies
3. Shell Programming and Scripting
I'm doing a script thats check if mylogfile.log is bigger then 5000 but i dont know how to write it.
thanks in avance. (6 Replies)
Discussion started by: Froob
6 Replies
4. Shell Programming and Scripting
if ; then
cp /tmp/testfolder/*.* ~/new/logs/
else
echo "No files today"
exit
fi
The problem is this doen't work when there is more than 1 file. Please tell me how to
take the latest file and check the size of the file in a directory (1 Reply)
Discussion started by: sandy1028
1 Replies
5. Shell Programming and Scripting
I have following script on AIX/KSH
if ] ; then
echo "filename exists and is > 0 bytes"
else
echo "filename does not exist or is zero length"
fi
It is not working. What is wrong here??? (3 Replies)
Discussion started by: Hangman2
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I need to put a script working to see in a directory with logs if exists file or files with size more than 12Mb.
If exists it shoul send mail.
Can anyone help me?
thanks (3 Replies)
Discussion started by: osramos
3 Replies
7. Shell Programming and Scripting
Hi All,
I am in small problem..
i have one script which transfers some big files to my ftp usign normal command like put ....
my problem is how to check whether my file have been transferred successfully on ftp or not...
i know only inside ftp we have option like 'size' command which... (2 Replies)
Discussion started by: Shahul
2 Replies
8. Shell Programming and Scripting
How can I perform size check of any character file(which switch)?
For example: I have to perform certain actions if file size is not zero. How can I do that?
Is this syntax fine?
if test ! -z $filename
then
fi (2 Replies)
Discussion started by: malaymaru
2 Replies
9. Filesystems, Disks and Memory
Below is a list of the file system on my Sun system. How can I transfer more disk space from the "/space" partition to the "/" partition with out rebuilding?
/ /dev/dsk/c0t0d0 6191949 5736718 393312 94%
/proc /proc 0 0 0 0%
/dev/fd fd 0 0 0 0%
/etc/mntta ... (10 Replies)
Discussion started by: meyersp
10 Replies
10. Shell Programming and Scripting
Hello everyone!
Can anyone help me with this?
I need a script that looks at a logfile and check itīs size. If itīs over a sertain size the i should get an email. Dont really know how the grep that info "the size"
Please help.... (4 Replies)
Discussion started by: dozy
4 Replies