Sponsored Content
Top Forums Shell Programming and Scripting File system capacity meter in shell Post 302430907 by cfajohnson on Saturday 19th of June 2010 01:32:43 PM
Old 06-19-2010
Code:
df "$1" | { 
read; read fs blocks used avail usedpc mount
pc=$(( ${usedpc%\%} * 60 / 100 ))
echo $pc
rem=$(( 57 - $pc ))
printf "|\e[41m%${pc}s\e[0m%${rem}s|\n" " " " "
}

This User Gave Thanks to cfajohnson For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to mount a file system of a remote machine to local file system

Hi friends, In my case, there are serveral PCs running Linux in a LAN. I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory. I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies

2. Shell Programming and Scripting

File System Check using shell script !!!

Hi Guys I m posing this new thread as I didnt get satisfactory result after running search here. My requirement is very simple (using shell script) I need to findout what all file systems are mounted -> Then I need check the health of that file system - by disk usage & by doing a simple... (8 Replies)
Discussion started by: csaha
8 Replies

3. UNIX for Dummies Questions & Answers

File Size Capacity

How to view file size limit in unix.. From my case is when the file size over 80% full is has to be an alert. Thank you (3 Replies)
Discussion started by: tanjonathan
3 Replies

4. Shell Programming and Scripting

Shell Script for monitoring File system.

Hi, need help to write one shell script to monitor UNIX file systems and if any changes happend like deletion of any file, adding new file, time stamp changed, permisson changed etc. Script need to send alert mail to defined person/mail id. I request someone to help me to create the... (1 Reply)
Discussion started by: vjauhari
1 Replies

5. Shell Programming and Scripting

Shell script to find filesystem capacity on 50 servers

Hi all, I am new to Unix and I want to write a shell script in a jumpbox for finding the filesystem capacity on 50 unix servers ( by ssh ) and then email the result in HTML format with server name and capacity % to a specific outlook distribution list. any suggestion would be of great help. (17 Replies)
Discussion started by: amitbisht9
17 Replies

6. Shell Programming and Scripting

Running remote system shell script and c binary file from windows machine using java

Hi, I have an shell script program in a remote linux machine which will do some specific monitoring functionality. Also, have some C executables in that machine. From a windows machine, I want to run the shell script program (If possible using java). I tried with SSH for this. but, in... (1 Reply)
Discussion started by: ram.sj
1 Replies

7. Shell Programming and Scripting

Help with a shell script to check /var file system

deleting (0 Replies)
Discussion started by: fretagi
0 Replies

8. Homework & Coursework Questions

Disk Capacity Shell Script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! I am pretty close I think, but stuck. I don't know how to send an email to the user specified on the command line, and I receive an error stating -ge expecting a unary value(lines... (14 Replies)
Discussion started by: polyglot0727
14 Replies

9. OS X (Apple)

Text mode dual _LED_ VU meter.

Hi guys... Finally decided to release this, I have a python version too but that is unimportant to me. It is a text mode "Dual_VU.sh" meter. It actually calls dash as the interpreter but change the shebang to suit yourselves. It uses the bell character for overload per channel and... (1 Reply)
Discussion started by: wisecracker
1 Replies
vumeter(1)							   User Commands							vumeter(1)

NAME
vumeter - visual audio-level meter SYNOPSIS
vumeter [-r] [-s=ESD-server-host] [-v] [-x=x-position] [-y=y-position] [gnome-std-options] DESCRIPTION
vumeter provides a visual indication of the audio level of the audio device when esd, the enlightened sound daemon, is running. OPTIONS
The following options are supported: -r Act as a recording-level meter instead of an output-level meter. -s=ESD-server-hoConnect to the esd server on the host named ESD-server-host, and monitor the running esd daemon. If ESD-server-host is not specified, the default value is the local host. -v Display the meter in a vertical orientation. The meter is displayed horizontally by default. -x=x-position Create initial window with given horizontal offset, measured in pixels, from the left of the display. x-position is the number of pixels by which to offset the window. -y=y-position Create initial window with given vertical offset, measured in pixels, from the top of the display. y-position is the number of pixels by which to offset the window. gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information. EXAMPLES
Example 1: Launching the Visual Audio-Level Meter example% vumeter EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/vumeter Executable for visual audio-level meter ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-media | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. esd(1), gnome-std-options(5) NOTES
Written by Niall Power, Sun Microsystems Inc., 2004. SunOS 5.10 7 Sep 2004 vumeter(1)
All times are GMT -4. The time now is 03:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy