Search Results

Search: Posts Made By: danielshell
2,775
Posted By danielshell
Substr with % - extract numbers only
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)

I have this script that will monitor filesystems and send me e-amil alerts.

#! /bin/ksh ...
2,216
Posted By danielshell
I have tried a couple of things, but am still in...
I have tried a couple of things, but am still in the dark.

prod:/# which mtime
no mtime


lpstat -o |grep -v bytes |sort -nkb1 has to be run, so it seems a filter has to be plugged in...
...
2,216
Posted By danielshell
Mtime or the equivalent for HP-UX
Is there a way that we can add the equivalent of "mtime +3" to HP-UX OS?
AIX has mtime that can filter older than how many days, but it is hard to put it for HP-UX.
I am trying to filter out the...
2,065
Posted By danielshell
I thought of a better way on this script (if it...
I thought of a better way on this script (if it is possible)

lpstat -o |grep -v bytes |sort -nkb1 returns the outputs, i.e.

sld-8638 prod priority 1 Feb 14 11:51
sld-8719 ...
2,065
Posted By danielshell
Thank you so much!!! I will modify my script...
Thank you so much!!! I will modify my script and run it for 3 days to validate that everything runs ok.
Appreciate it your help! I will keep you posted!
2,065
Posted By danielshell
Thank you, RudiC! root:root> uname -a ...
Thank you, RudiC!

root:root> uname -a
HP-UX B.11.31 U ia64 0123365846 unlimited-user license

It is HP-UX, so it is kind of tough.. I am getting this error

root:> date +"%b %_d" -d "2 day...
2,065
Posted By danielshell
This is what I have so far, and I am kind of...
This is what I have so far, and I am kind of doing manual coding every day for day1, day2, day3
But, I like to automate it so that I can eliminate manual coding. Thank you!
...
2,065
Posted By danielshell
Passing Day in string
I need to pass days in past 3, 4, 5 day in strings.

Today is Feb 7, so past 3, 4, 5 days are:

day1="Feb 2"
day2="Feb 3"
day3="Feb 4"

I have set day1 day2 day3 as the variables. So,...
Showing results 1 to 8 of 8

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