<div class="gmail_quote">
<div>Dear Adam,</div>
<div> </div>
<div>I picked your email address up off the Alioth Developer profile page on minicom. I was wondering if you could answer a question regarding minicom runscript please?</div>
<div> </div>
<div>I am trying to run a send zmodem command using a runscript (i.e. invoked in the prompt by minicom -S databuoy.runscript). I am logged onto a Ubuntu linux box which then communicates with another linux box, running Wolvix (slackware) linux over a radio-modem link.</div>
<div> </div>
<div>I can manually run minicom, log into the slackware box and issue the command </div>
<div> </div>
<div>sz -b -q -y outgoing.tar.gz</div>
<div> </div>
<div>and the file download progress window pops up and then prompts me for "READY: press any key to continue..." when the file is downloaded.</div>
<div> </div>
<div>However when I try and invoke this within runscript, no such download progress window is in evidence and the runscript hangs and eventually times out with no file downloaded. The gist of my script is below. I am assuming this is because the download progress window is sent to stderr (gleaned from the web) and this cannot be handled within runscript?</div>
<div> </div>
<div>I would be grateful for any insight you can give me on this please?</div>
<div> </div>
<div>Yours sincerely,</div>
<div> </div>
<div>Tim Smyth</div>
<div> </div>
<div># Author Tim Smyth<br># Module: databuoy.runscript<br># Date 08/10/21<br># Version 1.0<br>#<br># runscript script to download data from the databuoy<br># This script should be run within minicom<br># with the command minicom -S databuoy.runscript<br>
#<br>###################################################<br>#set the global timeout<br>timeout 300<br>verbose on<br># send a carriage return first to check that the login is<br># correctly displayed<br>sleep 5<br>send "^C^C^C^C^C^C^C^C"<br>
send "\n"<br>send "\n"<br>expect {<br> "databuoy login:" break<br> timeout 60 goto panic</div>
<div>}</div>
<div>goto login</div>
<div>login:<br> send "root"<br> expect {<br> "Password:" break<br> timeout 60 goto panic<br> }<br> sleep 2<br> send "********"<br> expect {<br> "<a href="mailto:root@databuoy" target="_blank">root@databuoy</a>:~#" break<br>
timeout 60 goto panic<br> }<br> send "cd databuoy"<br> expect {<br> "<a href="mailto:root@databuoy:~/databuoy" target="_blank">root@databuoy:~/databuoy</a>#" break<br> timeout 60 goto panic<br>
}<br> # issue the send command<br> send "sz -b -q -y outgoing.tar.gz"<br> expect {</div>
<div> "**B00"<br> timeout 60 goto panic<br> }<br> send "^C"<br> expect {<br> "READY: press any key to continue..."<br> timeout 60 goto panic<br> }<br> send "\r\r"<br>
expect {<br> "<a href="mailto:root@databuoy:~/databuoy" target="_blank">root@databuoy:~/databuoy</a>#" break<br> timeout 60 goto panic<br> }<br> # logout<br> send "exit"<br> sleep 5<br>
expect {<br> "databuoy login:" break<br> timeout 60 goto panic<br> }<br> sleep 5<br> goto panic<br>#########################<br># killminicom subroutine#<br>#########################<br># kill minicom and hang up to allow future connection<br>
killminicom:<br> expect {<br> "Enter Selection:" break<br> timeout 15 goto panic<br> }<br> ! killall -15 minicom</div>
<div>#########################<br># panic subroutine #<br>#########################<br># panic kill<br>panic:<br> ! killall -15 minicom</div>
<div> </div></div><br>