<?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: C-Shell programming in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486076#M799362</link>
    <description>&lt;BR /&gt;normally, when you execute a shell program, a subshell is created in which to execute it. therefore, if you define variables in the program, they are only good for as long as the program is executing( when the program in done, you return to the current shell's environment ). If you want to have the shell program executed in the current shell ( the defined vars will be good for the current shell's env. ) , use the "dot"command :&lt;BR /&gt;&lt;BR /&gt;#. scriptname&lt;BR /&gt;&lt;BR /&gt;I hope this helps you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Federico&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Jan 2001 07:18:40 GMT</pubDate>
    <dc:creator>federico_3</dc:creator>
    <dc:date>2001-01-24T07:18:40Z</dc:date>
    <item>
      <title>C-Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486075#M799361</link>
      <description>Who can I use the following command line command in a C-shell:&lt;BR /&gt;. catiaenv /usr/home/USER.dcls&lt;BR /&gt;The point and the blank make me big troubles.&lt;BR /&gt;Thanks&lt;BR /&gt;Bettina</description>
      <pubDate>Wed, 24 Jan 2001 06:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486075#M799361</guid>
      <dc:creator>Bettina Ofner</dc:creator>
      <dc:date>2001-01-24T06:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: C-Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486076#M799362</link>
      <description>&lt;BR /&gt;normally, when you execute a shell program, a subshell is created in which to execute it. therefore, if you define variables in the program, they are only good for as long as the program is executing( when the program in done, you return to the current shell's environment ). If you want to have the shell program executed in the current shell ( the defined vars will be good for the current shell's env. ) , use the "dot"command :&lt;BR /&gt;&lt;BR /&gt;#. scriptname&lt;BR /&gt;&lt;BR /&gt;I hope this helps you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Federico&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2001 07:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486076#M799362</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2001-01-24T07:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: C-Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486077#M799363</link>
      <description>Hi Bettina,&lt;BR /&gt;&lt;BR /&gt;the '.' command in Korn, Bourne or Posix shell means that the following argument has to be executed in the same shell as the calling shell, not by forking another subshell.&lt;BR /&gt;&lt;BR /&gt;The C shell equivalent is 'source filename'.&lt;BR /&gt;&lt;BR /&gt;You have to make sure that the content of the argument file can be interpreted by the C Shell, which would be surprising.&lt;BR /&gt;&lt;BR /&gt;'Sourcing' a document is usually done to setup some environment variables (like in your .profile or .kshrc files) and the syntax for setting such variables differ between C shell and Bourne, Korn or Posix Shells.&lt;BR /&gt;&lt;BR /&gt;in csh:&lt;BR /&gt;setenv VARNAME value&lt;BR /&gt;in sh and ksh:&lt;BR /&gt;export VARNAME=value&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2001 07:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486077#M799363</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-01-24T07:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: C-Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486078#M799364</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the line&lt;BR /&gt;. catiaenv /usr/home/USER.dcls &lt;BR /&gt;is bourne/korn shell syntax.&lt;BR /&gt;It is used to source environment into the current shell.&lt;BR /&gt;In c-shell the equivalent is the function source.&lt;BR /&gt;The source function uses the next argument as a file for input.&lt;BR /&gt;So the problem i see is that your line&lt;BR /&gt;. catiaenv /usr/home/USER.dcls &lt;BR /&gt;will execute the program/script catiaenv with a parameter and i don't know how to make this in c-shell.&lt;BR /&gt;Also it may be the case that the catiaenv itself uses bourne/korn shell syntax for setting environment variable which also differs from c-shell syntax ie:&lt;BR /&gt;Bourne/korn-shell: export VAR=VALUE&lt;BR /&gt;C-shell: setenv VAR VALUE&lt;BR /&gt;&lt;BR /&gt;Hope this gives you a litte light.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2001 08:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486078#M799364</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-01-24T08:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: C-Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486079#M799365</link>
      <description>You CAN NOT DO THIS!&lt;BR /&gt;&lt;BR /&gt;I know what your trying to do, and it will NOT work as is.  CATIA looks for the users home directory to be /bin/ksh (IBM AIX default shell).  The CATIA environment files are written for borne and korne shell.  If you want to have a cshell login for these users and still access those files, they need to be copied and modified for cshell.&lt;BR /&gt;There are many differences in the way the shells set and define variables, use conditional statements, etc...&lt;BR /&gt;I.E.&lt;BR /&gt;# C-Shell&lt;BR /&gt;setenv CATCUST /home/catadm&lt;BR /&gt;# Borne, Korne, POSIX&lt;BR /&gt;CATCUST=/home/catadm&lt;BR /&gt;export CATCUST&lt;BR /&gt;The latter case is how the CATIA environment and declaration files are build.&lt;BR /&gt;&lt;BR /&gt;I would NOT recommend that you pursue developing these scripts in c-shell because there are so many dependancies on the shell and the environment variables that you would be rewriting a whole lot of catia scripts (100's or more).&lt;BR /&gt;&lt;BR /&gt;Best thing to do with CATIA is to keep the users in either ksh or sh for their default shell.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 24 Jan 2001 13:45:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-programming/m-p/2486079#M799365</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-01-24T13:45:22Z</dc:date>
    </item>
  </channel>
</rss>

