10 More Discussions You Might Find Interesting
1. 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
2. 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
3. Shell Programming and Scripting
Dear All,
I need notification mail from server while device size crossed 80% approximately.I tried following shell .its working fine when the device name like /dev/sdc1 etc.Its not working in LVM name.For example
Script:
#!/bin/sh
echo "Storage server space details";
df -H | grep -vE... (4 Replies)
Discussion started by: kpoobathi
4 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. UNIX for Advanced & Expert Users
Hello,
I have two servers A and B, My script is written on Server A. I am picking up the file say "abc.txt" from Server B using sftp command and putting it in a directory at Server A.
Now the catch is, If the file size of "abc.txt" is greater thn the available size on Server A, thn an email... (1 Reply)
Discussion started by: Prashant Jain
1 Replies
6. 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
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
Hello
i have to connect to 11 servers to check the process size on every server.
how to that with shell scripting using ssh
regards (7 Replies)
Discussion started by: mogabr
7 Replies
9. 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
10. UNIX for Dummies Questions & Answers
I need a unix script that will check the size of multiple files in the same directory or from a text file. (6 Replies)
Discussion started by: alnita
6 Replies