<?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: ticker script \|/-\| ..... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667154#M931889</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Trapping the signal doesn't suit your case?&lt;BR /&gt;&lt;BR /&gt;trap "" 1 2 3&lt;BR /&gt;script&lt;BR /&gt;trap 1 2 3&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Tue, 19 Feb 2002 09:35:40 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-02-19T09:35:40Z</dc:date>
    <item>
      <title>ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667153#M931888</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I'm looking for a script or binary that will help me stop people pressing Ctrl-C even when my scripts say please wait...!&lt;BR /&gt;&lt;BR /&gt;The tool I'm thinking of is one called ticker that does this:&lt;BR /&gt;&lt;BR /&gt;/&lt;BR /&gt;-&lt;BR /&gt;|&lt;BR /&gt;/&lt;BR /&gt;-&lt;BR /&gt;|&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in the backgroup while the script runs other commands.&lt;BR /&gt;The output is echoed to the same line/character..&lt;BR /&gt;&lt;BR /&gt;Anyone know where I can find it. I know it exists on some of the micro linux distros, but couldn't find the source/ hpux binary/script.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 19 Feb 2002 09:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667153#M931888</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-02-19T09:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667154#M931889</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Trapping the signal doesn't suit your case?&lt;BR /&gt;&lt;BR /&gt;trap "" 1 2 3&lt;BR /&gt;script&lt;BR /&gt;trap 1 2 3&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 19 Feb 2002 09:35:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667154#M931889</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-19T09:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667155#M931890</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;you can do a trap like descripted before, but your problem would be, that continuos pressing of ctrl-c would break your script anyway. But if you enter a sleep- command in the action field of trap, this will no longer appear!&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;trap 'sleep 2; : ' 1,2,3&lt;BR /&gt;&lt;BR /&gt;now you can press ctrl-c several times and the script continues.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Tue, 19 Feb 2002 09:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667155#M931890</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-19T09:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667156#M931891</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Please try this, see if it helps:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;function ticker&lt;BR /&gt;{&lt;BR /&gt;while [ -f /tmp/flagfile ] ;do&lt;BR /&gt; for char in \| / - \\ ; do&lt;BR /&gt;  echo $char |awk '{printf ("%s\b",$0) }'&lt;BR /&gt;  sleep 1&lt;BR /&gt; done&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;echo hello&lt;BR /&gt;echo please wait...&lt;BR /&gt;trap "" 2&lt;BR /&gt;touch /tmp/flagfile&lt;BR /&gt;ticker &amp;amp;&lt;BR /&gt;echo trap disabled sleeping...&lt;BR /&gt;sleep 10&lt;BR /&gt;rm /tmp/flagfile&lt;BR /&gt;trap 2&lt;BR /&gt;echo trap enabled sleeping...&lt;BR /&gt;sleep 10&lt;BR /&gt;echo goodbye&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Tue, 19 Feb 2002 10:59:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667156#M931891</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-02-19T10:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667157#M931892</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Do you try?&lt;BR /&gt;stty kill "^-" intr "^-" &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Tue, 19 Feb 2002 10:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667157#M931892</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-02-19T10:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667158#M931893</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;Wouldn't it be better to just log the idiot off when they press ctrl-c? After a few times of that, maybe they'll learn? Pavlov's Law kicks in here, I believe?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 19 Feb 2002 12:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667158#M931893</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-19T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667159#M931894</link>
      <description>Yes Harry, but this trick don't like to your boss, isn't?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Tue, 19 Feb 2002 12:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667159#M931894</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-02-19T12:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: ticker script \|/-\| .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667160#M931895</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't think that continuous ctrl-c can break out of the traps. Once the interrupt signal is trapped, no amount of ctrl-c will affect. I have never seen or manage to simulate a string of continuous ctrl-c's that does.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 19 Feb 2002 15:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ticker-script/m-p/2667160#M931895</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-19T15:57:56Z</dc:date>
    </item>
  </channel>
</rss>

