Search Results

Search: Posts Made By: SSKAAB
3,063
Posted By SSKAAB
Thank you very much, this did the trick and now...
Thank you very much, this did the trick and now it is working as expected.

+ + df -k /log/logs
+ nawk $1 ~ "^/histlog"{ print $5+0}
+ sed s/%//g
CURRENT=41
+ THRESHOLD=30
+ [ 41 -gt 30 ]
+...
3,063
Posted By SSKAAB
df -k /log/logs |awk '$1 ~ "^/log"{ print $5+0}' ...
df -k /log/logs |awk '$1 ~ "^/log"{ print $5+0}'
awk: syntax error near line 1
awk: bailing out near line 1
3,063
Posted By SSKAAB
Thanks, so it seems it does not work after "grep"...
Thanks, so it seems it does not work after "grep" as it shows below;

+ + df -k /log/logs
CURRENT=Filesystem kbytes used avail capacity Mounted on
/log 20643785...
3,063
Posted By SSKAAB
Thanks it is really helpful, it seems it is not...
Thanks it is really helpful, it seems it is not able to pick the value up from the current

+ + df -k /log/logs
+ grep /log/logs
+ awk { print $5}
+ sed s/%//g
CURRENT=
+ THRESHOLD=30
+ [ ...
3,063
Posted By SSKAAB
Disk Space Script to direct output
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...
Showing results 1 to 5 of 5

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