The reason why i use " onstat -d " instead of "df" or "bdf" is this "onstat -d " will let me know the chunk usage in my server. The other 2 command only give me the size of the whole directory.
However onstat -d didn't give the % of the usage, so i...
Thanks to hmerill n stillflame !
i tried to use the df command, but this command only give me the size of the folder.
Instead, i use this" onstat -d" command. Below is part of my script:
onstat -d | grep "\/dev\/my_file_name" | space={$6/$5}*100
echo "$space"...
Hardy Merrill :
thanks for ur help ! Let me explain my problem.
I wish to write a script which will check my file size. IF the file size is more than 80% of the space , it will send me alert by mail.
For example, directory A has 500MB, if the space has less than 20% out of 500MB, it should...
I wish to have a script which will check some file size, if the file size is over 80% out of the space, it will send alert to me through the email.
Can anyone give some idea how to do it ? thanks for advance !
Ok .... Below is my script:
#!/usr/bin/perl
opendir(DIR,".") || die "Serious dainbramage: $!" #go to current directory
#@allfiles = grep { CONNECT }...
sorry ... one more quetions..
I have searched this forum for how to send attachement , but couldn't found.
May i know, after the operation 1 n 2 above, how to send that file, D to somebody.
thanks a lot..................................................................
#!/usr/bin/perl
opendir (PU, ".") || die "serious dainbramage: $!";
open(OUTPUTFILE,">list.txt") || die "Failed to open OUTPUTFILE, $!\n"...
hi !!!! sorry it's my mistake.....
actually above 2 method is working. B'cos of i use the same file name, it overwrite the file. After i used different file names for these 2 .txt, it is working !!!
goBoating n tanderso, Thank you very much !!!!!!!
Thanks for both of u !!!!
i tried to use above 2 method, the result still the same, that's .. my client.txt become an empty file.
Is it b'cos of the "|" between the string ? or some other reason.
Regards,
Kenix
Hi, I with to delete quote (") in a text file like below :
1243| "ABC" | test |
I tried to use s///, tr /// but failed to do it. Below is my script:
#usr/bin/perl
open(INFILE, "<client.txt") || die "can't open file;
while (<INFILE> ) {
open(OUTFILE...
flatbloke , a million thanks for u !!!!!!!! It works !!!
hmm... i got some questions..
This array.sort method is much more simple than bubble sort method, but why a lot of tutorial or forum always use this method ???
What i know is the fastest sorting method is using either shell sort or...
Thanks flatbloke !!! hmm...... but actually i need a Array.sort method instead of the bubble sort method.
I have to call the function Compare several times, but it seem like fail to do it. I dunno what's wrong with the script.
Can u pls show me. Thanks !!!!!!!
I wish to sort a table dynamically using array.sort method. Below is my code, but it didn't work, can any one give help ???
--------------- Script ----------------------
<SCRIPT LANGUAGE="JavaScript"><!--...
Hi !
i have a table which include date, text, number in different column. Can any one sugget any sort function which is faster in term of the speed ?
(no bubble sort pls ....)
Actually i intend to use the Array.sort method, can any one give me a example or a working script which use this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.