Proxy setting for wget command using terminal

Gallery

You can give proxy parameters while use wget command in linux. Here is command for proxy parameters, $ wget -e use_proxy=yes -e http_proxy=192.168.1.10:8080 <download_URL> You can use https_proxy and/or ftp_proxy variable as per need in wget command instead of http_proxy … Continue reading

Standalone Single Instance in Linux

Gallery

Given code will help to create standalone single instance of application in Linux operating system. #include <stdio.h>#include <semaphore.h>#include <fcntl.h> int main(){    const char sem_name[] = “tmp”;    sem_t * mutex;     printf(“semaphore application started!\n”);    mutex = sem_open(sem_name, O_CREAT | O_EXCL, 0600, … Continue reading

Linux command to operate network connections

Gallery

Following commands can give network connections information, # netstat -tulpan # lsof –i Command#1 (netstat –tulpan) will give you connections information, but I did not find any way to kill connection after get information from it. Command#2 (lsof –i) will … Continue reading