<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scripts in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782246#M23174</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use mailx in your script to mail the file to any email id. You should add the following in your script after creating the file:&lt;BR /&gt;&lt;BR /&gt;/bin/mail/mailx -s "subject... " your-email-id@xyz.com &amp;lt; /file/to/be/mailed&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 04 May 2006 00:04:18 GMT</pubDate>
    <dc:creator>Ajay Agarwal</dc:creator>
    <dc:date>2006-05-04T00:04:18Z</dc:date>
    <item>
      <title>Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782244#M23172</link>
      <description>Hi , &lt;BR /&gt;&lt;BR /&gt;I have a linux server from where I need to run a script on the disk space availability which should create a file and that file has to be sent to my outlook inbox( my mailing system is Exchange) . &lt;BR /&gt;&lt;BR /&gt;Any suggestions on this please or any scripts on this please</description>
      <pubDate>Wed, 03 May 2006 23:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782244#M23172</guid>
      <dc:creator>logaraman</dc:creator>
      <dc:date>2006-05-03T23:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782245#M23173</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Did u mean u want a script to check the file system disk usage?&lt;BR /&gt;&lt;BR /&gt;The below is a simple example :&lt;BR /&gt;&lt;BR /&gt;if [ $OSTYPE = "Linux" ]; then&lt;BR /&gt;/bin/df -kl|grep -vi used|grep %|sed 's/\%//'  &amp;gt; /tmp/disk.txt&lt;BR /&gt;&lt;BR /&gt;awk '{if($5 &amp;gt; 90) print $5, $6}' /tmp/disk.txt &amp;gt; /tmp/alert.txt&lt;BR /&gt;&lt;BR /&gt;/bin/mail -i -s "File system/s on $HOSTNAME is/are almost full @ $Date!! Please check!" your email address &amp;lt;  /tmp/alert.txt&lt;BR /&gt;&lt;BR /&gt;Provided your linux are able to send out mail.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Best Regards&lt;BR /&gt;HM</description>
      <pubDate>Wed, 03 May 2006 23:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782245#M23173</guid>
      <dc:creator>TANHM</dc:creator>
      <dc:date>2006-05-03T23:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782246#M23174</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use mailx in your script to mail the file to any email id. You should add the following in your script after creating the file:&lt;BR /&gt;&lt;BR /&gt;/bin/mail/mailx -s "subject... " your-email-id@xyz.com &amp;lt; /file/to/be/mailed&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2006 00:04:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782246#M23174</guid>
      <dc:creator>Ajay Agarwal</dc:creator>
      <dc:date>2006-05-04T00:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782247#M23175</link>
      <description>There is diskcheck package (&lt;A href="http://linux.maruhn.com/sec/diskcheck.html)," target="_blank"&gt;http://linux.maruhn.com/sec/diskcheck.html),&lt;/A&gt; which was into RHL/Fedora.&lt;BR /&gt;For some reason the latest RHEL/Fedora don't have it, but you can use diskcheck for reference anyway.</description>
      <pubDate>Thu, 04 May 2006 01:14:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scripts/m-p/3782247#M23175</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-05-04T01:14:42Z</dc:date>
    </item>
  </channel>
</rss>

