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
what's different between SAP Crystal Reports and SAP Crystal Reports Server 2008?
Unix Shell script or Perl script to merge two csv text files based on a common key column
Delete blank line from textarea
Select an element Jquery.
Reverse DNS Centos 5, Bind. shared hosting
How to redirect a subdirectory to an alternate server and retain original URL
Is it possible to automatically copy data from AS/400 to Excel (or Lotus 1-2-3) without external apps?
Word press choosing the last picture for my article
What is the best GUI for MySQLfor Windows and why?
Ajax Maskededitextender remove mask on postback