View Single Post

  #1 (permalink)  
Old 02-08-2007, 11:37 AM
kasimani kasimani is offline
Member
User
 
Join Date: Jul 2006
Posts: 78
Rep Power: 0
kasimani
Send a message via Yahoo to kasimani
Default Shell script for automatic conversion of files in tar files

Hello

i am new to shell script

i need a shell script that sense the space is almost filled upto 80%, after then, directories in particular dir. get converted to tar files.

when i do df -h then following output come

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
144G 2.0G 135G 2% / (This portion the shell script has to sense)
/dev/sda1 99M 15M 80M 16% /boot
none 2.0G 0 2.0G 0% /dev/shm

can anybody do this for me, it;s very urgent

thanks in advance
Reply With Quote