{"id":266,"date":"2013-07-31T18:38:37","date_gmt":"2013-07-31T22:38:37","guid":{"rendered":"http:\/\/localhost:8080\/?p=266"},"modified":"2023-07-11T11:31:47","modified_gmt":"2023-07-11T15:31:47","slug":"editors-and-other-helpful-tools","status":"publish","type":"post","link":"https:\/\/knowledgebasev.kinsta.cloud\/?p=266","title":{"rendered":"Tips and Tricks"},"content":{"rendered":"<h3>Receiving Email Notifications<\/h3>\n<p>Add this line after the #PBS directive to receive emails when a job starts and ends.<\/p>\n<p>\u201c#PBS -m e -M [your email address]\u201d to send an email when the job ends. or\u00a0\u201d#PBS -m abe -M [your email address]\u201d to send an email when the job begins, ends, or is aborted.<\/p>\n<p>For example:<\/p>\n<pre>#PBS -l nodes=1:copper:ppn=24\r\n#PBS -m abe -M myemail@example.com\r\n# Change to your working directory\r\n cd ~\/work\r\n# load any required modules to setup your environment\r\nmodule load gcc\r\n# Start some program with some required options\r\n .\/program -s 0 -e 100 --threads 12<\/pre>\n<p>&nbsp;<\/p>\n<p>For the \u201c-m abe\u201d, the letters a, b, and e are defined as:<\/p>\n<p>a mail is sent when the job is aborted by the batch system.<br \/>\nb mail is sent when the job begins execution.<br \/>\ne mail is sent when the job terminates.<\/p>\n<h3>Assign a unique job name<\/h3>\n<p>You can designate a job name for each job. qstat will show the job name instead of \u00a0the name of the .pbs file (default).<\/p>\n<p>qsub -N [my_job_name] myfile.pbs<\/p>\n<p>where [my_job_name] is any name without spaces or certain special characters (;, :, ., &#8220;, , #&#8217;). For example:<\/p>\n<pre>qsub -N my-test-1 myfile.pbs<\/pre>\n<p>or add this line to myfile.pbs file under the node specs:<\/p>\n<p>#PBS -N [my_job_name]<\/p>\n<p>for example:<\/p>\n<pre>#PBS -N my-test-1<\/pre>\n<h3><\/h3>\n<h3>Assign unique attributes to a job for accounting and tracking.<\/h3>\n<p>See this\u00a0<a title=\"Assigning Job Attributes for Accounting and Tracking\" href=\"\/?p=925\">article<\/a>\u00a0for details.<\/p>\n<h3>Graphical Text Editors<\/h3>\n<p>There is a basic text editor available on the remote desktop called &#8220;Mousepad&#8221;. Use it to modify text-based files if you are not familiar with screen-based editors. Simply navigate to the file using the File Manger<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1038\" src=\"\/wp-content\/uploads\/filemanager.jpg\" alt=\"\" \/><\/p>\n<p>and right-click or double-click the text file.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1038\" src=\"\/wp-content\/uploads\/mousepad.jpg\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>To create a text file, navigate to a folder and right click, select &#8220;Create Empty Document&#8221;<\/p>\n<div class=\"st-alert st-alert-info \"><em>TIP<\/em> &#8211; You can copy and past between the Sabalcore Remote Desktop and your local desktop using the Clipboard! .<\/div>\n<h3>Screen-Based Editors<\/h3>\n<p>Sabalcore has\u00a0most of the standard screen-based text editors that are normally<br \/>\navailable with Linux and Unix based operating systems. The most popular editors are: vi,\u00a0emacs, joe, and nano.<\/p>\n<h3>mc<\/h3>\n<p>Another very useful command to learn to use is \u201cmc\u201d. This is the Midnight Commander. It is a\u00a0screen-based directory browser. It&#8217;s fairly intuitive to use and makes navigating through your\u00a0home directory very quick and easy. Tip: starting mc with the -ba options turns off the fancy\u00a0colors and graphical lines for better viewing on an SSH terminal. mc is very powerful and has a\u00a0lot of nice features. See the man page for mc for more information.<\/p>\n<p>Sometimes, it is useful to have more than one login window. With the MindTerm client, you can\u00a0use \u201cCtrl-Shift-o\u201d to open a clone window for this purpose. This allows you to have 2 login\u00a0window open in the same session.<\/p>\n<h3>screen<\/h3>\n<p>Another great tool is \u201cscreen\u201d. This command allows you to run 2 or more sessions on the same\u00a0SSH connection. Just run the \u201cscreen\u201d command to start it. Then use \u201cC-a C-c\u201d (that&#8217;s control-a,\u00a0then control-c) to create a new session. You can then use \u201cC-a C-n\u201d to switch between sessions.\u00a0You can even put screen in standby without closing your sessions and restart it where you left\u00a0off later. Use \u201cC-a C-d\u201d to put screen in standby. Then you can logout out of your SSH session.\u00a0Later, when you log back into Sabalcore, just run \u201cscreen -d -r\u201d to reattach screen to your\u00a0previous session. To completely end your screen session, just use \u201cC-d\u201d until all your sessions\u00a0have exited. See the <a title=\"Screen Mannual\" href=\"http:\/\/www.gnu.org\/software\/screen\/manual\/screen.html\" target=\"_blank\">manpage<\/a> for screen for more information.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Receiving Email Notifications Add this line after the #PBS directive to receive emails when a job starts and ends. \u201c#PBS -m e -M [your email address]\u201d to send an email when the job ends. or\u00a0\u201d#PBS -m abe -M [your email address]\u201d to send an email when the job begins, ends, or is aborted. For example: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[40,41,44,43,45,42],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-userguidebasics","tag-edit","tag-editor","tag-emacs","tag-mc","tag-nano","tag-screen"],"_links":{"self":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266"}],"version-history":[{"count":17,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":1922,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions\/1922"}],"wp:attachment":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}