<?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: sourcing script help in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070800#M8431</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. When I run &lt;BR /&gt;type cleartool it give following output&lt;BR /&gt;&lt;BR /&gt;cleartool is C:/Program Files/Rational/ClearCase/bin/cleartool.exe&lt;BR /&gt;but when it pipes it with sed as below within the script then it gives the following output&lt;BR /&gt;&lt;BR /&gt;`type cleartool | sed -e 's%\\\\%/%g' -e 's/.* //' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`&lt;BR /&gt;&lt;BR /&gt;files/rational/clearcase/bin/cleartool.exe: not found&lt;BR /&gt;&lt;BR /&gt;It should set the path to cleartool as &lt;BR /&gt;C:/Program Files/Rational/ClearCase/bin/cleartool.exe&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;PAdma&lt;BR /&gt;</description>
    <pubDate>Fri, 14 Sep 2007 12:15:43 GMT</pubDate>
    <dc:creator>Padma Asrani</dc:creator>
    <dc:date>2007-09-14T12:15:43Z</dc:date>
    <item>
      <title>sourcing script help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070797#M8428</link>
      <description>Hello Friends &lt;BR /&gt;&lt;BR /&gt;I am facing one problem with the sourcing script. I don't know in past it used to run. I am facing a problem wherein it is not able to set the path for cleartool.exe&lt;BR /&gt;&lt;BR /&gt;We have following command to find the path of cleartool.exe&lt;BR /&gt;&lt;BR /&gt;CLEARTOOL=`type cleartool | sed -e 's%\\\\%/%g' -e 's/.* //' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`&lt;BR /&gt;&lt;BR /&gt;But on my system the output is &lt;BR /&gt;&lt;BR /&gt;files/rational/clearcase/bin/cleartool.exe: not found&lt;BR /&gt;&lt;BR /&gt;Instead of &lt;BR /&gt;C:\Program Files\Rational\ClearCase\bin\&lt;BR /&gt;&lt;BR /&gt;Can anybody give me the idea how to fix it.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2007 11:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070797#M8428</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-09-14T11:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: sourcing script help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070798#M8429</link>
      <description>Are you using cygwin or something?&lt;BR /&gt;&lt;BR /&gt;What are the contents of the "cleartool" file you are sending to sed? The sed statement is going to replace any double \\s with a single /, and remove any text up to and including the first space.</description>
      <pubDate>Fri, 14 Sep 2007 12:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070798#M8429</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2007-09-14T12:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: sourcing script help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070799#M8430</link>
      <description>Edit above:&lt;BR /&gt;&lt;BR /&gt;Oh, I see you aren't using the windows type command, but the shell builtin. &lt;BR /&gt;&lt;BR /&gt;I'm not sure what you are doing in that case...taking the path to your current cleartool executable and reformatting it for what? What does "type cleartool" give you? What does "echo $CLEARTOOL" give you after running the command? What do you want it to give you?</description>
      <pubDate>Fri, 14 Sep 2007 12:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070799#M8430</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2007-09-14T12:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: sourcing script help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070800#M8431</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. When I run &lt;BR /&gt;type cleartool it give following output&lt;BR /&gt;&lt;BR /&gt;cleartool is C:/Program Files/Rational/ClearCase/bin/cleartool.exe&lt;BR /&gt;but when it pipes it with sed as below within the script then it gives the following output&lt;BR /&gt;&lt;BR /&gt;`type cleartool | sed -e 's%\\\\%/%g' -e 's/.* //' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`&lt;BR /&gt;&lt;BR /&gt;files/rational/clearcase/bin/cleartool.exe: not found&lt;BR /&gt;&lt;BR /&gt;It should set the path to cleartool as &lt;BR /&gt;C:/Program Files/Rational/ClearCase/bin/cleartool.exe&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;PAdma&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2007 12:15:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070800#M8431</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-09-14T12:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: sourcing script help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070801#M8432</link>
      <description>Well, unless I'm missing something:&lt;BR /&gt;CLEARTOOL=`type cleartool`</description>
      <pubDate>Fri, 14 Sep 2007 12:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070801#M8432</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2007-09-14T12:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: sourcing script help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070802#M8433</link>
      <description>(Your example is not for HP-UX but evil windows with embedded spaces.)&lt;BR /&gt;&lt;BR /&gt;If you have Unix, you can use dirname(1):&lt;BR /&gt;$ CLEARTOOL=$(dirname "$(type cleartool)")&lt;BR /&gt;&lt;BR /&gt;Your above sed and tr commands are useless.  You don't want to downshift.  You don't want to delete everything before the first space.  Nor do you want to change \\ to /.&lt;BR /&gt;&lt;BR /&gt;Using this sed may help:&lt;BR /&gt;sed -e 's/\(.*\\\).*$/\1/'&lt;BR /&gt;It should remove everything after the last "\".</description>
      <pubDate>Fri, 14 Sep 2007 17:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070802#M8433</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-14T17:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: sourcing script help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070803#M8434</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;one hint is the space in the pathname, but the major problem is: you are on windows :-)&lt;BR /&gt;&lt;BR /&gt;Not knowing, which UNIX-tools are available, I think, you should have 'tr' as well, when a 'sed' is in sight.&lt;BR /&gt;On a MKS-ksh-Shell this starts the cleartool command for me:&lt;BR /&gt;$ ct=`whence cleartool | tr '\\' /`&lt;BR /&gt;$ print $ct&lt;BR /&gt;C:/Program Files/Rational/Clearcase/bin/cleartool.EXE&lt;BR /&gt;$ "$ct"&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 17 Sep 2007 06:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/sourcing-script-help/m-p/4070803#M8434</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-09-17T06:40:34Z</dc:date>
    </item>
  </channel>
</rss>

