Bash script from makefile - it is called each time i call make
I've created a tag in the makefile: mytag: $(shell ${PWD}/script.sh) When i do: make clean - the script is executed When i perform make or make mytag the script is again executed with the output: make:...
View ArticleStorWize v3700 and Power8 (S822) AIX, configuration best practice for LUNs?
Hello, We have an Power8 System (S822) and a IBM StorWize v3700 SAN. The OS is AIX 7.1. With this hardware from what I read I need to download/install special SDDPCM drivers, so I did (SDDPCM VERSION...
View ArticleSentence delimiter in perl: modifications needed
Hello, I found this Perl Script on the EuroParl website which does Sentence Splitting. Code: #!/usr/bin/perl -w # Based on Preprocessor written by Philipp Koehn binmode(STDIN, ":utf8"); binmode(STDOUT,...
View ArticleRsync failed
I was backing up a home directory and had rsync fail on me. I noticed that it was trying to copy a large file (over 4.2 gigs. That made me wonder if the code is 32 bit and failed on the 2 ^32 (max size...
View ArticleExtract data from log
I have logs in format Code: Â ####<01-Mar-2015 03:48:18 o'clock GMT> <info> Â ####<01-Mar-2015 03:48:20 o'clock GMT> <info> ####<01-Mar-2015 03:48:30 o'clock GMT>...
View ArticleFind the count of files by last created date based on the given date range
My unix version is IBM AIX Version 6.1 I tried google my requirement and found the below answer, Code: find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20" But newer command is not working...
View ArticleLspv -free command on VIOS
Hi all, We have observed that lspv -free command tooks 15 to 20 minutes to display the free disks and we have only 77 MPIO disks on VIO Server. Our VIOS version is 2.2.1.4 . Please let us know what...
View ArticleSendmail with attachment
Hello people, I only have sendmail and uuencode on a Oracle (RH) linux server. While: Code: /usr/bin/uuencode awr.html awr.html | /usr/sbin/sendmail myemail@company.com Is working fine, the ideal for...
View ArticleError while extracting data from log file
I am running awk command to extract data from log file to calculate last 15 minutes log using below command and now i am getting bellow error: Code: awk '$0>=$from' from=$(`date -u...
View ArticleCheck connectivity with multiple hosts - BASH script available here
// MODERATOR REQUEST: Please move this thread to the "Shell Programming and Scripting subforum" // Hi, Some time ago, I had to check connectivity with a big list of hosts, using different formats...
View ArticleRequest: Move thread to a different subforum
Hi, I've just posted a new thread on the "IP Networking" subforum, with the subject "Check connectivity with multiple hosts - BASH script available here". However, I think it should be on the "Shell...
View ArticleSort tags in an xml file
Hi All, Below is an extract from xml. Here the pattern of the tags is not uniform. i.e., For user A --> name,id,add isthe series For user B --> id,name,add is the series Code:...
View ArticleHow to use expect and send command in UNIX/Linux?
Hello Everyone, I am executing a unix script which logs into 50+ servers (netapp servers) and runs some commands and captures output locally. Below is the code snippet. file1.txt has names of all the...
View ArticleExternal SMTP server
Hi, We current use an email/hosted exchange server (provided by 3rd party company). Our production DNS (RH5) server has got the MX rec configured for this 3rd party mail relay server. So in order to...
View ArticleSsh to role
Hi all I need to run a command that only a role user and root can run, I need to run that command remotely by script but the roles ask for a password. Ex. from serverA with userA to serverB with userB:...
View ArticleSun SSH3
I have requirement to support sun ssh3 for my project. I tried using ssh -version command which is returning Sun_SSH_1.1.3, SSH protocols 1.5/2.0 Can you tell me what does ssh3 refers and which ssh...
View ArticleMainain the files after deleting lines with awk
hello I want to delete the lines of many files (e.g. file1, file2, ..., file1111) in my directory (e.g. dir1) that they have the 2nd column grater than a value (e.g. 40) placing them to a different...
View ArticleSunOS compare datetime
Hi i need to compare the datetime between 2 columns. SunOS 5.1 is used. Notice that mktime seems like not supported. cat file2 P1,2012 12 4 21 36 48,2012 12 4 22 26 53 P2,2012 12 4 20 36 48,2012 12 4...
View ArticleConvert Column data values to rows
Hi all , I have a file with the below content Code: Header Section employee|employee name||Job description|Job...
View ArticleInput two password(pass1/pass2) options for single node..
Hi Team, i want to input two password for single node like pass1/pass2 one of the pass1 is working some node and pass2 is working for some nodes . For nodes having pass1 i have to run diffrent script...
View Article