<?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: Detecting a talk query to use in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-a-talk-query-to-use-in-shell-script/m-p/3757354#M258769</link>
    <description>Down and dirty script. you script should be checking the talk processe. Once it sees it, it warns/alerts you.&lt;BR /&gt;&lt;BR /&gt;This is easy. You script in background keeps doing following every minute and alerts you.&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -Ctalk -o pid,ruser,args&lt;BR /&gt;&lt;BR /&gt;If there is a talk, process trying to talk to you, it will be seen as follows.&lt;BR /&gt;&lt;BR /&gt;talk "user_name" dev/pts/39</description>
    <pubDate>Thu, 23 Mar 2006 06:35:21 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2006-03-23T06:35:21Z</dc:date>
    <item>
      <title>Detecting a talk query to use in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-a-talk-query-to-use-in-shell-script/m-p/3757353#M258768</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;   I want to write a shell script in which &lt;BR /&gt;whenever someone tries to chat me using the "talk " command, the system has to automaticaly respond to make the coneection.&lt;BR /&gt;&lt;BR /&gt;   I will run the script in background.But what i need is how my script will understand that there is a query from another user to establish a connection.&lt;BR /&gt;   You may feel it too silly... why such things..but i require.&lt;BR /&gt;&lt;BR /&gt;please help.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;S.O&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2006 06:28:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-a-talk-query-to-use-in-shell-script/m-p/3757353#M258768</guid>
      <dc:creator>so_2</dc:creator>
      <dc:date>2006-03-23T06:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting a talk query to use in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-a-talk-query-to-use-in-shell-script/m-p/3757354#M258769</link>
      <description>Down and dirty script. you script should be checking the talk processe. Once it sees it, it warns/alerts you.&lt;BR /&gt;&lt;BR /&gt;This is easy. You script in background keeps doing following every minute and alerts you.&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -Ctalk -o pid,ruser,args&lt;BR /&gt;&lt;BR /&gt;If there is a talk, process trying to talk to you, it will be seen as follows.&lt;BR /&gt;&lt;BR /&gt;talk "user_name" dev/pts/39</description>
      <pubDate>Thu, 23 Mar 2006 06:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-a-talk-query-to-use-in-shell-script/m-p/3757354#M258769</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-23T06:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting a talk query to use in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-a-talk-query-to-use-in-shell-script/m-p/3757355#M258770</link>
      <description>from remote all connections will come though port 517 on udp. So for remote logins U could do something like this:&lt;BR /&gt;tcpdump udp port 517 &amp;gt;&amp;gt; /tmp/dumpout&lt;BR /&gt;&lt;BR /&gt;All remote connections would be loged to /tmp/dumpout.&lt;BR /&gt;&lt;BR /&gt;For local connections you could write a small program call talk that do some logging and then rename the old one and call it from talk.&lt;BR /&gt;&lt;BR /&gt;mv /usr/bin/talk /usr/bin/talk.org&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;# filename : /usr/bin/talk&lt;BR /&gt;echo `date; id` &amp;gt;&amp;gt; /tmp/dumpout&lt;BR /&gt;&lt;BR /&gt;/usr/bin/talk.org</description>
      <pubDate>Thu, 23 Mar 2006 07:15:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-a-talk-query-to-use-in-shell-script/m-p/3757355#M258770</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2006-03-23T07:15:26Z</dc:date>
    </item>
  </channel>
</rss>

