Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live

Igawk vs igawk.bat

I use GNU gawk on win32 platforms and standard cmd.exe to run cmd files containing gawk commands. If I were in a unix shell I would use igawk to process "@includes" for awk "libraries" and convert them...

View Article


Help troubleshooting new Apache installation on HPUX 11.31

Hi Guys! I have a very odd problem while installing Apache in an HPUX 11.31, What I did was downloaded the latest webserver suite from hp software, installed using swinstall, everything was extracted...

View Article


Ftp issue

I have logged into ftp and unable to enter into the below directory. can anyone help me out to enter into the below directory. Code: ftp> dir 200 Command PORT okay. 150 File status okay; about to...

View Article

Resize Linux partition

Hello., Could any one please share the informaiton about this or please point me the reference : Assume, we have the following partition after linux machine is setup, it will mention like this : bash$...

View Article

Sendmail issue

Dear All , I have some problem in Sendmail , where it was sending mails perfectly fine with the Ip address of the client machine. But suddenly there was an issue , the SMTP takes the IP of the bond1...

View Article


Openvvpn: cannot resolve when tunnel is mounted

Here is my (x)ubuntu version: Code: root@ubuntu:~# lsb_release -a No LSB modules are available. Distributor ID:    Ubuntu Description:    Ubuntu 14.04.1 LTS Release:    14.04 Codename:    trusty Before...

View Article

XY interpolation by time in awk

Hi I am a newbie in awk scripting. I'm working with a file with xy coordinates that were acquired with a time stamp. All the time stamps were recorded but not the XY coordinates. Let see an example:...

View Article

UNIX head command not working?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a script that...

View Article


Add value in specific field

Gents, I have many files to change increasing 40000 in specific field. Can you help me with a command with sed or awk to fix this problem. Where the the field has Marker FDU. I need to add 40000 plus...

View Article


Removing only Prefix string (!)

Hello everyone, I want to remove only prefix ME_ from all the values that are present in the FILEA. Below code I'm using for this. Code: sed 's/ME\_//g' FILEA > FILEB Using the above code, all ME_...

View Article

Mailx message not delivering externally

I have recently all of a sudden stopped receiving my cronjob messages that were being sent with the mailx command. I have not made any changes and it is affecting all my servers at this site only (all...

View Article

Image may be NSFW.
Clik here to view.

Error in executing the C program

Hello Friends, I have written a code for the unisex bathroom which makes a policy that when a woman is in the bathroom only other women may enter, but not men, and vice versa. This program consists of...

View Article

Creating additional plugins for nagios

Team would like to know if anyone here had created a basic nagios plugin. I did write a simple postfix service checker. Then add it in nagios nrpe.cfg then restart nrpe and nagios and it is not...

View Article


Cygwin script to transfer file from windows to UNIX

Hi, Objective is to transfer files from windows server to Unix server using cygwin. I have installed cygwin, and I manually execute commands and transfer files from windows to unix using sftp. These...

View Article

GMT to MST timestamp conversion

Hi Team, We have written a perl script to perform the GMT to MST timestamp conversion. Input: 2013-12-01T05:23:19.374 Output: need the given timestamp in MT (MST/MDT) Code: #!/usr/bin/perl use strict;...

View Article


Handling embedded double quotes within column data

I have a text file where each field is enclosed in double quotes and separated by a comma. But in certain rows we have embedded double quotes within column data For e.g Code: """TRUSPICE CENTRE""...

View Article

Decrypt ssha1 password

hi to all, i have an AIX6.1 machine and i want to decrypt an ssha1 password written on /etc/security/passwd. the reason that i want to do that is because i have some complains about a few users that...

View Article


How to use a string in the for loop?

Hi Guys, I have the below 2 exception which I want to monitor and subsequently many more. My problem is since the For loop takes the syntax for variable in word1 word2 as separate entities and my error...

View Article

Lock password for 15 minutes

Hi, Can we configure Solaris-10 and Solaris-11, which can lock any user for 15 minutes after 5 unsuccessful logins ? I am trying to search, if it is possible but not able to find. Regards

View Article

Image may be NSFW.
Clik here to view.

Parse multiple html files in directory

I have downloaded source code for 97 files using: Code: wget -x -i link.txt then run a rename loop: Code: for file in * do   mv $file $file.txt done to keep the html tags but make the file a text that...

View Article
Browsing all 16232 articles
Browse latest View live