<?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>Thema "Re: Expect scripting" in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469689#M704151</link>
    <description>Thanks for the ideas guys.  I did what you suggested.&lt;BR /&gt;&lt;BR /&gt;I wrote a shell script that will generate the file with the dates I need, and the correct syntax for expect.&lt;BR /&gt;&lt;BR /&gt;I then call my expect script from that shell script and source the file I created with the values I need.  &lt;BR /&gt;&lt;BR /&gt;This is much more elegant that what I was originally doing.</description>
    <pubDate>Mon, 24 Jan 2005 14:24:45 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2005-01-24T14:24:45Z</dc:date>
    <item>
      <title>Expect scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469686#M704148</link>
      <description>I am trying to do some scripting with expect and I cannot figure out how to do what I need to do.&lt;BR /&gt;&lt;BR /&gt;The problem is that I have a script that runs every day, but part of the input is the previous days date.&lt;BR /&gt;&lt;BR /&gt;So what I need to do with expect is something like:&lt;BR /&gt;&lt;BR /&gt;VAR1=$(caljd.sh -o $(caljd.sh -p 1))&lt;BR /&gt;send -- "${VAR1}\r"&lt;BR /&gt;&lt;BR /&gt;How can I set a variable within expect to a value calculated by executing a shell command?    I have searched high and low and I cannot figure out how to do that.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!!!</description>
      <pubDate>Mon, 24 Jan 2005 10:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469686#M704148</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-01-24T10:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expect scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469687#M704149</link>
      <description>Patrick,&lt;BR /&gt;would it be possible to use a temp file to read from??&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 24 Jan 2005 11:14:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469687#M704149</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-01-24T11:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expect scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469688#M704150</link>
      <description>You use caljd.sh same way I do.  Thanks for the concept validation.&lt;BR /&gt;&lt;BR /&gt;Could you write this variable output to a file?&lt;BR /&gt;&lt;BR /&gt;Then have the expect script source the file the same way users source .profile ... Just an out of the box concept.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 24 Jan 2005 11:56:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469688#M704150</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-01-24T11:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expect scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469689#M704151</link>
      <description>Thanks for the ideas guys.  I did what you suggested.&lt;BR /&gt;&lt;BR /&gt;I wrote a shell script that will generate the file with the dates I need, and the correct syntax for expect.&lt;BR /&gt;&lt;BR /&gt;I then call my expect script from that shell script and source the file I created with the values I need.  &lt;BR /&gt;&lt;BR /&gt;This is much more elegant that what I was originally doing.</description>
      <pubDate>Mon, 24 Jan 2005 14:24:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-scripting/m-p/3469689#M704151</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-01-24T14:24:45Z</dc:date>
    </item>
  </channel>
</rss>

