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

Assigning * as value in a ksh array

I want to extract each and single character from a password string and put it in an array. I tried this : Code: set -A password "echo $passwd | awk '{for (i=1; i<=length($1); i++) printf "%s...

View Article


AWS S3 with Bash Script

Hello All, I am trying few stuff on Amazon S3 move files to EC2 (Ubuntu Server) I am receiving daily 2 files in S# bucket Code: XYZ_2015-02-26_ 200.csv ABC_2015-02-26_ 200.csv I want to move daily...

View Article


GTK2.22 for Fedora 20

Hi again, I maybe should have posted this question in this forum. I am looking for an RPM for gtk2.22 development for a machine running Fedora 20. I only have the gtk2.22 development binaries for...

View Article

How to find particular word in directories?

Hello, i have multiple directories on my server. i need to find specific word like lets says for e.g IPV6 from those directories. can somebody tell me the right command which will let me to that?

View Article

Image may be NSFW.
Clik here to view.

Linking GDAL and GTK

Hi all, I am trying to link the GDAL libraries and GTK. This is my compile line.....not sure why I am getting these errors. Code: bash-4.2$ gcc proj.c -o proj $(shell pkg-config --libs gthread-2.0...

View Article


HP Software depo Apache with LDAP issue

HI guys, I've come to this great community with a problem that everything that I could find is related to a bug, in the ldap code in the apache but nothing else. My problem happens after installing the...

View Article

How to check LDEV in server?

Hi , There is one task to provide 50 GB space to the disk group ORABACK and Storage team have confirmed saying allocated below LDEV with 50 GB 03:90. How to check LDEV with 50 GB is created in server...

View Article

Script almost works... one error

Helo, i have written a bash script for running my calculations. anyway, according to shellcheck the error is somewhere in the while loop or in the if condition. so the idea of this script is: submit a...

View Article


Awk:String search more than one time and capture OP

Dear All During one of mine script developemnt i am stuch at one sub part. Requiremnt is as below kindly help me. IP file: Code: 2015-02-28 10:10:15 AL M UtranCell UtranCell=RTE001X (unavailable)...

View Article


Format data by consolidating repliacted obs

Please assist with the following. I have readings R1, R2,..Rn from plants from different fields , sometimes replicated. I need to first consolidate the replicates by their mean value per plant per...

View Article

Image may be NSFW.
Clik here to view.

Extra data in output file

Gents, I did a small scritp called make_file It read file1.txt file and generate an output as attached.. But the script is showing more extra information not needed. I have attached the output file as...

View Article

Solaris cluster critical issue

Hi all, Few hours ago I did some changes in our Solaris cluster servers. Below are changes I did : 1. Installed latest Solaris 10 patchset from oracle. 2. Enabled BSM log module. Entered into single...

View Article

Image may be NSFW.
Clik here to view.

How can i populate the record in to table using shell scripting?

Code: LOG_DIR=/app/rpx/jobs/scripts/just/logs   sendEmail()     {         pzCType="$1"; pzTitle="$2"; pzMsg="$3"; pzFrom="$4"; pzTo="$5"; pzFiles="$6"; pzReplyTo="$7"         (           echo "From:...

View Article


How to output the prstat into table and send through email?

Hi how to send below prstat script output into table format and send through email? Code: prstat|awk '{ if ($9 >= 5) print $0 }'

View Article

Xargs: multiple commands to each argument

Hello. There is my one-liner to get subjects of potential spam mails Code: sudo exiqgrep -bf "spamer@example.com" |cut -d' ' -f1 |xargs -I ~ sudo /usr/sbin/exim -Mvh ~ |grep 'Subject: ' I want to...

View Article


Image may be NSFW.
Clik here to view.

Get grep to output only 1 no from a file ?

I want to finde a no in a fine My line look like this Code: “SWD_BUILD ?= 207 # can be 0-999- Build nr” and I only want 1 output. the no 207 My command rigtht now is Code: grep -A0 “SWD_BUILD” Makefile...

View Article

Guest LDOMS on same subnet cant ping eachother

Hi all, New to this forum. I have just been reading through a historical thread about some issues with IPMP. Some tips from "Peasant" where very useful. Please see below Code: "Just couple of more...

View Article


Deleting old files from a dir

Hi, I have a folder/dir which have file names as below. file1.txt file2.txt file3.txt . . Such files are added to the folder daily. I have to keep only latest 10 files in the folder and delete the old...

View Article

Getting into a VM using expect script

Hi I am using virsh command to get into a VM via expect script So here I have 2 conditions If VM console already exists then I should use "virsh console <guestname> --force" option else I should...

View Article

Custom Delimiter in diff command

Hello All, I would like to know if we can have user defined delimiter for diff [-y] to access left side and right side data easily. My actual data might contain "|" "<" and ">" char which are...

View Article
Browsing all 16232 articles
Browse latest View live