Search Results

Search: Posts Made By: dshea0001
1,559
Posted By dshea0001
I dont want to use echo as a message to print...
I dont want to use echo as a message to print out. What i really want is to use something like dmesg.
1
2,599
Posted By dshea0001
msg??
I want to display a message when the script is done running, but I do not want to use echo. Is there another command I can use besides echo? If so, show me how it is done.
1,559
Posted By dshea0001
messages
I need to create a message for both if statements and for the else.

!/bin/sh
blocks=0
blocks=`df -k /opt/mysql | awk '{if(length($5)<4)
{print...
1,368
Posted By dshea0001
AWK Help
This is my code
AVAIL=`df -k /opt/mysql | awk '{
TEMP=$5
pos=index(TEMP, "capacity" )
printf "position is %d\n",pos
...
11,914
Posted By dshea0001
This is what my code looks like: h=`df -b...
This is what my code looks like:

h=`df -b /opt/mysql`
echo $h
if ( (df -b /opt/mysql|cut -d: -f2|tr -dc `[0-9]`) <= 20000000 );
then
echo "Filesystem ready to be archived"
fi

Is this...
11,914
Posted By dshea0001
I tried your way and it did not work when i tried...
I tried your way and it did not work when i tried running the script. This is what I got when i ran the script:
>./highwater
./highwater: {print: not found
awk: syntax error near line 2
awk:...
1,470
Posted By dshea0001
command help
I have done this command:
df -b /opt/mysql

then it gave me the Filesystem info and the Avail. Now is there away that I can just list the avial number. because i want to be able to take that...
11,914
Posted By dshea0001
df command
I have done this command:
df -b /opt/mysql

then it gave me the Filesystem info and the Avail. Now is there away that I can just list the avial number. because i want to be able to take that...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy