<?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: Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286284#M336121</link>
    <description>No output jhonson&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suresh</description>
    <pubDate>Wed, 15 Oct 2008 03:02:32 GMT</pubDate>
    <dc:creator>M.sureshkumar</dc:creator>
    <dc:date>2008-10-15T03:02:32Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286275#M336112</link>
      <description>Hi All,&lt;BR /&gt;we need script for the current ftp login users list from "last" command output. &lt;BR /&gt;Pls help me.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Suresh</description>
      <pubDate>Tue, 14 Oct 2008 04:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286275#M336112</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2008-10-14T04:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286276#M336113</link>
      <description>You need to explain better what you want.&lt;BR /&gt;Do you want to check which users that last(1) shows were from ftp?  What do you mean by "current", who(1) would do that better.</description>
      <pubDate>Tue, 14 Oct 2008 05:22:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286276#M336113</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-14T05:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286277#M336114</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;We need to edit the ftp login details only in last command output and put it to file.&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;BR /&gt;$ last |grep -i ftp |more&lt;BR /&gt;sankar   ftp          10.12.22.95             Oct 13 07:42 - 07:43  (00:00)&lt;BR /&gt;sankar   ftp          10.12.22.95             Oct 11 10:12 - 10:25  (00:13)&lt;BR /&gt;sasi      ftp          10.13.13.82             Oct 09 15:17 - 15:18  (00:00)&lt;BR /&gt;sasi      ftp          10.13.13.82             Oct 09 15:13 - 15:17  (00:03)&lt;BR /&gt;Note: i need current ftp login users details only.Pls help me.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suresh</description>
      <pubDate>Tue, 14 Oct 2008 05:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286277#M336114</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2008-10-14T05:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286278#M336115</link>
      <description>last | grep 'ftp .* still logged in$'&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 14 Oct 2008 08:25:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286278#M336115</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-10-14T08:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286279#M336116</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;How to edit current date(today) ftp login users in last command output.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suresh</description>
      <pubDate>Tue, 14 Oct 2008 08:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286279#M336116</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2008-10-14T08:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286280#M336117</link>
      <description>I think this will help:&lt;BR /&gt;&lt;BR /&gt;last | grep "`date +"%-4.4h%d"`" | more&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lovro&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Oct 2008 09:24:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286280#M336117</guid>
      <dc:creator>Lovro VRES</dc:creator>
      <dc:date>2008-10-14T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286281#M336118</link>
      <description>&amp;gt;MK: last | grep 'ftp .* still logged in$'&lt;BR /&gt;&lt;BR /&gt;Since last(1) takes a user name, you can remove that part of the grep.</description>
      <pubDate>Tue, 14 Oct 2008 20:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286281#M336118</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-14T20:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286282#M336119</link>
      <description>Hi Lovro,&lt;BR /&gt;&lt;BR /&gt;I executed last |grep -i ftp | grep "`date +"%-4.4h%d"`" |more in our server, it displays last 3 years ftp login details not current details.But i need current date and current year ftp login details only.After that i can schedule this script in autommatic for regular basis.&lt;BR /&gt;Please help me.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suresh</description>
      <pubDate>Wed, 15 Oct 2008 02:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286282#M336119</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2008-10-15T02:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286283#M336120</link>
      <description>Hi Suresh Kumar,&lt;BR /&gt;&lt;BR /&gt;pls try ,&lt;BR /&gt;&lt;BR /&gt;last |grep ftp |grep -i "'date -u " |more&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson</description>
      <pubDate>Wed, 15 Oct 2008 02:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286283#M336120</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-15T02:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286284#M336121</link>
      <description>No output jhonson&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suresh</description>
      <pubDate>Wed, 15 Oct 2008 03:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286284#M336121</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2008-10-15T03:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286285#M336122</link>
      <description>Hi Suresh Kumar,&lt;BR /&gt;&lt;BR /&gt;reason for no output suspecting no ftpusser login or you try by yourself by ftp localhost&lt;BR /&gt;&lt;BR /&gt;than pls try command again,&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson</description>
      <pubDate>Wed, 15 Oct 2008 03:13:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286285#M336122</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-15T03:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286286#M336123</link>
      <description>Hi Johnson,&lt;BR /&gt;&lt;BR /&gt;last |grep -i ftp |more command output gives 3 ftp user login details&lt;BR /&gt;enovia   ftp          Wed Oct 15 09:38   still logged in&lt;BR /&gt;enovia1   ftp          Wed Oct 15 09:36 - 09:38  (00:01)&lt;BR /&gt;enovia2   ftp          Wed Oct 15 09:36 - 09:36  (00:00)&lt;BR /&gt;&lt;BR /&gt;last |grep ftp | grep -i date -u | more - no output&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suresh</description>
      <pubDate>Wed, 15 Oct 2008 03:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286286#M336123</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2008-10-15T03:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286287#M336124</link>
      <description>Hi Johnson,&lt;BR /&gt;&lt;BR /&gt;last |grep -i ftp |more command output gives 3 ftp user login details&lt;BR /&gt;enovia   ftp          Wed Oct 15 09:38   still logged in&lt;BR /&gt;enovia1   ftp          Wed Oct 15 09:36 - 09:38  (00:01)&lt;BR /&gt;enovia2   ftp          Wed Oct 15 09:36 - 09:36  (00:00)&lt;BR /&gt;&lt;BR /&gt;last |grep ftp |grep -i "'date -u " |more - no output&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suresh</description>
      <pubDate>Wed, 15 Oct 2008 03:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286287#M336124</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2008-10-15T03:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286288#M336125</link>
      <description>Hi Suresh Kumar,&lt;BR /&gt;&lt;BR /&gt;FYI,&lt;BR /&gt;&lt;BR /&gt;Lovro VRES : Command works fine for me.. &lt;BR /&gt;&lt;BR /&gt;Please see below&lt;BR /&gt;&lt;BR /&gt;$ last |grep -i ftp | grep "`date +"%-4.4h%d"`"&lt;BR /&gt;ibmadm1  ftp          Wed Oct 15 12:36 - 12:36  (00:00)&lt;BR /&gt;ibmadm1  ftp          Wed Oct 15 12:14 - 12:14  (00:00)&lt;BR /&gt;$ uptime&lt;BR /&gt; 12:37pm  up 43 days, 20:20,  8 users,  load &lt;BR /&gt;average: 0.22, 0.23, 0.21&lt;BR /&gt;&lt;BR /&gt;Your server uptime should be more than 3 years can you please check you time stamp for your wmtp file&lt;BR /&gt;&lt;BR /&gt;ll /var/adm/wtmp&lt;BR /&gt;-rw-rw-r--   1 adm        adm         534420 Oct 15 12:36 /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;if the time-stamp of your /var/adm/wtmp is old that's why your able to see the ftp login for last 3 years &lt;BR /&gt;&lt;BR /&gt;man last --&amp;gt; command for more info&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Oct 2008 03:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286288#M336125</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-15T03:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286289#M336126</link>
      <description>&lt;!--!*#--&gt;&amp;gt;But I need current date and current year ftp login details only.&lt;BR /&gt;&lt;BR /&gt;You can't limit it to the current year without advanced AI technology.&lt;BR /&gt;&lt;BR /&gt;MK mentioned how to find ftp still logged on:&lt;BR /&gt;last ftp | grep "still logged in"&lt;BR /&gt;&lt;BR /&gt;(Using ftp will give anonymous ftp only.  Is that what you want?)&lt;BR /&gt;&lt;BR /&gt;Lovro mentioned how to get the current date:&lt;BR /&gt;last | grep "$(date +"%h %d")"&lt;BR /&gt;&lt;BR /&gt;Ah, here is your advanced AI technology:&lt;BR /&gt;/usr/sbin/acct/fwtmp -X &amp;lt; /var/adm/wtmps |&lt;BR /&gt;  grep "ftp.*$(date +"%h %d.*%Y")"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Oct 2008 04:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4286289#M336126</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-15T04:22:45Z</dc:date>
    </item>
  </channel>
</rss>

