Microsoft
Software
Hardware
Network
Question : Shell scripting
Hi
I have posted a earlier question on this subject but I guess I wasn’t
Clear enough in my request
I have script that runs security check on Solaris 10 Systems
It is quite long and extensive it contains over 200 different
Tests.
I need to modify it to log the output of each command in a very strict format.
The format would be like this
Root-#> /etc/hosts.allow | grep ALL: ; ‘hostname’ >> /var/tmp/`hostname`-securi
ty-setup.l
og
The output I need looks like this
“server-name”,” empty-filed”,”Command-outp
ut”,”empty
-field”
Answer : Shell scripting
Try this:
1:
hostname | awk '{print $1",,"$2",,"}' >> /var/tmp/`hostname`-security-setup.log
Random Solutions
Finding file owner - getting an error: identity references could not be translated
I need to stop, then re-start, a thread in a web service using IIS
sql server smtp port
OEM Crystal Viewer vs 3rd Party Crystal Viewer
Windows XP BSOD 0x0000008e (0xc0000005, 0x805c3133, 0x96fc2a48, 0x00000000)
How do I create a text file?
mstsc rdpfile published on citrix
VB.net: Problem accesing form elements from other class (probably other thread)
RHCE Exam
Cross-forest trust: The domain controllers required to find the selected objects in the following domains are not available