Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 9 Oct 2003 09:00:30 -0400 (EDT)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: "Pensa, Pascal" <pascal.pensa@hp.com>
cc: cygwin@cygwin.com
Subject: Re: Bash extremely slow when started via task scheduler
In-Reply-To: <06CAA4D3753C53408D2CE6340B68444201D9454A@vbeexc02.emea.cpqcorp.net>
Message-ID: <Pine.GSO.4.56.0310090859380.15176@slinky.cs.nyu.edu>
References: <06CAA4D3753C53408D2CE6340B68444201D9454A@vbeexc02.emea.cpqcorp.net>
Importance: Normal
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 9 Oct 2003, Pensa, Pascal wrote:

> Hi,
>
> As it's my first post, I hope I'm in the right list for my question, if
> not I apologize and hope you'll tell me on which list I may ask (I
> didn't have access to newsgroups from my location, only mail)
>
> I'm trying to schedule a bash script via the MS task scheduler, this
> works well when the user set in task scheduler is the same as the logged
> user, but if I change the user to any other account, the scripts becomes
> *extremely* slow. Each time bash forks a command in the script it takes
> approx 2 seconds before the command really executes.
>
> I searched through the faq and this list's history but didn't find
> relevant response, so I hope you can help me.
>
> I tried to start bash in --norc --nologin, and after with --login, and
> tried various combinations with no success, the script remains slow as
> soon as the user logged on is not the same user set in the task
> scheduler.
>
> Any idea ?
>
> The system is an win nt4 domain controller + all sp/patches, and of
> course the latest cygwin (defaults packages installed, no more, no less)
>
> Regards,
> Pascal Pensa

Make one of the tasks start "strace -o bash_task.strace bash ..." instead
of simply "bash ...", and look at the resulting bash_task.strace to see
where the time goes.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/

