<?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: Carriage Return in a script - in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021111#M428554</link>
    <description>Hi Rex,&lt;BR /&gt;&lt;BR /&gt;I'm not familiar with 'ontape', but perhaps this would work:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;chmod 660 level0.pei&lt;BR /&gt;ontape -s -L 0 &amp;lt;&amp;lt; _EOF_&lt;BR /&gt;&lt;BR /&gt;_EOF_&lt;BR /&gt;rm old.level0.pei &lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;PCS</description>
    <pubDate>Wed, 03 Jan 2007 10:35:29 GMT</pubDate>
    <dc:creator>spex</dc:creator>
    <dc:date>2007-01-03T10:35:29Z</dc:date>
    <item>
      <title>Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021108#M428551</link>
      <description>All, &lt;BR /&gt;&lt;BR /&gt;I have a question, perhaps one of you can give me an idea of what to do. We are running &lt;BR /&gt;Informix 7.3.1UD8 Online Engine, &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have a script I’ve been running manually arch_pei.sh &lt;BR /&gt;&lt;BR /&gt;# cat arch_pei.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;cd /snapfileserver2 &lt;BR /&gt;mv level0.pei old.level0.pei &lt;BR /&gt;touch level0.pei&lt;BR /&gt;chown informix:informix level0.pei&lt;BR /&gt;chmod 660 level0.pei&lt;BR /&gt;ontape -s -L 0  &lt;BR /&gt;rm old.level0.pei &lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FWIW the line "ontape -s -L 0" in the script prompts for a mount &lt;BR /&gt;Please mount tape 1 on /snapfileserver2/level0.pei&lt;BR /&gt;&lt;BR /&gt;the file and location in question is disk and not tape.   &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I run this I am prompted to enter a carriage return at the ONTAPE LINE . How with in this script can I echo or force a carriage return to run this script? Should I use expect? &lt;BR /&gt;&lt;BR /&gt;If any one wth Informix experience sees this they may have a work around.. I'd appreciate it. &lt;BR /&gt;&lt;BR /&gt;Rex Mueller - Educational Service Unit #3 &lt;BR /&gt;Omaha, NE</description>
      <pubDate>Wed, 03 Jan 2007 10:06:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021108#M428551</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2007-01-03T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021109#M428552</link>
      <description>Hi,&lt;BR /&gt;how about something along these lines:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=971561" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=971561&lt;/A&gt;</description>
      <pubDate>Wed, 03 Jan 2007 10:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021109#M428552</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-03T10:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021110#M428553</link>
      <description>Hi Rex:&lt;BR /&gt;&lt;BR /&gt;I would try:&lt;BR /&gt;&lt;BR /&gt;# ontape -s -L 0 &amp;lt; /dev/null&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 03 Jan 2007 10:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021110#M428553</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-01-03T10:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021111#M428554</link>
      <description>Hi Rex,&lt;BR /&gt;&lt;BR /&gt;I'm not familiar with 'ontape', but perhaps this would work:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;chmod 660 level0.pei&lt;BR /&gt;ontape -s -L 0 &amp;lt;&amp;lt; _EOF_&lt;BR /&gt;&lt;BR /&gt;_EOF_&lt;BR /&gt;rm old.level0.pei &lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Wed, 03 Jan 2007 10:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021111#M428554</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2007-01-03T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021112#M428555</link>
      <description>&lt;BR /&gt;Omaha,&lt;BR /&gt;&lt;BR /&gt;Check this out:&lt;BR /&gt;&lt;BR /&gt;You can use the below ,Hope this can help,&lt;BR /&gt;&lt;BR /&gt; echo "\r" | ontape -s -L 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That will provide a carriage retrun after it will ask after doing intital process by ontape ,&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jan 2007 10:53:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021112#M428555</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2007-01-03T10:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021113#M428556</link>
      <description>&lt;BR /&gt;Omaha,&lt;BR /&gt;&lt;BR /&gt;Check this out:&lt;BR /&gt;&lt;BR /&gt;You can use the below ,Hope this can help,&lt;BR /&gt;&lt;BR /&gt; echo "\r" | ontape -s -L 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That will provide a carriage retrun after it will ask after doing initial process by ontape ,&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jan 2007 10:53:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021113#M428556</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2007-01-03T10:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021114#M428557</link>
      <description>&lt;BR /&gt;Omaha,&lt;BR /&gt;&lt;BR /&gt;Also you can do like this :&lt;BR /&gt;&lt;BR /&gt;# echo "\r" | ./arch_pei.sh &lt;BR /&gt;&lt;BR /&gt;That will add a carriage when it will prompt,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jan 2007 10:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021114#M428557</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2007-01-03T10:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021115#M428558</link>
      <description>Thanks All, both the &lt;BR /&gt;&amp;lt; /dev/null &lt;BR /&gt;and the &lt;BR /&gt;echo "\r" worked, I didn't try the others.. Appreciate the assist. &lt;BR /&gt;&lt;BR /&gt;I didn't think I'd have to resort to writting an expect script to handle something as simple as a carriage return!&lt;BR /&gt;&lt;BR /&gt;Thanks !!</description>
      <pubDate>Wed, 03 Jan 2007 13:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021115#M428558</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2007-01-03T13:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021116#M428559</link>
      <description>Rex , thx for the quick review. &lt;BR /&gt;Well , sorry! for the multiple posting happend due to itrc site access problem and due to multiple click,. Hope you understood that.&lt;BR /&gt;&lt;BR /&gt;And nice to know that the script worked. &lt;BR /&gt;Enjoy,Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(ps: 0 pts pls)</description>
      <pubDate>Wed, 03 Jan 2007 14:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021116#M428559</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2007-01-03T14:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021117#M428560</link>
      <description>Rex,&lt;BR /&gt;could you please confirm that you read the answers provided in the link in my first post ?&lt;BR /&gt;&lt;BR /&gt;Solutions given in that link were:&lt;BR /&gt;expect and/or redirct of input (use of &amp;lt;&amp;lt;)</description>
      <pubDate>Mon, 08 Jan 2007 05:10:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021117#M428560</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-08T05:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021118#M428561</link>
      <description>Peter, &lt;BR /&gt;&lt;BR /&gt;Yes, I did read the other thread.. I've been using Expect for many other things.. However for this "issue" I felt it was not merited to use it at this point. &lt;BR /&gt;I do keep references to refer back to when I script. My brain doesn't always recall things like it used to 10 years ago. :D</description>
      <pubDate>Mon, 08 Jan 2007 08:59:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021118#M428561</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2007-01-08T08:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021119#M428562</link>
      <description>Rex,&lt;BR /&gt;did you also read on in that link and see Steve Lewis's solution - which was the use of &amp;lt;&amp;lt; EOF &lt;BR /&gt;&lt;BR /&gt;Rather than just answering a particular problem with a one-liner I try to find a previous thread which suggests a number of solutions, as users tend to have preferences.&lt;BR /&gt;&lt;BR /&gt;In this case, the use of &amp;lt;&amp;lt; was one answer (as also offered by Spex). You mentioned expect as a possible solution in your description.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jan 2007 09:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021119#M428562</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-08T09:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021120#M428563</link>
      <description>Yes, &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;BR /&gt;Thank you. &lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jan 2007 09:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021120#M428563</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2007-01-08T09:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return in a script -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021121#M428564</link>
      <description>Thanks All.</description>
      <pubDate>Mon, 08 Jan 2007 09:23:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/carriage-return-in-a-script/m-p/5021121#M428564</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2007-01-08T09:23:07Z</dc:date>
    </item>
  </channel>
</rss>

