Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: linuxgeek
68,976
Posted By linuxgeek
there is no new updates/installation of software...
there is no new updates/installation of software or packages. The server is in lab environment and what is newly configured is NAT to connect it in production network. now, it is connected to prod by...
68,976
Posted By linuxgeek
here's what i have done so far: - Reverse...
here's what i have done so far:
- Reverse the order "files dns" in /etc/nsswitch.conf and /etc/host.conf to have proper search as well
- Verified shared libraries of ping and nslookup...
68,976
Posted By linuxgeek
here you go: /etc/nsswitch.conf: ...
here you go:

/etc/nsswitch.conf:

/etc/resolv.conf:

/etc/hosts:
if I place the hostname in /etc/hosts its pingable.
68,976
Posted By linuxgeek
ping by hostname not working
anyone ever seen this problem:

I can ping the server by IP address but I can't by hostname.

nslookup is working and dns query is ok.


[root@puppetmaster network-scripts]# nslookup mwxnsb24...
2,864
Posted By linuxgeek
Thank you Sir ... will try to do that.
Thank you Sir ... will try to do that.
2,864
Posted By linuxgeek
Yes, we had changed it already to that value but...
Yes, we had changed it already to that value but still error persists:


[root@xxx-network-scripts]# cat /proc/sys/net/ipv4/neigh/default/gc_thresh3
1024
[root@xxxnetwork-scripts]# cat...
2,864
Posted By linuxgeek
neighbor table overflow
hi folks,

Do you have any idea why this error occurs ?

My server is hp blade in c7000 frames running RHEL 4 update 4.

[root@xxx network-scripts]# uname -a
Linux xxx 3 2.6.9-55.0.12.ELsmp...
1,262
Posted By linuxgeek
hi hfreyer, do you mean its like this ? ...
hi hfreyer,

do you mean its like this ?


while ($ARGV[0]) {
chomp; split;
foreach $i (@_) {
...
}
}


how will i call my arguement1 ?
2,332
Posted By linuxgeek
try this: top -b -n2 -d 00.20 | grep Cpu...
try this:


top -b -n2 -d 00.20 | grep Cpu |awk -F"[:%]" 'END{print $2}'
1,262
Posted By linuxgeek
parsing argument in perl
in bash:


LIST=`cat $1`

for i in $LIST
do
...
done


how will i do this in perl ?

$1 is my first arguement. I'm a newbie in perl and will appreciate much your help guys ...
61,574
Posted By linuxgeek
Actually, below is my bash script that i want to...
Actually, below is my bash script that i want to do in perl and it has two arguements:

Arguement1 is list of servers and arguement2 is list of home directories.


#!/bin/bash
...
61,574
Posted By linuxgeek
Thanks itkamaraj... i will try this ..
Thanks itkamaraj... i will try this ..
61,574
Posted By linuxgeek
for i in `cat file` do
in bash:


for i in `cat file` ; do
echo $i
done;


how will i do this in perl ?
2,328
Posted By linuxgeek
oh sorry .. just overlooked it :) ----------...
oh sorry .. just overlooked it :)

---------- Post updated at 08:25 PM ---------- Previous update was at 08:09 PM ----------

i need one liner sort command for this
2,328
Posted By linuxgeek
it doesn't work redirecting the output on the...
it doesn't work redirecting the output on the same file.
2,328
Posted By linuxgeek
Sorting content of file
hi ladies and gents:

can you give me a command to sort content of file and save it to the file itself:

file1

roy@emerson.com
joy@emerson.com
irish@emerson.com
output would be file1 on...
2,715
Posted By linuxgeek
Thanks yazu ... i also noticed that i need to...
Thanks yazu ... i also noticed that i need to predefine correctly all the variables before using it..

Thanks very much...
2,715
Posted By linuxgeek
i need help with my perl script
hi Experts,

I'm new in perl and i don't know whats wrong with my arrays as i'm getting this error:


#!/usr/bin/perl

use Expect;
use strict;

my $user = "root";
my $host = "csadmin21";...
11,194
Posted By linuxgeek
thanks... its working now... by the way,...
thanks... its working now...

by the way, whats the use of chomp ?
11,194
Posted By linuxgeek
yup.. actually that's not my problem. the issue...
yup.. actually that's not my problem. the issue here is in ff code:


system("sudo mv /tmp/nyucs01_config_backup.tgz /misc/nyucs01_config_backup_$date.tgz");


Thanks!
11,194
Posted By linuxgeek
thanks but im still getting the same error message
thanks but im still getting the same error message
11,194
Posted By linuxgeek
how to append current date to filename.tgz in perl
i would like to know how to append current date in a filename with .tgz extension.


#!/usr/bin/perl
my $date = `date + %Y%m%d`;

system("sudo mv /tmp/nyucs01_config_backup.tgz...
3,735
Posted By linuxgeek
switch user from local user to root in perl
Hi Gurus,

I have a script that requires me to switch from local user to root. Anyone who has an idea on this since when i switch user to root it requires me to input root password.

It seems...
2,602
Posted By linuxgeek
hi Awk Masters, awk 'NR==FNR{if (/^uid:/)...
hi Awk Masters,


awk 'NR==FNR{if (/^uid:/) a[$2];next}{x=$0;sub("@.*","",x);if(!(x in a)) print $1}' access.ldif k5login

from the script above, instead of printing the output... i would like...
2,602
Posted By linuxgeek
hi ctsgnb, i have this additional...
hi ctsgnb,

i have this additional requirement and here goes:


awk 'NR==FNR{if (/^uid:/) a[$2];next}{x=$0;sub("@.*","",x);if(!(x in a)) print $1}' access.ldif k5login


from the above...
Showing results 1 to 25 of 78

 

Featured Tech Videos

All times are GMT -4. The time now is 09:10 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy