Hello,
Can someone please tell me which command to use to determine the available disk space on a given disk device?
I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?
Thanks in advance!
Al. (4 Replies)
Hello all
I'm using bourne shell and need to figure out how to cut out a specific portion of some output. For example, my output from my command is:
12.12.52.125.in-addr.arpa name = hostname.domain.main.gov
I need to get just the "hostname.domain.main.gov" part. What I'm trying... (9 Replies)
I have a file that contain the following.
-D HTTPD_ROOT="/usr/local/apache"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
I want a shell script, so that after cat filename and apply the shell script I should get the output as follows.
/usr/local/apache/conf/httpd.conf
ie
cat filename |... (7 Replies)
Hi,
I am new to scripting and need help in cutting strings from output of a command. For exapmle in am getting the following as the out out from the command i run:
Out Condition: Askajdsdfa | date: 1204 | oper: +
I need to get the output as Askajdsdfa and 1204.
Thanks (3 Replies)
I know there are other threads but they have not helped. My server is running low on disk space and I haven't been able to re-allocate. I think my solaris machine is missing tools or the way it was originally setup, may not have the right pathing.
$ df -k
Filesystem kbytes used... (5 Replies)
I'm connecting to 15 servers in using ssh and storing disk space details of each server in a text file Finally , I'm emailing that text file at the particular id using mail -x . The report looks something like this.
Filesystem size used avail capacity Mounted on
/proc ... (30 Replies)
I am very new to unix and Linux, So I have a question about LINUX and AIX.
What LINUX and AIX commands can be used to get the following output:
071912 GB blocks Free %Iused Mounted on
071912 5.00 4.64 8% /
071912 15.00 9.44 38% /usr
071912 6.00 2.56 58% /var
071912 15.00 12.88 15% /tmp... (1 Reply)
Hi,
I am working on Sun Solaris 5.10 and want to direct the output from a disk space check script to an output file;
#!/bin/bash
CURRENT=$(df -k /log/logs | grep /log/logs | awk '{ print $5}' | sed 's/%//g')
THRESHOLD=30
if ; then
echo "Remaining free space is low" > output.txt
else... (10 Replies)
hi,
I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST... (2 Replies)