<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://burana.ijs.si/wiki2/skins/common/feed.css?42b"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sl">
		<id>http://burana.ijs.si/wiki2/index.php?action=history&amp;feed=atom&amp;title=Atos</id>
		<title>Atos - Zgodovina strani</title>
		<link rel="self" type="application/atom+xml" href="http://burana.ijs.si/wiki2/index.php?action=history&amp;feed=atom&amp;title=Atos"/>
		<link rel="alternate" type="text/html" href="http://burana.ijs.si/wiki2/index.php?title=Atos&amp;action=history"/>
		<updated>2026-05-14T03:10:32Z</updated>
		<subtitle>Zgodovina navedene strani Fizika za študente Praktične matematike 2007 - 2008</subtitle>
		<generator>MediaWiki 1.9.3</generator>

	<entry>
		<id>http://burana.ijs.si/wiki2/index.php?title=Atos&amp;diff=145&amp;oldid=prev</id>
		<title>193.2.4.4 ob 17:43, 3 februar 2009</title>
		<link rel="alternate" type="text/html" href="http://burana.ijs.si/wiki2/index.php?title=Atos&amp;diff=145&amp;oldid=prev"/>
				<updated>2009-02-03T17:43:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;← Starejša redakcija&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;Redakcija: 17:43, 3 februar 2009&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 1:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 1:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;== Queuing system ==&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;== Queuing system ==&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;As an example let us write a program which calculates a product and a quotient of two numbers. We first create a directory ''test'' where the program will be located:&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;The queuing system supports two types of jobs: in a '''batch job''' there is no interaction between the user and the job while the job is running. If such an interaction is needed you should ask the queuing system for an '''interactive job'''.  &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;=== Batch jobs ===&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;As an example let us write a program which &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;waits for two minutes and then &lt;/span&gt;calculates a product and a quotient of two numbers. We first create a directory ''test'' where the program will be located:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~&amp;gt; mkdir test&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~&amp;gt; mkdir test&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &amp;lt;font color=blue&amp;gt;rejec@atos:~&amp;gt; cd test&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &amp;lt;font color=blue&amp;gt;rejec@atos:~&amp;gt; cd test&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 11:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 15:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;a = $a\n&amp;quot;;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;a = $a\n&amp;quot;;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;b = $b\n&amp;quot;;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;b = $b\n&amp;quot;;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; print &amp;quot;Waiting for two minutes ...\n&amp;quot;;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; sleep 120;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;a * b = &amp;quot;, $a * $b, &amp;quot;\n&amp;quot;; &lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;a * b = &amp;quot;, $a * $b, &amp;quot;\n&amp;quot;; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;a / b = &amp;quot;, $a / $b, &amp;quot;\n&amp;quot;;&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; print &amp;quot;a / b = &amp;quot;, $a / $b, &amp;quot;\n&amp;quot;;&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 17:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 23:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; a = 2&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; a = 2&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; b = 0&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; b = 0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; Waiting for two minutes ...&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; a * b = 0&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; a * b = 0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; Illegal division by zero at ./programcek line 6.&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; Illegal division by zero at ./programcek line 6.&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 22:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 29:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; cat programcek.sh&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; cat programcek.sh&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; #!/bin/bash&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; #!/bin/bash&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; #PBS -l walltime=00:03:00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; cd test&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; cd test&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; programcek 2 0&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; programcek 2 0&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;The shell script should &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;first &lt;/span&gt;change the directory to the one where the program itself is located (''cd test''). Then it should run the program (''programcek 2 0'').&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;In the second line we inform the system that the job will run at most three minutes (''#PBS -l walltime=00:03:00''). If the job takes longer to complete it will be killed. If this line is missing in the shell script the default value of one minute will be used. &lt;/span&gt;The shell script should &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;then &lt;/span&gt;change the directory to the one where the program itself is located (''cd test''). Then it should run the program (''programcek 2 0'').&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;Now we are ready to put the program in the queue. This we can do with the ''qsub'' command:&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;Now we are ready to put the program in the queue. This we can do with the ''qsub'' command:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 60:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 68:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt; &amp;lt;font color=red&amp;gt;1849                  rejec       Idle     1    &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;INFINITY &lt;/span&gt; Wed Apr  2 18:02:20&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; &amp;lt;font color=red&amp;gt;1849                  rejec       Idle     1    &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;00:03:00 &lt;/span&gt; Wed Apr  2 18:02:20&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; 1 Idle Job&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; 1 Idle Job&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 82:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 90:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; 1826                 vilfan    Running     6    INFINITY  Wed Apr  2 09:37:38&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; 1826                 vilfan    Running     6    INFINITY  Wed Apr  2 09:37:38&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; 1827                 vilfan    Running     4    INFINITY  Wed Apr  2 13:32:32&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; 1827                 vilfan    Running     4    INFINITY  Wed Apr  2 13:32:32&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt; &amp;lt;font color=red&amp;gt;1849                  rejec    Running     1    &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;INFINITY &lt;/span&gt; Wed Apr  2 18:14:18&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; &amp;lt;font color=red&amp;gt;1849                  rejec    Running     1    &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;00:03:00 &lt;/span&gt; Wed Apr  2 18:14:18&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;      9 Active Jobs      64 of   96 Processors Active (66.67%)&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;      9 Active Jobs      64 of   96 Processors Active (66.67%)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 112:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Vrstica 120:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; Illegal division by zero at ./programcek line 6.&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; Illegal division by zero at ./programcek line 6.&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;The output and the errors of the job were saved in the ''programcek.sh.o1849'' and ''programcek.sh.e1849'' files, respectively.&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;The output and the errors of the job were saved in the ''programcek.sh.o1849'' and ''programcek.sh.e1849'' files, respectively.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;=== Interactive jobs ===&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;Use the following command to ask the queuing system for a two hour interacting job: &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test/&amp;gt; qsub -l walltime=02:00:00 -I&amp;lt;/font&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; qsub: waiting for job 12813.atos.ijs.si to start&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; qsub: job 12813.atos.ijs.si ready&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt; &amp;lt;font color=blue&amp;gt;rejec@n19:~/&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/code&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;The system found a free processor on the n19 node and opened a shell there. The shell can be used to do whatever you wish for the next two hours.   &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;=== Additional information ===&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;You can find additional information in the [[Media:PBSProUG_5_4_0.pdf|users manual]].&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;You can find additional information in the [[Media:PBSProUG_5_4_0.pdf|users manual]].&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>193.2.4.4</name></author>	</entry>

	<entry>
		<id>http://burana.ijs.si/wiki2/index.php?title=Atos&amp;diff=108&amp;oldid=prev</id>
		<title>193.2.4.4: New page: == Queuing system ==  As an example let us write a program which calculates a product and a quotient of two numbers. We first create a directory ''test'' where the program will be located:...</title>
		<link rel="alternate" type="text/html" href="http://burana.ijs.si/wiki2/index.php?title=Atos&amp;diff=108&amp;oldid=prev"/>
				<updated>2008-07-08T12:45:06Z</updated>
		
		<summary type="html">&lt;p&gt;New page: == Queuing system ==  As an example let us write a program which calculates a product and a quotient of two numbers. We first create a directory ''test'' where the program will be located:...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nova stran&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Queuing system ==&lt;br /&gt;
&lt;br /&gt;
As an example let us write a program which calculates a product and a quotient of two numbers. We first create a directory ''test'' where the program will be located:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~&amp;gt; mkdir test&amp;lt;/font&amp;gt;&lt;br /&gt;
 &amp;lt;font color=blue&amp;gt;rejec@atos:~&amp;gt; cd test&amp;lt;/font&amp;gt;&lt;br /&gt;
 &amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;/code&amp;gt;&lt;br /&gt;
Let's call the program ''programcek''. The code in perl is &lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; cat programcek&amp;lt;/font&amp;gt;&lt;br /&gt;
 #!/usr/bin/perl&lt;br /&gt;
 my ($a, $b) = @ARGV;&lt;br /&gt;
 print &amp;quot;a = $a\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;b = $b\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;a * b = &amp;quot;, $a * $b, &amp;quot;\n&amp;quot;; &lt;br /&gt;
 print &amp;quot;a / b = &amp;quot;, $a / $b, &amp;quot;\n&amp;quot;;&amp;lt;/code&amp;gt;&lt;br /&gt;
An example output: &lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; programcek 2 0&amp;lt;/font&amp;gt;&lt;br /&gt;
 a = 2&lt;br /&gt;
 b = 0&lt;br /&gt;
 a * b = 0&lt;br /&gt;
 Illegal division by zero at ./programcek line 6.&amp;lt;/code&amp;gt;&lt;br /&gt;
Now we'll run the program using the queuing system. First we need to write a shell script. Let's call it ''programcek.sh''.&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; cat programcek.sh&amp;lt;/font&amp;gt;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 cd test&lt;br /&gt;
 programcek 2 0&amp;lt;/code&amp;gt;&lt;br /&gt;
The shell script should first change the directory to the one where the program itself is located (''cd test''). Then it should run the program (''programcek 2 0'').&lt;br /&gt;
&lt;br /&gt;
Now we are ready to put the program in the queue. This we can do with the ''qsub'' command:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; qsub programcek.sh&amp;lt;/font&amp;gt;&lt;br /&gt;
 1849.atos.ijs.si&amp;lt;/code&amp;gt;&lt;br /&gt;
Note that an id number ''1849'' was assigned to the job. From this point on, you'll be able to check the status of job, stop it and access its results only through the id number. So don't forget it.&lt;br /&gt;
&lt;br /&gt;
Let's check what is going on in the queue with the ''showq'' command:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; showq&amp;lt;/font&amp;gt;&lt;br /&gt;
 ACTIVE JOBS--------------------&lt;br /&gt;
 JOBNAME            USERNAME      STATE  PROC   REMAINING            STARTTIME&lt;br /&gt;
 &lt;br /&gt;
 1732                 vilfan    Running     5  3:20:30:14  Tue Apr  1 10:32:35&lt;br /&gt;
 1646                 vilfan    Running    12    INFINITY  Thu Mar 27 17:09:44&lt;br /&gt;
 1716                 vilfan    Running     6    INFINITY  Mon Mar 31 17:52:49&lt;br /&gt;
 1717                 vilfan    Running     6    INFINITY  Mon Mar 31 18:01:39&lt;br /&gt;
 1739                 vilfan    Running    12    INFINITY  Tue Apr  1 13:36:11&lt;br /&gt;
 1740                 vilfan    Running    12    INFINITY  Tue Apr  1 14:14:54&lt;br /&gt;
 1826                 vilfan    Running     6    INFINITY  Wed Apr  2 09:37:38&lt;br /&gt;
 1827                 vilfan    Running     4    INFINITY  Wed Apr  2 13:32:32&lt;br /&gt;
 1835                  rejec    Running     4    INFINITY  Wed Apr  2 18:00:22&lt;br /&gt;
 1836                  rejec    Running    10    INFINITY  Wed Apr  2 18:00:35&lt;br /&gt;
 1838                  rejec    Running     1    INFINITY  Wed Apr  2 18:00:51&lt;br /&gt;
 1839                  rejec    Running    10    INFINITY  Wed Apr  2 18:00:57&lt;br /&gt;
 1841                  rejec    Running     4    INFINITY  Wed Apr  2 18:01:33&lt;br /&gt;
 1845                  rejec    Running     1    INFINITY  Wed Apr  2 18:01:54&lt;br /&gt;
 1846                  rejec    Running     1    INFINITY  Wed Apr  2 18:02:03&lt;br /&gt;
 1847                  rejec    Running     1    INFINITY  Wed Apr  2 18:02:14&lt;br /&gt;
 1848                  rejec    Running     1    INFINITY  Wed Apr  2 18:02:17&lt;br /&gt;
 &lt;br /&gt;
     17 Active Jobs      96 of   96 Processors Active (100.00%)&lt;br /&gt;
                         24 of   24 Nodes Active      (100.00%)&lt;br /&gt;
 &lt;br /&gt;
 IDLE JOBS----------------------&lt;br /&gt;
 JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;font color=red&amp;gt;1849                  rejec       Idle     1    INFINITY  Wed Apr  2 18:02:20&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 1 Idle Job&lt;br /&gt;
 &lt;br /&gt;
 BLOCKED JOBS----------------&lt;br /&gt;
 JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Total Jobs: 18   Active Jobs: 17   Idle Jobs: 1   Blocked Jobs: 0&amp;lt;/code&amp;gt;&lt;br /&gt;
We note that our job is listed under the ''IDLE JOBS''. This means that all the processors are currently occupied and our job has to wait until one of them is free before it can be run. Let's check again few hours later:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; showq&amp;lt;/font&amp;gt;&lt;br /&gt;
 ACTIVE JOBS--------------------&lt;br /&gt;
 JOBNAME            USERNAME      STATE  PROC   REMAINING            STARTTIME&lt;br /&gt;
 &lt;br /&gt;
 1732                 vilfan    Running     5  3:20:18:17  Tue Apr  1 10:32:35&lt;br /&gt;
 1646                 vilfan    Running    12    INFINITY  Thu Mar 27 17:09:44&lt;br /&gt;
 1716                 vilfan    Running     6    INFINITY  Mon Mar 31 17:52:49&lt;br /&gt;
 1717                 vilfan    Running     6    INFINITY  Mon Mar 31 18:01:39&lt;br /&gt;
 1739                 vilfan    Running    12    INFINITY  Tue Apr  1 13:36:11&lt;br /&gt;
 1740                 vilfan    Running    12    INFINITY  Tue Apr  1 14:14:54&lt;br /&gt;
 1826                 vilfan    Running     6    INFINITY  Wed Apr  2 09:37:38&lt;br /&gt;
 1827                 vilfan    Running     4    INFINITY  Wed Apr  2 13:32:32&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;1849                  rejec    Running     1    INFINITY  Wed Apr  2 18:14:18&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
      9 Active Jobs      64 of   96 Processors Active (66.67%)&lt;br /&gt;
                         23 of   24 Nodes Active      (95.83%)&lt;br /&gt;
 &lt;br /&gt;
 IDLE JOBS----------------------&lt;br /&gt;
 JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 0 Idle Jobs&lt;br /&gt;
 &lt;br /&gt;
 BLOCKED JOBS----------------&lt;br /&gt;
 JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Total Jobs: 9   Active Jobs: 9   Idle Jobs: 0   Blocked Jobs: 0&amp;lt;/code&amp;gt;&lt;br /&gt;
Now the program running: it is listed under the ''ACTIVE JOBS''. If in the meantime you've found out that there is a bug in your program, you should stop it to make the resources available to other users. You can do this with the ''qdel'' command:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; qdel 1849&amp;lt;/font&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Let's assume everything was OK with your program, and you'd waited until it stopped running. The results of the calculation are available in the directory where the job was started:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; ls&amp;lt;/font&amp;gt;&lt;br /&gt;
 programcek  programcek.sh  programcek.sh.e1849  programcek.sh.o1849&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; cat programcek.sh.o1849&amp;lt;/font&amp;gt;&lt;br /&gt;
 a = 2&lt;br /&gt;
 b = 0&lt;br /&gt;
 a * b = 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;font color=blue&amp;gt;rejec@atos:~/test&amp;gt; cat programcek.sh.e1849&amp;lt;/font&amp;gt;&lt;br /&gt;
 Illegal division by zero at ./programcek line 6.&amp;lt;/code&amp;gt;&lt;br /&gt;
The output and the errors of the job were saved in the ''programcek.sh.o1849'' and ''programcek.sh.e1849'' files, respectively.&lt;br /&gt;
&lt;br /&gt;
You can find additional information in the [[Media:PBSProUG_5_4_0.pdf|users manual]].&lt;/div&gt;</summary>
		<author><name>193.2.4.4</name></author>	</entry>

	</feed>