Navigation


RSS : Articles / Comments


Different Login Shell Types

9:57 PM, Posted by कैलास बधान, No Comment

 Different Login Shell Types (Bourne, Korn, C)

There are three major login shells:

  1. The Bourne shell (sh)
    1. The original UNIX shell
    2. Now viewed as "limited" in its capabilities as a login shell
  2. The C shell (csh)
    1. Named after the C programming language
    2. Created at the University of California/Berkeley (UCB)
    3. Commonly used as a login shell
  3. The Korn shell (ksh)
    1. From AT&T
    2. Supports all Bourne shell commands
    3. Supports many C shell commands
    4. Adds new features    

What is shell

9:56 PM, Posted by कैलास बधान, No Comment

In short we can say shell is the program which communicate between the unix OS and the user. it works as a interpreter.

Shell Scripting

9:53 PM, Posted by कैलास बधान, No Comment

Types of commands :
Basic Commands
Coplex commands
Compund commands

Fantastico Installation

5:41 AM, Posted by कैलास बधान, No Comment

You will need the server root access to install Fantastico :

cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz

Do this on shell then go to whm and click on install with stable version.

cpanel not accessible with port

5:37 AM, Posted by कैलास बधान, No Comment

If you are not able to access cpanel/webmail/WHM with port ?

Solution : make sure your httpd.conf has the alias's for them
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi

cgi email Error

5:33 AM, Posted by कैलास बधान, No Comment

If you get the cgi email error as below while installing fourm ?

The requested URL /cgi-bin/cgiemail was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Solution: it needs to add the entry for script alias for the domains httpd.conf file

Perl interview questions

5:29 AM, Posted by कैलास बधान, No Comment

   1. What arguments do you frequently use for the Perl interpreter and what do they mean?

   2. What does the command ‘use strict’ do and why should you use it?

   3. What do the symbols $ @ and % mean when prefixing a variable?

   4. What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?

   5. What are the characteristics of a project that is well suited to Perl?

   6. Why do you program in Perl?

   7. Explain the difference between my and local.

   8. Explain the difference between use and require.

   9. What’s your favorite module and why?

  10. What is a hash?

  11. Write a simple (common) regular expression to match an IP address, e-mail address, city-state-zipcode combination.

  12. What purpose does each of the following serve: -w, strict, -T ?

  13. What is the difference between for & foreach, exec & system?

  14. Where do you go for Perl help?

  15. Name an instance where you used a CPAN module.

  16. How do you open a file for writing?

  17. How would you replace a char in string and how do you store the number of replacements?

  18. When would you not use Perl for a project?