The CSF2 has been replaced by the CSF3 - please use that system! This documentation may be out of date. Please read the CSF3 documentation instead. To display this old CSF2 page click here. |
Editors
Overview
In order to submit jobs you need to be able to create and edit text files. A number of editors are installed on the system for this purpose.
Restrictions on use
There are no restrictions on accessing editors.
Set up procedure
All users have access through their default PATH. There is no need to load any modulefiles.
Available Editors
The following editors are available on the CSF. The weblinks will direct you to external documentation, tutorials and FAQs.
Windows text files differ from Linux text files
The CSF runs the Linux operating system. Windows and Linux have different, hidden, ways of indicating new lines. When you create a text file for your batch job submission under windows and transfer it to the CSF your batch job will fail to run because it cannot understand the windows convention. We have three recommended ways of dealing with this if you prefer not to learn a command line based linux editor.
1) Use gedit
– although this is a linux editor it is GUI based and can be run directly on the CSF which means you do not need to transfer files back and forth. To use it you will need to run a simple X11 server on your local desktop and enable X11-tunnelling in your SSH connection. Please see the webpage about accessing and using the CSF from windows for how to do that and where gedit
is used as an example. Note that gedit
won’t remove or convert existing Windows line ending characters in a file. See option 2 below for that.
2) If you create your text file under windows and upload it to the CSF then run this command on the CSF (at your prompt) before you submit it to batch:
dos2unix filename
where filename
is the name of your file. You should normally only run this on jobscripts, not data files. It is safe to run it on a unix file – it won’t change lines that already have the correct unix line ending.
If you wish to check whether there are any lines with the Windows/DOS line end characters in a file on the CSF, run the following to display those lines:
doslines filename
3) Under windows use Notepad++. In the menu select Edit -> EOL Conversion -> UNIX/OSX Format
when creating/editing a new text file. When you then upload that file the CSF will understand it.