1. Connecting to the login nodes
The preferred method of access is via a Termininal Services Client(TSC).
- Once you have uncovered the appropriate "if", the file .bashrc/.tcshrc in your home directory h:/Users/[username] will be executed and a cygwin bash/tcsh shell prompt will appear. Otherwise you will get a Windows command prompt.
- To get to a Windows command prompt from cygwin, type cmd.
- To get a Cygwin prompt from a Windows command prompt type either bash or tcsh.
2. Running Shell Scripts in tcsh
- #!/bin/tcsh at top of scripts
- run as a normal script file
e.g. to run a script called test1.csh,
% ./test1.csh
3. Other notes on using Cygwin:
- use / instead of \
- chmod only useful for changing write file permissions
- does not support case distinction
- does not support the more command, but less works
- does not support spaces within filenames.
cd h:/CTC Tools
can be legally executed by the following:
cd h:/CTC\ Tools
- termcap entry is very limited – telnet for windows needs termcap entries for vt100.
- vi has problems due to above-mentioned termcap situation
- Suggestion: edit at a Windows command prompt and use unix under cygwin.
- Suggested Reading: the Cygwin FAQ located at:
http://cygwin.com/faq/faq_toc.html