delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/05/13:25:48

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=RDIM1kgiBiBCpr2qir+BjHi/qSojrSeuJNNuSHdv7KC
qnmP7DgyB5llVqtJLLdaehAK8T9yGy71CElYXuXCLgCOGyn476/aLmengdJT2l3V
MJSq8rLv0qTkjxTaumbfhB5XC1C8FNsB2vkxIU1N1fuG5rMt3/bGGV859ycHKiGY
=
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=kJcSKn3uKDqhUTWhzHbvY8WNDU0=; b=iMjRov9PCbgau6ZVh
LuoSzT4MBLjLWZs7D9b+vmnzvynscupImnOkVtlQbhq9Xc6LfiHOsPXI9bblDufe
yeW4ZKPBzcHjmir4DSLuYDyZHFVrmY05ERkBor7iS9wBMo0bKMXrUuaQZfuIyF8P
rFWlo7UGkvWwdYZaDz42dUbfTY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: proxyz16.mailnet.ptd.net
Message-ID: <52F28215.5030801@ptd.net>
Date: Wed, 05 Feb 2014 13:25:25 -0500
From: Mike Rushton <mrushton AT ptd DOT net>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.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> <52F153AE DOT 5080704 AT gmail DOT com>
In-Reply-To: <52F153AE.5080704@gmail.com>
X-IsSubscribed: yes

Thanks for all the help.

What I am trying to do is convert some Korn Shell scripts to bash to run 
under Cygwin.

I am wondering,  does cygwin have a preferred extension for scripts ?  
It  probably does not matter.   Some of the scripts had .ksh on the end 
of them.
I want to make everything uniform now that I am moving to Cygwin.






On 2/4/2014 3:55 PM, Marco Atzeri wrote:
>
>
> 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
>
>


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019