<?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: Help with CSH please in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178835#M682483</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have the following script that works great in sh/ksh&lt;BR /&gt;&lt;BR /&gt;Then why in the ?!? In HP-UX the Posix shell is your standard.  In AIX, Korn is the default; in Linux, the bash shell --- all cousins.  Why would you want to rewrite it in the C-shell?&lt;BR /&gt;&lt;BR /&gt;If you haven't read this, you should!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/" target="_blank"&gt;http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 02 Jun 2009 10:28:01 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-06-02T10:28:01Z</dc:date>
    <item>
      <title>Help with CSH please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178830#M682478</link>
      <description>I have the following script that works great in sh/ksh.  Can someone please help me with the syntax for csh.  I can't get the if statement working.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;# custom code for denying generic account login&lt;BR /&gt;if logname &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;then&lt;BR /&gt;LGNM=`logname`&lt;BR /&gt;if egrep "^${LGNM}$" /etc/not_loginable &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;then&lt;BR /&gt;echo "\nDirect login not allowed for $LGNM\n"&lt;BR /&gt;echo "\nNO remote login allowed for $LGNM (`date '+%D %T'`)\n" |&lt;BR /&gt;sleep 3&lt;BR /&gt;logger -p user.err NOT_LOGINABLE&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jun 2009 10:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178830#M682478</guid>
      <dc:creator>dev44</dc:creator>
      <dc:date>2009-06-02T10:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with CSH please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178831#M682479</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Can someone please help me with the syntax&lt;BR /&gt;&amp;gt; for csh.&lt;BR /&gt;&lt;BR /&gt;Why csh?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I can't get the if statement working.&lt;BR /&gt;&lt;BR /&gt;      man csh&lt;BR /&gt;&lt;BR /&gt;"fi"?  Try "endif".&lt;BR /&gt;&lt;BR /&gt;      man csh</description>
      <pubDate>Tue, 02 Jun 2009 10:06:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178831#M682479</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-06-02T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with CSH please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178832#M682480</link>
      <description>&lt;!--!*#--&gt;And that's not the only thing you'd need to&lt;BR /&gt;change.  For example:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] 2&amp;gt;&amp;amp;1</description>
      <pubDate>Tue, 02 Jun 2009 10:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178832#M682480</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-06-02T10:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with CSH please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178833#M682481</link>
      <description>The script is what I use to lock out "generic" accounts...so that they can only be "su'd" to.  We have a few users who are csh and I need to make it work for those accounts</description>
      <pubDate>Tue, 02 Jun 2009 10:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178833#M682481</guid>
      <dc:creator>dev44</dc:creator>
      <dc:date>2009-06-02T10:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with CSH please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178834#M682482</link>
      <description>Got it.</description>
      <pubDate>Tue, 02 Jun 2009 10:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178834#M682482</guid>
      <dc:creator>dev44</dc:creator>
      <dc:date>2009-06-02T10:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with CSH please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178835#M682483</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have the following script that works great in sh/ksh&lt;BR /&gt;&lt;BR /&gt;Then why in the ?!? In HP-UX the Posix shell is your standard.  In AIX, Korn is the default; in Linux, the bash shell --- all cousins.  Why would you want to rewrite it in the C-shell?&lt;BR /&gt;&lt;BR /&gt;If you haven't read this, you should!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/" target="_blank"&gt;http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 Jun 2009 10:28:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-csh-please/m-p/5178835#M682483</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-02T10:28:01Z</dc:date>
    </item>
  </channel>
</rss>

