Thanks to everyone who replied, The overwhelming response seems to be echo yes|scriptname.This

2007-12-24 19:33:00

Thanks to everyone who replied,
The overwhelming response seems to be echo yes|scriptname.
This is the thought I had as well, but I am wondering if this will answer
yes at the correct point I need it to. For example will this keep echoing
yes through outt the script? However, this seems a bit dangerous, as if
dump had a problem and asked if you wanted to restart or abort. I guess
this would just answer yes to those questions as well, correct?
Also, how do I redirect the output of the script to a file and standard
output at the same time? I have tried:
# SCRIPTNAME > FILENAME 2>&1
But this just sends the output to the file, not the screen. I know it a bit
of a newbie questions, but I am a newbie to scripting. Thanks again for all
the help.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Comments

Got something to say?

You must be logged in to post a comment.