The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-12-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
You might like to try the following:
Code:
#!/usr/bin/ksh
. $HOME/.profile
/opt/ignite/bin/print_manifest > $RECOVERYDIR/`hostname`/manifest.txt
echo >> $RECOVERYDIR/`hostname`/manifest.txt
echo "Non Default Kernel Parameters" >> $RECOVERYDIR/`hostname`/manifest.txt
echo >> $RECOVERYDIR/`hostname`/manifest.txt
/usr/sbin/kctune -Sd >> $RECOVERYDIR/`hostname`/manifest.txt
mailx -s "Manifest for `hostname`" $Operations_reports <  $RECOVERYDIR/`hostname`/manifest.txt

Incidentals:
$Operations_reports - refers to an email distribution list.
$RECOVERYDIR - refers to a location on the file system.

Hope that helps some.

Cheers,
Cameron