Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-10-2010, 06:04 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 4

Rep: Reputation: 0
how to pass response as command parameter?

Hey... Could really use some help with this situation.

I have a backup schedule running a full backup everyday. I'm using webmin to manage these backup now. The problem is when the dump command sends a prompt asking if we want to rewrite the tape, Webmin does not display this prompt and we end up having to terminate the backup -> erase the tape(which takes a long time) and then run the backup again.

I was wondering if there is a technique that could be used to pass "Yes" as a parameter to the dump command, much like in windows? or if there is a more efficient way of getting this done, i would be very open to this
Old 03-10-2010, 06:34 PM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
You can use the yes to pipe a 'y' response to the standard input of another command, eg
yes | cmd
Old 03-11-2010, 07:56 AM   #3
LQ Newbie
Registered: Feb 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot! that did the trick.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass command-line parameter to shell script? Kropotkin Linux - Newbie 12 07-25-2011 09:24 AM
pass parameter in command line lingyun Linux - Newbie 4 04-21-2009 10:42 PM
how to pass the parameter to command sed linux_1 Linux - Enterprise 3 10-15-2007 07:10 PM
gtk - How to pass in a parameter Ian D Programming 4 10-28-2005 11:23 AM
PHP Pass Parameter Gerardoj Programming 2 05-25-2004 08:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration