[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Fri, 11 Nov 2005 07:22:29 -0500 -->
- <!--x-from-r13: TvfuD ng oryyfbhgu.arg (Dlna Tvfu) -->
- <!--x-message-id: 000001c5e6ba$960ff1a0$6401a8c0@win2kpro1 -->
- <!--x-subject: [ale] Bash Scripting: How to pass "yes" + carriage return? -->
- <li><em>date</em>: Fri, 11 Nov 2005 07:22:29 -0500</li>
- <li><em>from</em>: FishR at bellsouth.net (Ryan Fish)</li>
- <li><em>subject</em>: [ale] Bash Scripting: How to pass "yes" + carriage return?</li>
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.
The script does the following:
1) ssh to RaQ server as root
2) run cmuExport
3) copies contents of export to NAS device
Since cmuExport has been run before a prompt stating the directory the file
is written to already exists, do I want to overwrite is returned. The only
way to get past this point is to enter "y" then press ENTER at the prompt.
This is what I am attempting to automate.
Thank you for any help offered!
-Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00167" href="msg00167.html">[ale] Bash Scripting: How to pass "yes" + carriage return?</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00168" href="msg00168.html">[ale] Bash Scripting: How to pass "yes" + carriage return?</a></strong>
<ul><li><em>From:</em> stillwaxin at gmail.com (Michael Still)</li></ul></li>
<li><strong><a name="00169" href="msg00169.html">[ale] Bash Scripting: How to pass "yes" + carriage return?</a></strong>
<ul><li><em>From:</em> meuon at geeklabs.com (Mike Harrison)</li></ul></li>
<li><strong><a name="00201" href="msg00201.html">[ale] Bash Scripting: How to pass "yes" + carriage return?</a></strong>
<ul><li><em>From:</em> jasnow at hotmail.com (Al Snow)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00165.html">[ale] tux magazine</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00167.html">[ale] Bash Scripting: How to pass "yes" + carriage return?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00163.html">[ale] Parking for ALE Central Meeting, 11/10/05</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00167.html">[ale] Bash Scripting: How to pass "yes" + carriage return?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00166"><strong>Date</strong></a></li>
<li><a href="threads.html#00166"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>