<?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: scripting problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963944#M416420</link>
    <description>echo "[SMS]\nTO=00923455001008\nFROM=Shah Fuzail\nText=$(cat tmp.txt| xargs)"&lt;BR /&gt;&lt;BR /&gt;xargs to have the Text on one line.&lt;BR /&gt;&lt;BR /&gt;Is this what you mean/need?</description>
    <pubDate>Thu, 02 Mar 2006 06:41:47 GMT</pubDate>
    <dc:creator>Tiziano Contorno _</dc:creator>
    <dc:date>2006-03-02T06:41:47Z</dc:date>
    <item>
      <title>scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963942#M416418</link>
      <description>I have configured the following script which works suueccfully and gives me file system status update via email;&lt;BR /&gt;for i in 1 3 5 6 7 8 ; do&lt;BR /&gt;if [ `bdf /dev/vg00/lvol$i | awk {'print$5'} | cut -c 1,2 | tail -1` -gt 85 ]; t&lt;BR /&gt;hen&lt;BR /&gt;   bdf /dev/vg00/lvol$i | awk {'print$5,$6'} &amp;gt; /root/detail.txt&lt;BR /&gt;   mail fsalerts@telenor.com.pk &amp;lt; /root/detail.txt&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Now I want same alert via SMS but I can't understand who I fulfill the format of SMSC server, required format is like that;&lt;BR /&gt;&lt;BR /&gt;[SMS]&lt;BR /&gt;TO=00923455001008&lt;BR /&gt;FROM=Shah Fuzail&lt;BR /&gt;Text=FS status&lt;BR /&gt;&lt;BR /&gt;How can I fetch the critical file system notification from the existing script and cascade it with the SMS format file</description>
      <pubDate>Thu, 02 Mar 2006 06:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963942#M416418</guid>
      <dc:creator>shah.fuzail</dc:creator>
      <dc:date>2006-03-02T06:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963943#M416419</link>
      <description>Hi,&lt;BR /&gt;echo "[SMS]" &amp;gt; sms.file&lt;BR /&gt;echo "TO=00923455001008" &amp;gt;&amp;gt; sms.file&lt;BR /&gt;echo "FROM=Shah Fuzail" &amp;gt;&amp;gt; sms.file&lt;BR /&gt;echo "text=`cat /root/detail.txt`" &amp;gt;&amp;gt; sms.file&lt;BR /&gt;&lt;BR /&gt;Would generate a file of that format.&lt;BR /&gt;Is this what you are after?</description>
      <pubDate>Thu, 02 Mar 2006 06:37:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963943#M416419</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-02T06:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963944#M416420</link>
      <description>echo "[SMS]\nTO=00923455001008\nFROM=Shah Fuzail\nText=$(cat tmp.txt| xargs)"&lt;BR /&gt;&lt;BR /&gt;xargs to have the Text on one line.&lt;BR /&gt;&lt;BR /&gt;Is this what you mean/need?</description>
      <pubDate>Thu, 02 Mar 2006 06:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963944#M416420</guid>
      <dc:creator>Tiziano Contorno _</dc:creator>
      <dc:date>2006-03-02T06:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963945#M416421</link>
      <description>tmp.txt stands for /root/detail.txt</description>
      <pubDate>Thu, 02 Mar 2006 06:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963945#M416421</guid>
      <dc:creator>Tiziano Contorno _</dc:creator>
      <dc:date>2006-03-02T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963946#M416422</link>
      <description>Thanks for your prompt support but it may not resolve my issue, let me explain it as;&lt;BR /&gt;I have created a procedure which fulfill my requirement and it work like that;&lt;BR /&gt;&lt;BR /&gt;create file test1 (contained SMSC required format)&lt;BR /&gt;create file test2 (contained text of File system alert)&lt;BR /&gt;1) cat test1 &amp;gt; smstest&lt;BR /&gt;2) cat test2 &amp;gt;&amp;gt; smstest&lt;BR /&gt;above procedure is giving me the required output, now I just need to call procedure in my exixting script to call this procedure everytime when file system exceed it limit and generate email message simutanously call SMS test procdure and execute it.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;&lt;BR /&gt;Shah Fuzail</description>
      <pubDate>Thu, 02 Mar 2006 07:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963946#M416422</guid>
      <dc:creator>shah.fuzail</dc:creator>
      <dc:date>2006-03-02T07:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963947#M416423</link>
      <description>Hi,&lt;BR /&gt;call your procedure just after your existing mail command.&lt;BR /&gt;Then issue your SMS mail command with the smstest file as input.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 07:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963947#M416423</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-02T07:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963948#M416424</link>
      <description>yea now you on the right track, I just want to know the method how can I call procedure in my existing script. &lt;BR /&gt;I have no idea how procedure call in unix scripting.&lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Thu, 02 Mar 2006 07:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963948#M416424</guid>
      <dc:creator>shah.fuzail</dc:creator>
      <dc:date>2006-03-02T07:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963949#M416425</link>
      <description>Hi,&lt;BR /&gt;for example:&lt;BR /&gt;test1()&lt;BR /&gt;{&lt;BR /&gt;echo "hello"&lt;BR /&gt;}&lt;BR /&gt;echo "1"&lt;BR /&gt;test1&lt;BR /&gt;echo "2"&lt;BR /&gt;&lt;BR /&gt;When run produces:&lt;BR /&gt;1&lt;BR /&gt;hello&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;Hope this answer helps.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 07:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963949#M416425</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-02T07:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963950#M416426</link>
      <description>Sorry to bother you again, your example is related with the procedure which I already wrote I just want to know how can I call this procedure in my existing script, my script is;&lt;BR /&gt;&lt;BR /&gt;for i in 1 3 5 6 7 8 ; do&lt;BR /&gt;if [ `bdf /dev/vg00/lvol$i | awk {'print$5'} | cut -c 1,2 | tail -1` -gt 85 ]; t&lt;BR /&gt;hen&lt;BR /&gt;   bdf /dev/vg00/lvol$i | awk {'print$5,$6'} &amp;gt; /root/detail.txt&lt;BR /&gt;   mail fsalerts@telenor.com.pk &amp;lt; /root/detail.txt&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I want to call my procedure in between the above script, means just after the detail.txt file creation.&lt;BR /&gt;&lt;BR /&gt;Thnx</description>
      <pubDate>Thu, 02 Mar 2006 07:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963950#M416426</guid>
      <dc:creator>shah.fuzail</dc:creator>
      <dc:date>2006-03-02T07:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963951#M416427</link>
      <description>Hi,&lt;BR /&gt;no problem.&lt;BR /&gt;yourproc()&lt;BR /&gt;{&lt;BR /&gt;#This is were you place your code&lt;BR /&gt;}&lt;BR /&gt;for i in 1 3 5 6 7 8 ; do&lt;BR /&gt;if [ `bdf /dev/vg00/lvol$i | awk {'print$5'} | cut -c 1,2 | tail -1` -gt 85 ]; t&lt;BR /&gt;hen&lt;BR /&gt;bdf /dev/vg00/lvol$i | awk {'print$5,$6'} &amp;gt; /root/detail.txt&lt;BR /&gt;yourproc&lt;BR /&gt;mail fsalerts@telenor.com.pk &amp;lt; /root/detail.txt&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;If you are happy with the answer, please have a look at&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;</description>
      <pubDate>Thu, 02 Mar 2006 07:53:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963951#M416427</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-02T07:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963952#M416428</link>
      <description>Thanks Peter;&lt;BR /&gt;&lt;BR /&gt;Now it's working&lt;BR /&gt;&lt;BR /&gt;BR &lt;BR /&gt;&lt;BR /&gt;Shah</description>
      <pubDate>Thu, 02 Mar 2006 08:08:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963952#M416428</guid>
      <dc:creator>shah.fuzail</dc:creator>
      <dc:date>2006-03-02T08:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963953#M416429</link>
      <description>Thanks for the instant support&lt;BR /&gt;&lt;BR /&gt;Now me script is working perfect.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Shah Fuzail Ahmed</description>
      <pubDate>Thu, 02 Mar 2006 08:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963953#M416429</guid>
      <dc:creator>shah.fuzail</dc:creator>
      <dc:date>2006-03-02T08:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963954#M416430</link>
      <description>Shah,&lt;BR /&gt;sorry to see none of my answers helped.&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;</description>
      <pubDate>Thu, 02 Mar 2006 08:20:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem/m-p/4963954#M416430</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-02T08:20:06Z</dc:date>
    </item>
  </channel>
</rss>

