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
In between Asterisk BLF
Repeating Rows when adding a field
"Invalid Partition Table" - What are my options?
A Name Host Record for Public Domain Which is the sam as AD Name Space
Why are pointers efficient?
Any software that can send files over the Internet with drag and drop?
Caps Lock out of sync in RDP Session
Command:Click:Command is working fine for Button but its not working for Hyperlink
Autoplay Synctoy when USB harddrive plugged in
Exchange 2007 Standby Continuous Replication