[ Add new entry ]
« 1 2 3 4 ... 13 14 »

Today, we shall talk about one of the most frequently used command in Linux.

TAIL

The command is used to print last 10 lines of a file.

tail -f is used to print the last 10 lines plus it keeps on reading the file if a new data is added to the file.

tail -f can be used if a log is currently being updated. 


But then what is the use of tailf?

tailf is similar to tail -f except one difference that tailf does access the file if the file is not being updated or not growing.

 

... Read more »

Category: Open System-Linux | Views: 1623 | Added by: shanky | Date: 2017-08-22 | Comments (0)

Hereby we shall try to understand a very basic program to send mail using python library smtplib

The smtplib in python defines a client object that can be used to send mail to any internet machine a SMTP listener daemon.

 

1. Create an SMTP object.

import smtplib

smtpObj=smtplib.SMTP(host,portNo);

Note that host or port number are optional.

host: the server where SMTP is running. example: smtp.gmail.com

port number: the port number where SMTP server is listening.

 

... Read more »

Category: Programming Languages | Views: 940 | Added by: shanky | Date: 2017-08-22 | Comments (0)

Hi Guys,

Today in this article we shall build up a small program to understand client -server communication using socket in Python.


 

Server side:

1. Create a socket:

socket(socket family, type(TCP/UDP), protocol)

-- Family or domain could be AF_INET or AF_UNIX

-- Type could be TCP: SOCK_STREAM or UDP : SOCK_DGRAM

-- Protocol is left bank, by default it is 0.

 

2. Bind socket

socket.bind(IPaddress, portNo)

-- bind the socket to a system's ip address and port ... Read more »

Category: Programming Languages | Views: 1166 | Added by: shanky | Date: 2017-08-19 | Comments (0)

Hello open system guys,

we always get into situation where by we have to copy files from windows to/from Linux/UNIX/AIX syetsm. 

When this happens there is pretty much a chance that the ctrl - M character may be found in the files we receive from Window system.


 

If there is a control - M character in a batch or a script , the script will failed as hell saying "command not found"

The resolution is we have to remove them.

In today's article i will tell you how to do this using perl command.

I have already shared the linux/Unix co ... Read more »

Category: Open System-Linux | Views: 1281 | Added by: shanky | Date: 2017-08-13 | Comments (0)

Every person who gets fed up of the monotonous office life generally thinks of quitting his job to chase his dreams of entrepreneurship? It’s generally a quandary for the many young professionals who hold such aspirations. Weighing the pros and the cons of self-employment always seems as an endless process and letting go of that “guaranteed” salary is a tough decision for many aspiring entrepreneurs. The article below gives certain lessons which an aspiring entrepreneur must follow in order to make his business successful . LESSON ONE: Simple is always hard enough “Simple is hard enough” has become a go-to mantra anytime an entrepreneur gets to a fork in the road. Whenever an entrepreneur thinks of looking at a new product concept, his first thought should be to recall the mantra that “simple is hard enough”. Not only does the mantra help cut away the unnecessary fat, but it also helps to implore intelligent design and cuts cost. You should decide quickly what form of business you w ... Read more »
Attachments: Image 1
Category: Others | Views: 601 | Date: 2017-02-08 | Comments (0)

Hi Linux lovers,

 

I am back with some cools tools from my box of Linux.

We all want that our work should be easy and fun and we always witness that many of the tasks are automated reducing manual efforts. We shall talk about some useful logic/ideas that will enable you ease your daily work in LINUX./UNIX/AIX environment.

 

1. Use as many aliases as you can

There are several command that we have to enters very very frequently. like going to certain folder, checking some process is running or not listing latest 10 files in a directory etc. so why to enter the entire command again and again?

Create custom and logical aliases for them. 

... Read more »

Category: Open System-Linux | Views: 1609 | Added by: shanky | Date: 2017-01-21 | Comments (0)

  • Hello Guys, today we shall practice some commands that are frequently used to analyse the zipped and/or archived files in open system
  • These command can help you greatly to work with *.gz, *.zip, *.tar files . 
  • I have collected some examples from my work experience that can be helpful to dig into such files.

1. Just list out the files inside a ZIP

Below is the command that will show what are the files present inside the ZIP without actually unzipping them.

shanky@portal:[UAT]:>unzip -l TDS.HDGFF5163725.zip
Archive:  TDS.HDGFF
5163725.zip
  Length      Date    Ti ... Read more »

Category: Open System-Linux | Views: 1350 | Added by: shanky | Date: 2016-12-25 | Comments (0)

Hello Linux/Unix lovers,

I never knew that find command can be so useful. I have collated some cool find command example which can always help you in your work stations.

I am sure you all know the format of find command.

Format: 

find path criteria action


Example

find . -name "*.log" -exec ls -l {} \;

 

1. Find all the log file inside a folder/subfolder and delete or archive them.

fi ... Read more »

Category: Open System-Linux | Views: 2210 | Added by: shanky | Date: 2016-12-11 | Comments (0)

Hi Guys,
Welcome back,

Being a consultant in DBS project I have witnessed many cased where the shell script that is copied or created may contain some special characters. This happens when the script is copied from windows system to AIX and the script was having extra spaces.

So, if the script is having such speciall characters, it might not get executed successfully throwing error as below:

 

Command not found: ^M

 

The solution is we have to find and remove all special characters like these from the script.

Here we shall practice a very simple way to do the same. 

1. Using command tr. ... Read more »

Category: Open System-Linux | Views: 1945 | Added by: shanky | Date: 2016-10-12 | Comments (0)

BITSADMIN version 3.0 [ 7.8.10586 ]
BITS (Background Intelligent Transfer Service
) administration utility.
(C) Copyright 2000-2006 Microsoft Corp.

BITSAdmin is a command line tool available in windows starting from windows xp till current versions. 

It is used to create download or upload jobs and monitor their progress.

It is deprecated and is not guaranteed to be available in future versions of Windows.


Administrative tools for the BITS service are now provided by BITS PowerShell cmdlets.



FORMAT

BITSADM ... Read more »

Category: Technical Solution | Views: 4122 | Added by: shanky | Date: 2016-08-03 | Comments (0)