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 ArticleHelp 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 ArticleFtp 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 ArticleResize 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 ArticleSendmail 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 ArticleOpenvvpn: 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 ArticleXY 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 ArticleUNIX 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 ArticleAdd 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 ArticleRemoving 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 ArticleMailx 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 ArticleError 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 ArticleCreating 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 ArticleCygwin 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 ArticleGMT 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 ArticleHandling 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 ArticleDecrypt 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 ArticleHow 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 ArticleLock 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 ArticleParse 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