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

Kernel Upgrade

Dear All , I want upgrade my kernel version from kernel-2.6.18-164.el5 to kernel-2.6.18-199.el5 . We have RED HAT Linux Server Red Hat Enterprise Linux Server release 5.4 (Tikanga). Kindly let me know...

View Article


Need help with Shell script

I have Suse linux in my environment I have to search certain files from a list of files (around 3000) and in each files if there are special characters(like scanidavian characters or #,$,%) than we...

View Article


Ssh error

Code: ssh -q <remote_server> <command> is not working for only one remote server. From the source, we are able to connect other servers using the above command but one. All the servers are...

View Article

Some error messages in var/log/messages

How are you? SUSE V10 and 11. In /var/log/messages I see these lines in some servers. I'd like to know what causes these errors and how to fix them. Thank you, error: PAM: Authentication failure for...

View Article

Help changing the PS1 prompt in Solaris

Hi, I need help changing PS1 in Solaris. I tried this: Code: MYPROMPT="> " PS1=$LOGNAME@$HOSTNAME:${PWD}$MYPROMPT (NOT SURE WHY IT'S HIGHLIGHTED HERE) export PS1 My problem is that $PWD is not...

View Article


awk command with if & mail

Hi Experts, I want to check in table that if third column value is "bhu" & if it is greater than 500 it will send mail other wise there will be no mail. but as per my script mails are still coming...

View Article

Wget rename file

Is it possible to use a cookie transfer to a location and then rename the output? Code: cd target_directory wget -x --load-cookies cookies.txt http://172.24.188.113/data/getCSV.csv | for file in * do...

View Article

A doubt about scsi termination

http://ep.yimg.com/ay/iercomputer/ib...x-fc5736-3.gif I have buy this controller. Simple and fast question: i will put on this controller a external lto tape,wich is terminated with a terminator. I...

View Article


Finding 'ls' to bypass system alias

Heyas Just asking, is there a better to make sure the script will use the binary and not some alias? Code: LS=$(locate "ls"|grep /bin/ls$ | head -n 1) Thank you.

View Article


Help speeding up script

This is my first experience writing unix script. I've created the following script. It does what I want it to do, but I need it to be a lot faster. Is there any way to speed it up? Code: cat...

View Article

Checking data with source

I can derive a group from 2 sources Group Table Code: Derived Source1 Source2 BAC GA1 TR HGT FG1 RF2 If a variable between both sources match in the value (col3) then the variable in the derived must...

View Article

Quick way to select many records from a large file

I have a file, named records.txt, containing large number of records, around 0.5 million records in format below: Code: 28433005 1 1 3 2 2 2 2 2 2 2 2 2 2 2 28433004 0 2 3 2 2 2 2 2 2 1 2 2 2 2 ......

View Article

How install curl in openserver 5.0.7?

Hello, I wanted to know how to install the service "CURL" for UNIX OpenServer 5.0.7 I need to connect a web service even government to generate an electronic invoice. Sorry for my English, the forum is...

View Article


Run bash script within a script - Help

Hello - Iam have been trying to run this Query: Want to run .auto.bash command in the script. Is there a way i can get this done? Code: #!/bin/bash _servers="/tmp/servers.txt" _out="/tmp/output.$$"...

View Article

Dig only returns MX records in +trace mode

One of our email recipients has 17 mx records, and our emailing program postfix on linux does not retrieve these records. When using dig, the same thing happens. This command returns no mx records...

View Article


Rename files based on a list

Hi, I have a directory with a lot of files like this: Code: a.bam b.bam c.bam I like to rename these files based on a list where the name of the files in the first column will be replasced by the names...

View Article

Image may be NSFW.
Clik here to view.

Wget in bash

I am attempting to write a bash that starts by using wget and getting the following errors: Stand-alone code that works: Code: wget -O getCSV.txt http://172.24.xxx.xxx/data/getCSV.csv Code:...

View Article


Error re-direction and Return code

Hi, I have a shell script which executes some sql. When the shell script executes the sql's logging is shown on the console. I need to grep some data from this output shown on console. So I do the...

View Article

Passing variables to mkuser

In a ksh, I'm attempting to pass my string of arguments to the mkuser command in a variable as follows... Code:   cmd="pgrp=ACRGENU groups=ACRGENU home=/home/${USERID} shell=/usr/bin/ksh"   cmd=$cmd"...

View Article

Need help in creating a file in required format form another existing file

I have a text file with contents like this: a,b,c, d~e,f,g,h~i,j ,k,l,m~n,o,p,q~ I need to convert this file into this format unix shell script commands: a,b,c,d~ e,f,g,h~ i,j,k,l,m~ n,o,p,q~ as you...

View Article
Browsing all 16232 articles
Browse latest View live