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
New mail notification envelope icon in outlook 2003 doesn't show
autodiscover on 2010 is prompting for password all the time...
Windows 2008 Domain Controller Unavailable (but working)
Mirrored volume not showing available space
vbscript with Loop command
DReamwever how to link pages.
Compare two excel files
how to make an MsAccess form resolution independent?
Anyone knows what this fruit is called in english and if I can buy it in the USA somewhere even online
TRIM function to eliminate the last three characters