Mail Archives: cygwin/2003/10/09/09:02:14
On Thu, 9 Oct 2003, Pensa, Pascal wrote:
> From: Jason Tishler [mailto:jason AT tishler DOT net]
> >Why not use cron instead?
> >
> >Jason
>
> Thank you for suggestion but it's an application server managed by
> non-UNIX 'mouse users' which may manually start the task, so it should
> be simple for them.
>
> It seems that not having an output window slows down the script
> dramatically on each 'echo'.
>
> As workaround I started the script with another bash (to access cygwin
> /dev/null) , it work just fine now but it's a bit ugly (bash forking
> bash...) so any better idea will be appreciated:
>
> Before:
>
> bash myscript
>
> Has been replaced by:
>
> bash -c "bash myscript >/dev/null </dev/null"
>
> I really don't know why 'echo' is behaving like this.
>
> Pascal
You could put an "exec >/dev/null 2>&1 </dev/null" at the top of the
script instead.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -