Showing posts with label Scripts. Show all posts
Showing posts with label Scripts. Show all posts

Thursday, 16 October 2014

Cat command in Linux

Cat command in Linux


$ cat program.pl program2.pl
#!/usr/bin/perl
 if( 2 ge 3) {
     print "greater\n";
} else {
     print "lesser\n";
 }

#!/usr/bin/perl
@arr = qw(1 2 3);
$ref = \@arr;
print ref $ref;

Example 2: 

#!/usr/bin/perl
 if( 2 ge 3) {
     print "greater\n";
} else {
     print "lesser\n";
 }

#!/usr/bin/perl
@arr = qw(1 2 3);
$ref = \@arr;
print ref $ref;

Example 3: 

Step 1: Start
Step 2: Declare variables a,b and c.
Step 3: Read variables a,b and c.
Step 4: If a>b
           If a>c
              Display a is the largest number.
           Else
              Display c is the largest number.
        Else
           If b>c
              Display b is the largest number.
           Else
              Display c is the greatest number.
Step 5: Stop

Friday, 30 May 2014

Script for installing Latest Java Version

#!/bin/bash # Installed on debian wheezy wget http://download.igniterealtime.org/openfire/openfire_3.8.2_all.deb dpkg -i openfire_3.8.2_all.deb # apt-get install -y openjdk-6-jre-headless # this may not be needed. apt-get install -y default-jre-headless dpkg -i openfire_3.8.2_all.deb /etc/init.d/openfire start # start a web browser and navigate to http://host.domain.tld:9090 # and follow the wizard to setup the server.

E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

© 2014 VOIP4Learn. WP themonic converted by Bloggertheme9. Powered by Blogger.
TOP