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

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: 1486 | 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: 2559 | Added by: shanky | Date: 2016-08-03 | Comments (0)

Facter - Collect and display facts/information about the system like uptime, OS info, memory usage, PATH, processor, n/w etc.

FORMAT
       facter [-d|--debug] [-h|--help] [-p|--puppet] [-v|--version] [-y|--yaml] [-j|--json] [fact] [fact] [...]

DESCRIPTION
       Collect  and  display  facts about the current system. The library behind Facter is easy to expand, making Facter an easy way to collect information about a system from within the shell or within Ruby.


OPTIONS
       
puppet:  Load the Puppet libraries, thus allowing Facter to load Puppet specific (custom) facts

... Read more »

Category: Open System-Linux | Views: 992 | Added by: shanky | Date: 2016-05-24 | Comments (0)

We very often use the inbuilt variable $? in linux to check the status of last command used.

To find if the last command is correctly executed, we fire echo $? always. If it return 0, the command is successfully completed else some error occured while executing the command.


See below example.

shankys:~> date
Wed May 11 06:50:07 CEST 2016

shankys:~> echo $?
0

shankys:~> date 9
... Read more »

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

AT command is used to schedule/run a command at a later time, 1 hour later, 2 mins from now, 1 week later or one month later.

FORMAT
       at [-V] [-q queue] [-f file] [-mldrbvt] TIME
       at -c job [job...]
       atq [-V] [-q queue]
       atrm [-V] job [job...]
       batch [-V] [-q queue] [-f file] [-mv] [TIME]


DESCRIPTION
       at  and  batch read commands from standard input or a specified file which are to be executed at a later time, using /bin/sh.

atq     lists the user's pending jobs, unless the user ... Read more »

Category: Open System-Linux | Views: 869 | Added by: shanky | Date: 2016-04-14 | Comments (0)

Hello Linuxmen

Today in tis article we shall learn cool command execution tricks in Linux/Unix.

Many times we have to run the same command or last command or any one command in recent history in our lovely Terminal/Putty. We press up button several times and search.

Lets try and implement some easier methods.

1. Execute the last command.

To execute last command we can simply press up button and press enter. Or We can use "!!" and press enter. This will do the same.

Prompt:~> date
Thu Mar 17 19:38:55 CET 2016

... Read more »

Category: Open System-Linux | Views: 913 | Added by: shanky | Date: 2016-03-17 | Comments (1)

Finally I understood sticky bit concept and I want to share this with all..

Best way to learn it is we shall try an example. We all might be aware of its definitions and theory:

RESTRICTED DELETION FLAG OR STICKY BIT(t)
 

  • The restricted deletion flag or sticky bit is a single bit, whose interpretation depends  on  the  file  type.  
  • For directories,  it  prevents  unprivileged users from removing or renaming a file in the directory unless they own the file or the directory; this is called the restricted deletion flag for the  directory,  and  is  commonly  found  on world-writable  directories  like  /tmp.  
  • ... Read more »
Category: Open System-Linux | Views: 1049 | Added by: shanky | Date: 2016-02-05 | Comments (0)

netstat - Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

 By default, netstat displays a list of open sockets.  If you don't specify any  address  families,  then  the  active sockets of all configured address families will be printed.
We shall exercise some examples to make it more clear.

1. List all connections to the system(Listening/ Non-listening)

nestat -a

 

Prompt~> netstat -a|head
Active Internet connections (servers and established)
Proto Recv ... Read more »

Category: Open System-Linux | Views: 1160 | Added by: shanky | Date: 2016-01-23 | Comments (0)

Hello Windows 10 lovers

 

Now that people are switching to windows 10, they need to consider one big problem that they will face. The internet speed is totally eaten by windows. 

It has so manu stuffs running which are consuming your internet data.

Lets list out them and try to fix this problem..

1. First of all you need to turns the tiles off in window start menu. They are all gadgets using internet speed/data. Right click the gadget and click on "Turn the tile off".

live tile off

If you want you may later turn it on to see the feature ... Read more »

Category: Technical Solution | Views: 1676 | Added by: shanky | Date: 2015-12-30 | Comments (2)

Hello Guys

If you want to create a simple downloader or you want to learn the concept of background worker and progress bar , you must go through this basic article.

Here we are using a very simple example that will help you to understand these concepts. So we shall go steps by step.


  • First of all add a button to your Form to start download, a progress bar to show download progress and a background worker for background processing of download. A cancel download button is additional.

bw1

 

 

  • Set the following properties of background worker: Put below code on the load event of form or t ... Read more »
Category: Programming Languages | Views: 1548 | Added by: shanky | Date: 2015-09-15 | Comments (0)