<?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 problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230515#M171971</link>
    <description>mB,&lt;BR /&gt;&lt;BR /&gt;I do not know clearcase / cleartool. What do you mean:&lt;BR /&gt;"Normally to see a file in clearcase you need to do a cleartool setview"&lt;BR /&gt;&lt;BR /&gt;Do you mean the ls command is a cleartool command? If so, you need something like&lt;BR /&gt;cleartool setview ship2 &amp;lt;&amp;lt; ENDHERE&lt;BR /&gt;ls ...&lt;BR /&gt;exit (?)&lt;BR /&gt;ENDHERE&lt;BR /&gt;&lt;BR /&gt;Or is the cleartool command supposed to create a file or directory?&lt;BR /&gt;&lt;BR /&gt;JP.</description>
    <pubDate>Fri, 26 Mar 2004 02:02:55 GMT</pubDate>
    <dc:creator>Jeroen Peereboom</dc:creator>
    <dc:date>2004-03-26T02:02:55Z</dc:date>
    <item>
      <title>script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230510#M171966</link>
      <description>Hi,&lt;BR /&gt;  We have a clearcase running in our server.Normally to see a file in clearcase you need to do a cleartool setview.&lt;BR /&gt;&lt;BR /&gt;Here are my script :&lt;BR /&gt;&lt;BR /&gt;export PATH=$PATH:/usr/atria/bin&lt;BR /&gt;cleartool setview ship2 &amp;amp;&lt;BR /&gt;ls /vobs/nb_delivery/&lt;BR /&gt;&lt;BR /&gt;but the problem is "ls /vobs/nb_delivery" shows nothing.&lt;BR /&gt;&lt;BR /&gt;Executing the "cleartool setview ship2" in shell without script will succesfully mount the /vobs/nb_delivery and "ls /vobs/nb_delivery" will show an output.But when execute is script it shows nothing.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Thu, 25 Mar 2004 22:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230510#M171966</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2004-03-25T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230511#M171967</link>
      <description>Perhaps its timing ...&lt;BR /&gt;&lt;BR /&gt;Since you are running the "cleartool" part in the background, perhaps it doesnt complete before the ls starts.&lt;BR /&gt;&lt;BR /&gt;Take out the "&amp;amp;" and see what happens.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2004 22:55:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230511#M171967</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-03-25T22:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230512#M171968</link>
      <description>Hi,&lt;BR /&gt; As the cleartool command runs in background it might have not completed fully before executing ls.&lt;BR /&gt;  So try removing &amp;amp;.</description>
      <pubDate>Thu, 25 Mar 2004 23:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230512#M171968</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2004-03-25T23:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230513#M171969</link>
      <description>Thanks.&lt;BR /&gt;Done that before but the result still the same.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Fri, 26 Mar 2004 01:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230513#M171969</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2004-03-26T01:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230514#M171970</link>
      <description>I think your script runs in a different shell and exits. Instead run like this,&lt;BR /&gt;&lt;BR /&gt;. ./script&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Fri, 26 Mar 2004 01:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230514#M171970</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-26T01:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230515#M171971</link>
      <description>mB,&lt;BR /&gt;&lt;BR /&gt;I do not know clearcase / cleartool. What do you mean:&lt;BR /&gt;"Normally to see a file in clearcase you need to do a cleartool setview"&lt;BR /&gt;&lt;BR /&gt;Do you mean the ls command is a cleartool command? If so, you need something like&lt;BR /&gt;cleartool setview ship2 &amp;lt;&amp;lt; ENDHERE&lt;BR /&gt;ls ...&lt;BR /&gt;exit (?)&lt;BR /&gt;ENDHERE&lt;BR /&gt;&lt;BR /&gt;Or is the cleartool command supposed to create a file or directory?&lt;BR /&gt;&lt;BR /&gt;JP.</description>
      <pubDate>Fri, 26 Mar 2004 02:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230515#M171971</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-03-26T02:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230516#M171972</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If I remember correctly the latest clearcase versions are installed in /opt/ccase. In your current shell, what does a `which cleartool` tell you?&lt;BR /&gt;&lt;BR /&gt;Anyway, it must be environment settings mixing things up for you, so you can try to add the next line to your script:&lt;BR /&gt;env &amp;gt; /tmp/env.file&lt;BR /&gt;&lt;BR /&gt;And compare it to a env from your current shell. Maybe you set ccase env settings that aren't passed to children???&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Fri, 26 Mar 2004 02:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230516#M171972</guid>
      <dc:creator>Robert Binkhorst</dc:creator>
      <dc:date>2004-03-26T02:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230517#M171973</link>
      <description>the cleartool setview behaves like the newgrp command does, it forks a new process and execs a new shell.&lt;BR /&gt;&lt;BR /&gt;so your cleartool setview ship2 &amp;amp;&lt;BR /&gt;is actual a seperate shell from where your doing the ls /vobs/nb_delivery/&lt;BR /&gt;&lt;BR /&gt;so your setview isn't occuring the shell your doing the ls.&lt;BR /&gt;&lt;BR /&gt;now to get the listing i think there is a -e option for running a command, something like:&lt;BR /&gt;cleartool setview ship2 -e "ls /vobs/nb_delivery"&lt;BR /&gt;&lt;BR /&gt;another way is to start the view,&lt;BR /&gt;cleartool setview ship2 &amp;amp; will do that, but I think there is a better command to use for this.  then look at the view through the /view directory. ls /view/ship2/vobs/nb_delivery&lt;BR /&gt;&lt;BR /&gt;it has been a while since i've worked with clearcase, so i'm not really specific.</description>
      <pubDate>Fri, 26 Mar 2004 03:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230517#M171973</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2004-03-26T03:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230518#M171974</link>
      <description>Hi mB,&lt;BR /&gt;&lt;BR /&gt;Curt was right with his remark about the new&lt;BR /&gt;subprocess created by 'cleartool setview'.&lt;BR /&gt;&lt;BR /&gt;The correct command line syntax is&lt;BR /&gt;cleartool setview -exe 'cmd...' viewtag&lt;BR /&gt;to execute a single cmd in a view so&lt;BR /&gt;cleartool setview -exe 'ls /vobs/nb_delivery' ship2&lt;BR /&gt;&lt;BR /&gt;will do it.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 26 Mar 2004 11:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230518#M171974</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2004-03-26T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230519#M171975</link>
      <description>Thanks everybody.The reply gave me same idea.Anyway I managed to solve the issue .Here are my script to copy a file from clearcase :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/atria/bin/cleartool &amp;lt;&amp;lt; ENDTEST&lt;BR /&gt;setview ship2&lt;BR /&gt;!ls -l /vobs/nb_delivery/current/* &amp;gt; /tmp/telcel.old&lt;BR /&gt;!rm -rf /home/bscs_fam/telcel/*&lt;BR /&gt;!cp /vobs/nb_delivery/current/* /CCdisk/bscs_fam/telcel&lt;BR /&gt;!chmod 777 /CCdisk/bscs_fam/telcel/*&lt;BR /&gt;ENDTEST&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Mon, 29 Mar 2004 03:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/3230519#M171975</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2004-03-29T03:18:42Z</dc:date>
    </item>
  </channel>
</rss>

