Newbie Questions

Marco Atzeri marco.atzeri@gmail.com
Tue Feb 4 20:55:00 GMT 2014



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



More information about the Cygwin mailing list