<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>script Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/script/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Declaring Variable and Re-declaring Variables in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 13:01:42 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6952</guid>

					<description><![CDATA[<p>Declaring Variable Declaring Variable Rule Variable can contain a combination of letters, digits, underscores ( _ ), and dollar signs [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/">Declaring Variable and Re-declaring Variables in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Declaring Variable</h2>



<p class="wp-block-paragraph">Declaring Variable Rule</p>



<ul class="wp-block-list"><li><strong>Variable can contain a combination of letters, digits, underscores ( _ ), and</strong></li><li><strong>dollar signs ( $ ).</strong></li><li><strong>Must begin with a letter A-Z or a-z or underscore or dollar sign</strong></li><li><strong>A variable name cannot start with a number</strong></li><li><strong>Must not contain any space characters</strong></li><li><strong>JavaScript is case-sensitive</strong></li><li><strong>Can‟t use reserved keywords</strong></li></ul>



<h2 class="wp-block-heading">Declaring Variable</h2>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="688" height="213" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-1.png" alt="" class="wp-image-6956" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-1.png 688w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-1-300x93.png 300w" sizes="(max-width: 688px) 100vw, 688px" /></figure>



<p class="wp-block-paragraph">A variable declared without a value will have the value undefined</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="768" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript.jpg" alt="" class="wp-image-6963" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript.jpg 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript-300x225.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript-768x576.jpg 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/">Declaring Variable and Re-declaring Variables in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Javascript Tags</title>
		<link>https://www.scmgalaxy.com/tutorials/javascript-tags/</link>
					<comments>https://www.scmgalaxy.com/tutorials/javascript-tags/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 19 Jul 2021 13:03:27 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Variables]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6595</guid>

					<description><![CDATA[<p>&#60;script> &#8211; Opening Script Tag. src &#8211; It&#8217;s an attribute of the script. name.js &#8211; This is our script file, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-tags/">Javascript Tags</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;script type=&quot;text/javascript&quot;&gt;
	document.write(&quot;Hello DevOpSchool&quot;);  
&amp;lt;/script&gt;
</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;script src=&quot;devops.js&quot; type=&quot;text/javascript&quot;&gt;&amp;lt;/script&gt;
</pre></div>


<p class="wp-block-paragraph"><strong>&lt;script></strong> <strong>&#8211;</strong>  Opening Script Tag.</p>



<p class="wp-block-paragraph"><strong>src</strong> <strong>&#8211;</strong> It&#8217;s an attribute of the script.</p>



<p class="wp-block-paragraph"><strong>name.js &#8211;</strong> This is our script file, which we created. The code of javascript is written inside devops.js.<br>In which DevOps is the file name, .js is the extension. Javascript has an extension of .js</p>



<p class="wp-block-paragraph"><strong>Type &#8211;</strong> This is also an attribute of the script tag, it tells the browser that it is javascript. Now it is not necessary to write it, you can leave it if you want.</p>



<p class="wp-block-paragraph"><strong>Text/javascript &#8211;</strong> It defines what type these documents are.</p>



<p class="wp-block-paragraph"><strong>document.write(&#8220;Hello World&#8221;); &#8211;</strong> This is a function which is displaying the data.</p>



<p class="wp-block-paragraph"><strong>&lt;/script> &#8211;</strong> Closing Script tag.</p>



<h2 class="wp-block-heading">How to link more than one External?</h2>



<p class="wp-block-paragraph">You can link more than one JavaScript file to a single document. Just need to write different script tags for that.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;script src=&quot;devops1.js&quot; type=&quot;text/javascript&quot;&gt;&amp;lt;/script&gt;
&amp;lt;script src=&quot;devops2.js&quot; type=&quot;text/javascript&quot;&gt;&amp;lt;/script&gt;
&amp;lt;script src=&quot;devops2.js&quot; type=&quot;text/javascript&quot;&gt;&amp;lt;/script&gt;
&amp;lt;script src=&quot;devops3.js&quot; type=&quot;text/javascript&quot;&gt;&amp;lt;/script&gt;
</pre></div>


<h2 class="wp-block-heading">How to use inline and External together in javascript?</h2>



<p class="wp-block-paragraph">No, both cannot be written together. But both inline and external can be written separately.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;!DOCTYPR&gt;
&amp;lt;HTML&gt;
    &amp;lt;head&gt;&amp;lt;title&gt;&amp;lt;/title&gt;
        
            
        &amp;lt;/script&gt;
    &amp;lt;/head&gt;
    &amp;lt;body&gt;
        &amp;lt;h1&gt;I am Heading&amp;lt;/h1&gt;
        &amp;lt;p&gt;I am Paragharph&amp;lt;/p&gt;
        
        &amp;lt;script type=&quot;text/javascript&quot;&gt;
			document.write(&quot;Hello Vijay&quot;);  
		&amp;lt;/script&gt;
        &amp;lt;br&gt;
        
        &amp;lt;script src=&quot;devops.js&quot; type=&quot;text/javascript&quot;&gt;&amp;lt;/script&gt;
        
    &amp;lt;/body&gt;
&amp;lt;/html&gt;

</pre></div>


<h2 class="wp-block-heading">Write funtion</h2>



<p class="wp-block-paragraph">This function is used to write arbitrary HTML and content into the page. If we use this function after an HTML document is fully loaded, will delete all existing HTML. It is used only for testing purposes.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Ex:-    document.write(&quot;Hello world&quot;);
	    document.write(variable);
	    document.write(4+2);
	    document.write(&quot;hello world . &amp;lt;br&gt;&quot;);
	    document.write(&quot;hello world . &amp;lt;br&gt;&quot; + variable +&quot;&amp;lt;br&gt;&quot;);
</pre></div>


<h2 class="wp-block-heading">Alert function in JavaScript</h2>



<p class="wp-block-paragraph">The data that will be displayed in it will be in the dialog box. You forcefully want to see this thing, then only this work will be done. In that case, you use a window. alert</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Ex:- window.alert(&quot;Hello World&quot;);
	 window.alert(variable);
	 window.alert(4+2);
	 window.alert(&quot;hello world&quot;+ variable);
</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;html&gt;
	&amp;lt;head&gt;&amp;lt;title&gt;Hello JS&amp;lt;/title&gt;
		&amp;lt;script&gt;
			window.alert(&quot;Hello&quot;);
		&amp;lt;/script&gt;
	&amp;lt;/head&gt;
	&amp;lt;/body&gt;
`		&amp;lt;h1&gt;I am heading&amp;lt;/h1&gt;
		&amp;lt;p&gt;I am Paraghraph&amp;lt;/p&gt;
		
		&amp;lt;script src=&quot;name.js&quot; type=&quot;text/javascript&quot;&gt;
		&amp;lt;/script&gt;
	&amp;lt;/body&gt;
&amp;lt;/html&gt;
</pre></div>


<h2 class="wp-block-heading">Identifier</h2>



<p class="wp-block-paragraph">An identifier is a name having a few letters, numbers, and special characters _(underscore). It is used to identify a variable, function, symbolic constants, and so on.</p>



<p class="wp-block-paragraph">Ex:- X2<br>      PI<br>      Sigma<br>      Matadd</p>



<h2 class="wp-block-heading">Veriable in JavaScript</h2>



<p class="wp-block-paragraph">Variable can be any name, in which a combination of letters, numbers, and special characters can be written _()(underscore) and $(dollar). It is not necessary that there should be only a combination, it can only be a letter.</p>



<p class="wp-block-paragraph">Ex:- c, fact, b33, total_amount ect.</p>



<h2 class="wp-block-heading">Rules of Veriable in JavaScript</h2>



<ul class="wp-block-list"><li><strong>Variable can contain a combination of letters, digits, _()(underscore), and dollar signs($).</strong></li><li><strong>Must begin with a letter A-Z or a-z or underscore or dollar sign.</strong></li><li><strong>A variable name cannot start a number.</strong></li><li><strong>Must not contain any space characters.</strong></li><li><strong>JavaScript is case-sensitive</strong></li><li><strong>Can&#8217;t use reserved keywords.</strong></li></ul>



<h2 class="wp-block-heading">Reserved Keyword in javascript</h2>



<p class="wp-block-paragraph"><strong>Keyword or Reserved words</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>var</td><td>delete</td><td>for</td><td>let</td><td>brack</td></tr><tr><td>super</td><td>void</td><td>case</td><td>do</td><td>static</td></tr><tr><td>function</td><td>new</td><td>switch</td><td>while</td><td>interface</td></tr><tr><td>catch</td><td>else</td><td>if</td><td>package</td><td>finally</td></tr><tr><td>this</td><td>with</td><td>class</td><td>enum</td><td>default</td></tr><tr><td>implements</td><td>private</td><td>throw</td><td>tiled</td><td>typeof</td></tr><tr><td>const</td><td>export</td><td>import</td><td>protected</td><td>return</td></tr><tr><td>true</td><td>continue</td><td>extends</td><td>in</td><td></td></tr><tr><td>instanceof</td><td></td><td></td><td></td><td></td></tr><tr><td>public</td><td>try</td><td>debugger</td><td>false</td><td></td></tr></tbody></table></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-tags/">Javascript Tags</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/javascript-tags/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to execute grovvy script remotely on Jenkins server?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-execute-grovvy-script-remotely-on-jenkins-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-execute-grovvy-script-remotely-on-jenkins-server/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 17 May 2018 04:17:02 +0000</pubDate>
				<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[grovvy]]></category>
		<category><![CDATA[Remotely]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4964</guid>

					<description><![CDATA[<p>A Jenkins Admin can execute groovy scripts remotely by sending an HTTP POST request to /script/ url or /scriptText/. curl [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-execute-grovvy-script-remotely-on-jenkins-server/">How to execute grovvy script remotely on Jenkins server?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-4975" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/jenkins-server-and-groovy.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/jenkins-server-and-groovy.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/jenkins-server-and-groovy-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>A Jenkins Admin can execute groovy scripts remotely by sending an HTTP POST request to /script/ url or /scriptText/.</p>
<p><strong>curl example via bash</strong></p>
<pre class="brush: plain; title: ; notranslate">
curl -d &quot;script=&amp;lt;your_script_here&amp;gt;&quot; https://jenkins/script
# or to get output as a plain text result (no HTML)
curl -d &quot;script=&amp;lt;your_script_here&amp;gt;&quot; https://jenkins/scriptText
</pre>
<p><strong>curl submitting groovy file via bash</strong></p>
<pre class="brush: plain; title: ; notranslate">
curl --data-urlencode &quot;script=$(&amp;lt; ./somescript.groovy)&quot; https://jenkins/scriptText
</pre>
<p><strong>curl submitting groovy file providing username and password via bash</strong></p>
<pre class="brush: plain; title: ; notranslate">
curl --user 'username:password' --data-urlencode &quot;script=$(&amp;lt; ./somescript.groovy)&quot; https://jenkins/scriptText
</pre>
<p><strong>Jenkins CLI offers the possibility to execute groovy scripts remotely using groovy command or execute groovy interactivelly via groovysh.</strong></p>
<pre class="brush: plain; title: ; notranslate">
java -jar jenkins-cli.jar -noCertificateCheck -s https://10.0.0.91/ groovy disableEnableJobsMatchingPattern.groovy jobPattern=build_git_auto disableOrEnable=disable --username 12345 --password banana
</pre>
<p><strong>Reference</strong><br />
https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console</p>
<p><iframe loading="lazy" title="Jenkins World 2017: Mastering the Jenkins Script Console" width="900" height="506" src="https://www.youtube.com/embed/qaUPESDcsGg?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<p><iframe loading="lazy" title="Jenkins Area Meetup - Hacking on Jenkins Internals - Jenkins Script Console" width="900" height="675" src="https://www.youtube.com/embed/T1x2kCGRY1w?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-execute-grovvy-script-remotely-on-jenkins-server/">How to execute grovvy script remotely on Jenkins server?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-execute-grovvy-script-remotely-on-jenkins-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Expect script for Windows</title>
		<link>https://www.scmgalaxy.com/tutorials/expect-script-for-windows/</link>
					<comments>https://www.scmgalaxy.com/tutorials/expect-script-for-windows/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 09:19:06 +0000</pubDate>
				<category><![CDATA[source code analysis tools]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2647</guid>

					<description><![CDATA[<p>vijayakumar.cm created the topic: Expect script for Windows Hi, I&#8217;m executing one expect script from windows to do automatic FTP [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/expect-script-for-windows/">Expect script for Windows</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>vijayakumar.cm created the topic: Expect script for Windows</strong><br />
Hi,</p>
<p>I&#8217;m executing one expect script from windows to do automatic FTP to Unix server.</p>
<p>Error msg:-<br />
D:\expect>tclsh85 telnet.exp<br />
Connecting to 10.118.215.14 to upload the latest build.<br />
invalid command name &#8220;spawn&#8221;<br />
while executing<br />
&#8220;spawn ftp $hostname&#8221;<br />
(file &#8220;telnet.exp&#8221; line 17)</p>
<p>do anyone have any idea about this error/expect script for windows?</p>
<p>Regards,<br />
Vijay</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/expect-script-for-windows/">Expect script for Windows</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/expect-script-for-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ant script with EMMA code-coverage</title>
		<link>https://www.scmgalaxy.com/tutorials/ant-script-with-emma-code-coverage/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ant-script-with-emma-code-coverage/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 08:06:17 +0000</pubDate>
				<category><![CDATA[test coverage tools]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2611</guid>

					<description><![CDATA[<p>scmuser created the topic: Ant script with EMMA code-coverage Ant script with EMMA code-coverage so it can find runtime coverage [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-script-with-emma-code-coverage/">Ant script with EMMA code-coverage</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Ant script with EMMA code-coverage</strong></p>
<p>Ant script with EMMA code-coverage so it can find runtime coverage data?</p>
<pre class="brush: css; title: ; notranslate">
&lt;taskdef resource=&quot;emma_ant.properties&quot;&gt;
    &lt;classpath&gt;            
        &lt;pathelement location=&quot;lib/emma.jar&quot; /&gt;
        &lt;pathelement location=&quot;lib/emma_ant.jar&quot; /&gt;
    &lt;/classpath&gt;
&lt;/taskdef&gt;
 
&lt;target name=&quot;compile&quot;&gt;
    &lt;mkdir dir=&quot;build&quot;/&gt; &lt;!-- vytvori adresar build --&gt;
    &lt;mkdir dir=&quot;build/classes&quot;/&gt;
    &lt;mkdir dir=&quot;build/test&quot;/&gt;
    &lt;javac destdir=&quot;build/classes&quot; srcdir=&quot;src&quot; debug=&quot;true&quot; /&gt; &lt;!-- prelozi zdrojove kody --&gt;
    &lt;javac destdir=&quot;build/test&quot; srcdir=&quot;test&quot;&gt; &lt;!-- prelozi testy --&gt;
        &lt;classpath&gt; &lt;!-- pro prelozeni testu je potreba junit a prelozena aplikace --&gt;
            &lt;pathelement location=&quot;lib/junit-4.5.jar&quot; /&gt;
            &lt;pathelement location=&quot;build/classes&quot; /&gt;
        &lt;/classpath&gt;
    &lt;/javac&gt;
&lt;/target&gt;
 
&lt;target name=&quot;build&quot; depends=&quot;compile&quot;&gt;
    &lt;jar destfile=&quot;tetris.jar&quot; basedir=&quot;build/classes&quot;&gt; &lt;!-- zabali aplikaci do jaru --&gt;
        &lt;manifest&gt;
            &lt;attribute name=&quot;Main-Class&quot; value=&quot;tetris.Main&quot;/&gt;
            &lt;attribute name=&quot;Class-Path&quot; value=&quot;lib/mysql-connector-java-5.1.6-bin.jar lib/derbyclient.jar&quot;/&gt;
        &lt;/manifest&gt;
    &lt;/jar&gt;
&lt;/target&gt;
 
&lt;target name=&quot;jar&quot; depends=&quot;build&quot;&gt;&lt;/target&gt;
 
&lt;target name=&quot;run&quot; depends=&quot;compile&quot;&gt;
    &lt;java classname=&quot;tetris.Main&quot; classpath=&quot;build/classes&quot;&gt;  &lt;!-- spusti aplikaci --&gt;
        &lt;classpath&gt;
            &lt;pathelement location=&quot;lib/mysql-connector-java-5.1.6-bin.jar&quot; /&gt;
            &lt;pathelement location=&quot;lib/derbyclient.jar&quot; /&gt;
        &lt;/classpath&gt;
    &lt;/java&gt;
&lt;/target&gt;
 
&lt;target name=&quot;instrument&quot; depends=&quot;compile&quot;&gt;
    &lt;mkdir dir=&quot;build/instrumented&quot;/&gt;
 
    &lt;emma verbosity=&quot;verbose&quot;&gt; &lt;!-- vytvori tridy upravene pro sledovani coverage --&gt;
        &lt;instr instrpath=&quot;build/classes&quot;
                destdir=&quot;build/instrumented&quot;
                metadatafile=&quot;build/metadata.emma&quot;
                merge=&quot;true&quot; /&gt;
    &lt;/emma&gt;
&lt;/target&gt;
 
&lt;target name=&quot;test&quot; depends=&quot;instrument&quot;&gt;
    &lt;mkdir dir=&quot;reports&quot; /&gt;
    &lt;mkdir dir=&quot;reports/junit&quot; /&gt;
 
    &lt;junit printsummary=&quot;yes&quot; haltonfailure=&quot;no&quot; fork=&quot;true&quot;&gt; &lt;!-- pusti JUnit testy --&gt;
        &lt;classpath&gt;
            &lt;pathelement location=&quot;build/test&quot; /&gt;
            &lt;pathelement location=&quot;build/classes&quot; /&gt;
            &lt;pathelement location=&quot;build/instrumented&quot; /&gt;
            &lt;pathelement location=&quot;lib/junit-4.5.jar&quot; /&gt;
            &lt;pathelement location=&quot;lib/emma.jar&quot; /&gt;
            &lt;pathelement location=&quot;lib/emma_ant.jar&quot; /&gt;
        &lt;/classpath&gt;
 
        &lt;formatter usefile=&quot;false&quot; type=&quot;brief&quot; /&gt;
        &lt;formatter type=&quot;plain&quot;/&gt;
 
        &lt;batchtest fork=&quot;yes&quot; todir=&quot;reports/junit&quot;&gt; &lt;!-- reporty budou v adresari reports/junit --&gt;
            &lt;fileset dir=&quot;test&quot;&gt;
                &lt;include name=&quot;**/TetrisSuite.java&quot;/&gt;
            &lt;/fileset&gt;
        &lt;/batchtest&gt;
        &lt;jvmarg value=&quot;-Demma.coverage.out.file=build/coverage.emma&quot;/&gt;
        &lt;jvmarg value=&quot;-Demma.coverage.out.merge=true&quot; /&gt;
    &lt;/junit&gt;
 
    &lt;emma enabled=&quot;true&quot; verbosity=&quot;verbose&quot;&gt; &lt;!-- vygeneruje report emmy --&gt;
        &lt;report sourcepath=&quot;src&quot;&gt;
            &lt;fileset dir=&quot;build&quot; includes=&quot;*.emma&quot; /&gt;
 
            &lt;html outfile=&quot;reports/coverage.html&quot; /&gt;
        &lt;/report&gt;
    &lt;/emma&gt;
&lt;/target&gt;
 
&lt;target name=&quot;clean&quot;&gt;
    &lt;delete dir=&quot;build&quot;/&gt; &lt;!-- smaze adresar build --&gt;
    &lt;delete dir=&quot;reports&quot;/&gt;
    &lt;delete file=&quot;tetris.jar&quot;/&gt;
&lt;/target&gt;
</pre>
<p>processing input file [&#8230;NetBeansProjects/Tetris3/build/metadata.emma] &#8230;<br />
loaded 25 metadata entries<br />
1 file(s) read and merged in 5 ms<br />
nothing to do: no runtime coverage data found in any of the data files</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-script-with-emma-code-coverage/">Ant script with EMMA code-coverage</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ant-script-with-emma-code-coverage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Script for time stamp update.</title>
		<link>https://www.scmgalaxy.com/tutorials/script-for-time-stamp-update/</link>
					<comments>https://www.scmgalaxy.com/tutorials/script-for-time-stamp-update/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 05:21:45 +0000</pubDate>
				<category><![CDATA[others scripting language]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2562</guid>

					<description><![CDATA[<p>scmuser created the topic: Script for time stamp update. write a batch Script for time stamp update? sgadmin replied the [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/script-for-time-stamp-update/">Script for time stamp update.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Script for time stamp update.</strong></p>
<p>write a batch Script for time stamp update?</p>
<p><strong>sgadmin replied the topic: Re:Script for time stamp update.</strong></p>
<pre class="brush: css; title: ; notranslate">
data=data.txt
tfile=`cat data.txt |wc -l`


</pre>
<p>for (( i = 2 ; i &lt;= tfile ; i++ ))<br />
do</p>
<p>mfile=`cat $data |head -$i|tail -1|tr -s &#8221; &#8221; &#8221; &#8221; |cut -f8 -d&#8221; &#8220;`<br />
mdate=`grep -i $mfile $data|tr -s &#8221; &#8221; &#8221; &#8220;|cut -f6,7 -d&#8221; &#8220;`<br />
myy=`echo $mdate |cut -b 1-4`<br />
mon=`echo $mdate |cut -b 6-7`<br />
mdd=`echo $mdate |cut -b 9-10`<br />
mhh=`echo $mdate |cut -b 12-13`<br />
mmin=`echo $mdate |cut -b 15-16`<br />
mresult=`echo $myy$mon$mdd$mhh$mmin`<br />
touch -t $mresult $mfile</p>
<p>done</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/script-for-time-stamp-update/">Script for time stamp update.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/script-for-time-stamp-update/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Function in vb script</title>
		<link>https://www.scmgalaxy.com/tutorials/function-in-vb-script/</link>
					<comments>https://www.scmgalaxy.com/tutorials/function-in-vb-script/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 05:04:08 +0000</pubDate>
				<category><![CDATA[others scripting language]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2543</guid>

					<description><![CDATA[<p>rajani created the topic: function in vb script Develop a function that accepts a string of names separated by comma [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/function-in-vb-script/">Function in vb script</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajani created the topic: function in vb script</strong></p>
<p>Develop a function that accepts a string of names separated by comma add those names in an array and display the names added in the array.</p>
<p><strong>rajeshkumar replied the topic: function in vb script</strong></p>
<p>Welcome to board&#8230;.</p>
<p>try following snippet&#8230;</p>
<p><code>Sub Funstr("str1", "str2")</p>
<p>    a=Array(str1,str2)<br />
    document.write(a(0))<br />
     document.write(a(1))<br />
End Sub</code></p>
<p>I would recommend you going through this url as well to learn more about it&#8230;&#8230;</p>
<p><a href="http://www.functionx.com/vbscript/Lesson06.htm">www.functionx.com/vbscript/Lesson06.htm</a></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>rajani replied the topic: function in vb script</strong></p>
<p>it won&#8217;t work<br />
i have write<br />
&#8220;Develop a function that accepts a string of names separated by comma (example given below), add those names in an array and display the names added in the array&#8221;</p>
<p>Example: rajani; Disha; Dhara; Hunny ;moon<br />
without using split function<br />
can i use mid function</p>
<p><strong>rajani replied the topic: function in vb script</strong></p>
<p>i am able to display name but with comma<br />
Dim fruits()<br />
ReDim fruits(100)<br />
nofruits=0<br />
&#8216;we do not know how many fruit names we are going to enter and so, we have declared the array size as 100<br />
For i=0 to 100<br />
fruits(i)=inputbox(&#8220;Enter the name of a fruit separated by comma&#8221;)<br />
ans = MsgBox(&#8220;Do you want to continue&#8221;, vbYesNo, &#8220;Confirm Continuation&#8230;&#8221;)<br />
If ans=vbNo Then<br />
Exit For<br />
End If<br />
nofruits=nofruits+1<br />
Next<br />
ReDim Preserve fruits(nofruits)<br />
&#8216;Redim keyword resets the number of elements that can be accommodated in the array.</p>
<p>fruitnames=&#8221;&#8221;</p>
<p>For each fruit in fruits<br />
&#8216;Using For Each Next we have displayed all the names of the fruits which was entered and kept in fruits array.<br />
&#8216;For Each Next extracts the fruit names stored in the array and msgbox displays the output.</p>
<p>fruitnames=fruitnames&#038;fruit&#038;vbnewline<br />
Next</p>
<p>msgbox fruitnames</p>
<p><strong>rajani replied the topic: function in vb script</strong></p>
<p>any suggestion</p>
<p><strong>rajani replied the topic: function in vb script</strong></p>
<p>dim Array, Str1,X<br />
Str1 = &#8220;Neha; Swati; Disha; Sonya; Dhara&#8221;<br />
Array = split(Str1,&#8221;;&#8221;)<br />
for each x in Array<br />
message = message &#038; x &#038; vbCRLF<br />
next<br />
msgbox message</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/function-in-vb-script/">Function in vb script</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/function-in-vb-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to read a .properties file through script</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-read-a-properties-file-through-script/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-read-a-properties-file-through-script/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:35:42 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2407</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: How to read a .properties file through script The easy way to do it is to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-read-a-properties-file-through-script/">How to read a .properties file through script</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: How to read a .properties file through script</strong></p>
<p>The easy way to do it is to note that a Java properties file has the same format as a basic shell script.</p>
<p>However, there&#8217;s a trick to it. If you just run the properties file like so:</p>
<p>sh appl.properties</p>
<p>The assignments will be made at the sub-level, then discarded when the properties file (script) ends execution.</p>
<p>So to get the properties in a calling script, you need to use the &#8220;source&#8221; command:</p>
<p>. appl.properties</p>
<p>Note that the space after the initial dot is very important!</p>
<p>To reference shell variable assignments, you use the &#8220;$&#8221; to indicate variable substitution.</p>
<p>So, to put it all together:</p>
<p><code># #!/bin/sh<br />
# # Sample shell script to read and act on properties<br />
#<br />
# # source the properties:<br />
# . appl.properties<br />
#<br />
# # Then reference then:<br />
# echo "My name is $name and I'm $age years old."</code></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-read-a-properties-file-through-script/">How to read a .properties file through script</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-read-a-properties-file-through-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to perl script to extract data</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-perl-script-to-extract-data/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-perl-script-to-extract-data/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:03:51 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2387</guid>

					<description><![CDATA[<p>mnanjala created the topic: how to perl script to extract data Hi All, Below are the contents in the test.txt [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-perl-script-to-extract-data/">How to perl script to extract data</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>mnanjala created the topic: how to perl script to extract data</strong></p>
<p>Hi All,</p>
<p>Below are the contents in the test.txt file</p>
<p>id	name	adress<br />
1	rajesh pune<br />
2	pravin	puttur<br />
3	bani	banglore</p>
<p>Now can anybody write perl script to extract data based on id ?</p>
<p>Example if id is 1 it should print rajesh from pune and so on</p>
<p>Thanks<br />
Pravin</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-perl-script-to-extract-data/">How to perl script to extract data</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-perl-script-to-extract-data/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>tty terminals related script??</title>
		<link>https://www.scmgalaxy.com/tutorials/tty-terminals-related-script/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tty-terminals-related-script/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:28:19 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2327</guid>

					<description><![CDATA[<p>scmuser created the topic: tty terminals related script?? Develop script logic that allows only romeo and henry to execute a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tty-terminals-related-script/">tty terminals related script??</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: tty terminals related script??</strong><br />
Develop script logic that allows only romeo and henry to execute a program, and only from the terminals tty05 and tty06</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tty-terminals-related-script/">tty terminals related script??</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tty-terminals-related-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Character validation in shell script?</title>
		<link>https://www.scmgalaxy.com/tutorials/character-validation-in-shell-script/</link>
					<comments>https://www.scmgalaxy.com/tutorials/character-validation-in-shell-script/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:23:16 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2321</guid>

					<description><![CDATA[<p>scmuser created the topic: character validation in shell script? Write shell code to accept a string from the terminal, and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/character-validation-in-shell-script/">Character validation in shell script?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: character validation in shell script?</strong><br />
Write shell code to accept a string from the terminal, and echo a suitable message if it does not have at least 10 characters using (i) case (ii) expr.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/character-validation-in-shell-script/">Character validation in shell script?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/character-validation-in-shell-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Make sure script is running using korn shell</title>
		<link>https://www.scmgalaxy.com/tutorials/make-sure-script-is-running-using-korn-shell/</link>
					<comments>https://www.scmgalaxy.com/tutorials/make-sure-script-is-running-using-korn-shell/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:18:43 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2315</guid>

					<description><![CDATA[<p>scmuser created the topic: Make sure script is running using korn shell If you have developed a script using the [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/make-sure-script-is-running-using-korn-shell/">Make sure script is running using korn shell</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Make sure script is running using korn shell</strong></p>
<p>If you have developed a script using the Korn shell, how will you make sure the script will use that shell even if login shell is different?</p>
<p><strong>renjith replied the topic: Re: Make sure script is running using korn shell</strong></p>
<p>begin shell script with Shabang/interpreter line</p>
<p>#!/bin/ksh</p>
<p><strong>rajeshkumar replied the topic: Re: Make sure script is running using korn shell</strong></p>
<p>There are 2 ways to run a script with specific shell no matter if login shell is different..</p>
<p>Method 1:<br />
Use following before any shell script&#8230;<br />
#!/bin/ksh</p>
<p>Method 2:</p>
<p>Execute shell script with ksh <script-name><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/make-sure-script-is-running-using-korn-shell/">Make sure script is running using korn shell</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/make-sure-script-is-running-using-korn-shell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Identical file validation using shell script?</title>
		<link>https://www.scmgalaxy.com/tutorials/identical-file-validation-using-shell-script/</link>
					<comments>https://www.scmgalaxy.com/tutorials/identical-file-validation-using-shell-script/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:16:02 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2313</guid>

					<description><![CDATA[<p>scmuser created the topic: identical file validation using shell script? Device a script that accepts two directory names, bar1 and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/identical-file-validation-using-shell-script/">Identical file validation using shell script?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: identical file validation using shell script?</strong></p>
<p>Device a script that accepts two directory names, bar1 and bar2, and deletes those files in bar2 which are identical to their namesakes in bar1.</p>
<p><strong>rajeshkumar replied the topic: Re: identical file validation using shell script?</strong></p>
<p>Solution:</p>
<p><code>#!/bin/bash<br />
cd $1<br />
for file in * ; do<br />
if [ -f ../$2/$file ] ; then<br />
        cmp $file ../$2/$file >/dev/null 2>/dev/null && rm ../$2/$file<br />
fi<br />
done</code></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/identical-file-validation-using-shell-script/">Identical file validation using shell script?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/identical-file-validation-using-shell-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Execute batch script using cygwin</title>
		<link>https://www.scmgalaxy.com/tutorials/execute-batch-script-using-cygwin/</link>
					<comments>https://www.scmgalaxy.com/tutorials/execute-batch-script-using-cygwin/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 06:19:11 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2280</guid>

					<description><![CDATA[<p>scmuser created the topic: execute batch script using cygwin How to execute batch script using cygwin? any help or any [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/execute-batch-script-using-cygwin/">Execute batch script using cygwin</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: execute batch script using cygwin</strong><br />
How to execute batch script using cygwin?</p>
<p>any help or any suggestion on this??</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/execute-batch-script-using-cygwin/">Execute batch script using cygwin</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/execute-batch-script-using-cygwin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell script that will add two nos, which are supplied as command line</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos-which-are-supplied-as-command-line/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos-which-are-supplied-as-command-line/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 06:17:56 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2278</guid>

					<description><![CDATA[<p>scmjobs created the topic: Shell script that will add two nos, which are supplied as command line How to write [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos-which-are-supplied-as-command-line/">Shell script that will add two nos, which are supplied as command line</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmjobs created the topic: Shell script that will add two nos, which are supplied as command line</strong><br />
How to write shell script that will add two nos, which are supplied as command line argument, and if this two nos are not given show error and its usage</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos-which-are-supplied-as-command-line/">Shell script that will add two nos, which are supplied as command line</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos-which-are-supplied-as-command-line/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Write Script, using case statement to perform basic math operation</title>
		<link>https://www.scmgalaxy.com/tutorials/write-script-using-case-statement-to-perform-basic-math-operation/</link>
					<comments>https://www.scmgalaxy.com/tutorials/write-script-using-case-statement-to-perform-basic-math-operation/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 06:15:30 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2274</guid>

					<description><![CDATA[<p>scmjobs created the topic: Write Script, using case statement to perform basic math operation Write Script, using case statement to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/write-script-using-case-statement-to-perform-basic-math-operation/">Write Script, using case statement to perform basic math operation</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmjobs created the topic: Write Script, using case statement to perform basic math operation</strong></p>
<p>Write Script, using case statement to perform basic math operation as<br />
follows<br />
+ addition<br />
&#8211; subtraction<br />
x multiplication<br />
/ division<br />
The name of script must be &#8216;q4&#8217; which works as follows<br />
$ ./q4 20 / 3, Also check for sufficient command line arguments</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/write-script-using-case-statement-to-perform-basic-math-operation/">Write Script, using case statement to perform basic math operation</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/write-script-using-case-statement-to-perform-basic-math-operation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Run php script using cronjob / crontab</title>
		<link>https://www.scmgalaxy.com/tutorials/run-php-script-using-cronjob-crontab/</link>
					<comments>https://www.scmgalaxy.com/tutorials/run-php-script-using-cronjob-crontab/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 06:08:16 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2268</guid>

					<description><![CDATA[<p>scmuser created the topic: Run php script using cronjob / crontab How can i Run php script using cronjob / [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run-php-script-using-cronjob-crontab/">Run php script using cronjob / crontab</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Run php script using cronjob / crontab</strong><br />
How can i Run php script using cronjob / crontab???</p>
<p>Any ideA?</p>
<p><strong>rajeshkumar replied the topic: Re: Run php script using cronjob / crontab</strong><br />
If your PHP scripts do have executable permissions like 755 or -rwxr-xr-x and they have one of the PHP filename extensions above, then you do not need to specify the php interpreter in the command portion of your cron line, like this:</p>
<p>5 17 * * 2 /myscript.php</p>
<p>The above cron would run myscript.php in your home directory every Tuesday at 5:05PM.</p>
<p>some more example&#8230;</p>
<p>28 14 * * * /usr/local/bin/php -q /myscript.phtml<br />
6 3 20 4 * /usr/local/bin/php -q /htdocs/www/x.php<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run-php-script-using-cronjob-crontab/">Run php script using cronjob / crontab</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/run-php-script-using-cronjob-crontab/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell Script that will add two nos</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 06:03:46 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2264</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Shell script that will add two nos How to write shell script that will add two [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos/">Shell Script that will add two nos</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Shell script that will add two nos</strong><br />
How to write shell script that will add two nos, which are supplied as command line argument, and if this two nos are not given show error and its usage</p>
<p><code><br />
#!/bin/bash<br />
#<br />
# Linux Shell Scripting Tutorial 1.05r3, Summer-2002<br />
#<br />
# Written by Vivek G. Gite <vivek@nixcraft.com><br />
#<br />
# Latest version can be found at www.nixcraft.com/<br />
#<br />
# Q1.Script to sum to nos<br />
#</p>
<p>if [ $# -ne 2 ]<br />
then<br />
echo "Usage - $0 x y"<br />
echo " Where x and y are two nos for which I will print sum"<br />
exit 1<br />
fi<br />
echo "Sum of $1 and $2 is `expr $1 + $2`"<br />
#<br />
# ./ch.sh: vivek-tech.com to nixcraft.com referance converted using this tool<br />
# See the tool at<a href="http://www.nixcraft.com/uniqlinuxfeatures/tools/"> www.nixcraft.com/uniqlinuxfeatures/tools/</a><br />
#</p>
<p></code><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos/">Shell Script that will add two nos</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-that-will-add-two-nos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Script to find out biggest number from given three nos</title>
		<link>https://www.scmgalaxy.com/tutorials/script-to-find-out-biggest-number-from-given-three-nos/</link>
					<comments>https://www.scmgalaxy.com/tutorials/script-to-find-out-biggest-number-from-given-three-nos/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 06:01:30 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2262</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Script to find out biggest number from given three nos Write Script to find out biggest [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/script-to-find-out-biggest-number-from-given-three-nos/">Script to find out biggest number from given three nos</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Script to find out biggest number from given three nos</strong></p>
<p>Write Script to find out biggest number from given three nos. Nos are supplies as command line argument. Print error if sufficient arguments are not supplied.</p>
<p><code><br />
#!/bin/bash<br />
#<br />
# Linux Shell Scripting Tutorial 1.05r3, Summer-2002<br />
#<br />
# Written by Vivek G. Gite <vivek@nixcraft.com><br />
#<br />
# Latest version can be found at www.nixcraft.com/<br />
#<br />
# Q2. Script to find out bigest number<br />
#<br />
# Algo:<br />
# 1) START: Take three nos as n1,n2,n3.<br />
# 2) Is n1 is greater than n2 and n3, if yes<br />
# print n1 is bigest no goto step 5, otherwise goto next step<br />
# 3) Is n2 is greater than n1 and n3, if yes<br />
# print n2 is bigest no goto step 5, otherwise goto next step<br />
# 4) Is n3 is greater than n1 and n2, if yes<br />
# print n3 is bigest no goto step 5, otherwise goto next step<br />
# 5) END<br />
#<br />
#</p>
<p>if [ $# -ne 3 ]<br />
then<br />
echo "$0: number1 number2 number3 are not given" >&2<br />
exit 1<br />
fi<br />
n1=$1<br />
n2=$2<br />
n3=$3<br />
if [ $n1 -gt $n2 ] && [ $n1 -gt $n3 ]<br />
then<br />
echo "$n1 is Bigest number"<br />
elif [ $n2 -gt $n1 ] && [ $n2 -gt $n3 ]<br />
then<br />
echo "$n2 is Bigest number"<br />
elif [ $n3 -gt $n1 ] && [ $n3 -gt $n2 ]<br />
then<br />
echo "$n3 is Bigest number"<br />
elif [ $1 -eq $2 ] && [ $1 -eq $3 ] && [ $2 -eq $3 ]<br />
then<br />
echo "All the three numbers are equal"<br />
else<br />
echo "I can not figure out which number is biger"<br />
fi</p>
<p>#<br />
# ./ch.sh: vivek-tech.com to nixcraft.com referance converted using this tool<br />
# See the tool at www.nixcraft.com/uniqlinuxfeatures/tools/<br />
#</p>
<p></code><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/script-to-find-out-biggest-number-from-given-three-nos/">Script to find out biggest number from given three nos</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/script-to-find-out-biggest-number-from-given-three-nos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Write script to print nos as 5,4,3,2,1 using while loop</title>
		<link>https://www.scmgalaxy.com/tutorials/write-script-to-print-nos-as-54321-using-while-loop/</link>
					<comments>https://www.scmgalaxy.com/tutorials/write-script-to-print-nos-as-54321-using-while-loop/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 05:59:38 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2259</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Write script to print nos as 5,4,3,2,1 using while loop Write script to print nos as [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/write-script-to-print-nos-as-54321-using-while-loop/">Write script to print nos as 5,4,3,2,1 using while loop</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Write script to print nos as 5,4,3,2,1 using while loop</strong></p>
<p>Write script to print nos as 5,4,3,2,1 using while loop.</p>
<p><code>#!/bin/bash<br />
#<br />
# Linux Shell Scripting Tutorial 1.05r3, Summer-2002<br />
#<br />
# Written by Vivek G. Gite <vivek@nixcraft.com><br />
#<br />
# Latest version can be found at http://www.nixcraft.com/<br />
#<br />
# Q3<br />
# Algo:<br />
#       1) START: set value of i to 5 (since we want to start from 5, if you<br />
#          want to start from other value put that value)<br />
#       2) Start While Loop<br />
#       3) Chechk, Is value of i is zero, If yes goto step 5 else<br />
#          continue with next step<br />
#       4) print i, decement i by 1 (i.e. i=i-1 to goto zero) and<br />
#          goto step 3<br />
#       5) END<br />
#<br />
i=5<br />
while test $i != 0<br />
do<br />
	echo "$i<br />
"<br />
	i=`expr $i - 1`<br />
done<br />
#<br />
# ./ch.sh: vivek-tech.com to nixcraft.com referance converted using this tool<br />
# See the tool at http://www.nixcraft.com/uniqlinuxfeatures/tools/<br />
#</code></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/write-script-to-print-nos-as-54321-using-while-loop/">Write script to print nos as 5,4,3,2,1 using while loop</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/write-script-to-print-nos-as-54321-using-while-loop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
