On Thu, 2005-08-04 at 15:00 +1000, [EMAIL PROTECTED] wrote:
> I have a bash script sometimes called by another script and sometimes run
> from the command line. I would like standard output (and error) to go to
> the screen if I run the script from the keyboard and to a nominated file
> if I call it from another script.
in the calling script
QUIET=YES myscript my options
in the script
if [ "$QUIET" = "YES" ] ; then
X=something
else
X=
fi
Easy really.
--
Ken Foskey
OpenOffice.org developer
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html