[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



> I am in need of figuring out how to pass a "yes" followed by a carriage
> return via a bash script so a backup process can run successfully each day.

> 1) ssh to RaQ server as root
> 2) run cmuExport
> 3) copies contents of export to NAS device

I don't know cmuExport, but I would hope/expect it to has a command line 
switch for 'OverWrite' but if not, take a look at the 'expect' utility 
program: 

"Expect is a program that "talks" to other interactive programs accord-
 ing to a script.  Following the  script,  Expect  knows  what  can  be
 expected  from  a program and what the correct response should be.  An
 interpreted language provides branching and high-level control  struc-
 tures  to direct the dialogue.  In addition, the user can take control
 and interact directly when desired, afterward returning control to 
 the script."






</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00166" href="msg00166.html">[ale] Bash Scripting: How to pass &quot;yes&quot; + carriage return?</a></strong>
<ul><li><em>From:</em> FishR at bellsouth.net (Ryan Fish)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00168.html">[ale] Bash Scripting: How to pass &quot;yes&quot; + carriage return?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00170.html">[ale] RAID recovery speed</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00197.html">[ale] Bash Scripting: How to pass &quot;yes&quot; + carriage return?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00201.html">[ale] Bash Scripting: How to pass &quot;yes&quot; + carriage return?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00169"><strong>Date</strong></a></li>
<li><a href="threads.html#00169"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>