X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=bX7QoUHtl/zJkCckHGotN3UgHzRPWm+DCrjvM5i6L3P XfBfFQSqDC17exnkkxxk8UuvaYWILvBKWaRgw9CWnoWkv26W2Hwjggmc4E6Fqxl0 YR1+babtw7k/9zVcU39zCEUsx1DAIp8g3kYmsm1kwJMVxedMcciP8F/V6BOAZdqU = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=46tCJxTOGIfJMfmg+h5j7LfHQW4=; b=N3rl0hQ7v1sFtZsii 8o8UlRybYZrq6LNhtUv/6BYvgsHvpNzVq+RkwzokpKvZacdxfj33hSfgqMKaXIk3 3PbAABZJaJSUAo1CozODClyC7y9Ff9ZD9Q5XguJeDJorZ5IxgVJZhicMDXSunDSt QhVwdT7HN6lIQaNWDoXGPJoIsc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ea0-f174.google.com X-Received: by 10.14.225.195 with SMTP id z43mr53201137eep.19.1391547319873; Tue, 04 Feb 2014 12:55:19 -0800 (PST) Message-ID: <52F153AE.5080704@gmail.com> Date: Tue, 04 Feb 2014 21:55:10 +0100 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Newbie Questions References: <1898639722 DOT 6893470 DOT 1391541591920 DOT JavaMail DOT root AT ptd DOT net> In-Reply-To: <1898639722.6893470.1391541591920.JavaMail.root@ptd.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 04/02/2014 20:19, mrushton wrote: > I am loving Cygwin. > > I have been reading the manuals and documentation and have some newbie questions. > > > 1) When I go to execute a script, do I just type the name of it or do i have to do a ./NameOfScript ? just the name if it is located in one of the PATH directories as any other command. instead "./NameOfScript" if you want to execute a script or a command not in the PATH For your own script " ~/bin" is a nice location This is a generic Unix FAQ. > 2) I am trying to do an Alias of the Clear Command ... in my bashrc I has an alias for clear to do a printf "\033c". Well it does not seem to work from my scripts, but works from shell prompt. > Is this a path issue ? How you call the script ? See on "info bash" at "6.2 Bash Startup Files" > 3) I am still trying to figure out how to open a termial window and have a menu script always run. > Should I put this in my .profile or is there a better way to do this ? Do you need a standalone run, so the terminal close after, or you need to drop to bash after the script ? Your solution is fine for the second case, while on the first you need to adapt the "mintty.exe /bin/bash -l" to "mintty.exe /bin/bash -C yourscript" > Thanks for all the work of the Cygwin team. > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple