Search Results

Search: Posts Made By: grinds
Forum: HP-UX 02-18-2011
4,760
Posted By grinds
Help running a unix script from a web page
First, let me state that I am completely out of my realm with this.
I have a server running HPUX. I'm not even sure if this can be considered a UNIX question and for that let me apologize in...
11,568
Posted By grinds
I was getting the errors awk: syntax error near...
I was getting the errors
awk: syntax error near line 1
awk: bailing out near line 1

but thanks to your double equals sign, it now works perfect.

Thanks,
Al
11,568
Posted By grinds
check timestamp on specific files
I have a health check script homed in /u/ainet/scripts
I need to check the time stamp on a file in /opt/config/log/
The file is called Backupdisk.out
I want write the same info that you get when...
3,800
Posted By grinds
i rewrote the script adding a line and now it...
i rewrote the script adding a line and now it works the way I want it to:


#!/bin/sh
sed -n '/*C/,/END/p' /sn/log/OMlog* > crit.out
sed -n '/REPT INITIALIZATION/,/err:/p' /sn/log/OMlog* >...
2,466
Posted By grinds
try a "chmod 777" on the source file and then run...
try a "chmod 777" on the source file and then run your grep command. it may just be a permissions issue. I have run into this a number of times.
3,800
Posted By grinds
command runs, no output
I have a script that searches for specific information from log files.

#!/bin/sh
sed -n '/*C/,/END/p' /sn/log/OMlog* > crit.out
sed -n '/REPT INITIALIZATION/,/err:/p' /sn/log/OMlog* >...
5,512
Posted By grinds
you all have been a great help, it is working...
you all have been a great help, it is working now.
thanks so much,
Al
5,512
Posted By grinds
I really appreciate everyone's help, but it...
I really appreciate everyone's help, but it Solaris doesn't seem to like the -p option either. Is there maybe another command either than grep that I should try?
5,512
Posted By grinds
Thanks, but it doesn't seem to work for my...
Thanks, but it doesn't seem to work for my system.

I am running Solaris 10 am when I do a man grep, the -A and -B options don't exist.

when I execute the command that you provided I get the...
5,512
Posted By grinds
need to search text and output previous lines
I have a file (OMlog0) that is quite large, I need to find the line "Automatic Recharge Audit Process Finished" and output that line and the time stamp that occurs two lines previous. The line...
Showing results 1 to 10 of 10

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