Search Results

Search: Posts Made By: kumar85shiv
5,302
Posted By kumar85shiv
Hi RudiC, Thank you. I will try this code....
Hi RudiC,

Thank you. I will try this code. and keep you posted further.
5,302
Posted By kumar85shiv
I am sorry..I have typed wrongly. The output...
I am sorry..I have typed wrongly.

The output should be



4/3/2014 file4
6/6/2015 file5
5,302
Posted By kumar85shiv
Apart form this code, i have to do some more code...
Apart form this code, i have to do some more code on the data which script will get between start date and end date. Please help me with the above code, the rest i can finish.

Thanks
5,302
Posted By kumar85shiv
Actually, i tried to do with convert dates in...
Actually, i tried to do with convert dates in unix time and compare, but it does not work.

so i am seeking help from this forum.
5,302
Posted By kumar85shiv
date format is dd/mm/yy. Thanks for trying...
date format is dd/mm/yy.

Thanks for trying code tags, but overdoing doesn't help either. Tags for code and data, not for normal text.
5,302
Posted By kumar85shiv
Grepping the data between 2 date ranges
Hi There, Good Day !!

I have txt file containing data in the below format. There are many lines, here i have mentioned for example.

cat remo.txt

2/3/2017 file1
3/4/2016 file2
6/6/2015 ...
2,087
Posted By kumar85shiv
Thank you Ravindra, It works fine here
Thank you Ravindra, It works fine here
2,087
Posted By kumar85shiv
Replace the perticular fileds in passwd file
Hi I have 2 different password entries in 2 different files for the same user.

file 1 -

siva:correct:1000:23:siva:/home/siva:/bin/bash

file 2 -
...
1,297
Posted By kumar85shiv
Ssh passwd less, shell script
Hi All, Wishes!!
I need some help to prepare a script to copy the public key from admin host to multiple client hosts to make them login without password.

Detailed :
I have an admin...
4,884
Posted By kumar85shiv
Hi Disedorgue, i tried your code, but...
Hi Disedorgue,

i tried your code, but giving the below error
./ping_fast.sh: line 12: syntax error near unexpected token `}'
./ping_fast.sh: line 12: ` }& '
4,884
Posted By kumar85shiv
Speed up the loop in shell script
Hi

I have written a shell script which will test 300 to 500 IPs to find which are pinging and which are not pinging.

the script which give output as

10.x.x.x is pining
10.x.x.x....
2,076
Posted By kumar85shiv
Time out set in perl script
Hi,

I am preparing a perl script, which will run some commads on remote Linux servers.

I have a file contains all the servers names one by one like below

vi servers.txt

srv1
...
5,284
Posted By kumar85shiv
Hi Finally I got it. Thanks for your...
Hi Finally I got it.

Thanks for your help.

#!/bin/bash
while read line
do
ssh -n $line "du -sh /tmp/* | awk '\$1 ~ /[0-9]G/{print \$0}'"
done < tmpsrv.txt
worked for me .
5,284
Posted By kumar85shiv
Hi As you suggested I changed the ssh...
Hi

As you suggested I changed the ssh line script as

while read line
do
ssh -n $line "du -sh /tmp/* | awk '\$1 ~ /G/'"
done < tmpsrv.txt


now not getting any out put.
...
5,284
Posted By kumar85shiv
Hi Ravinder, As per your advice I changed...
Hi Ravinder,

As per your advice I changed the script as like


#!/bin/bash
while read line
do
ssh -n $line "du -sh /tmp/* | awk '{if($1 ~ /[0-9]G/){print} }' "
done <...
5,284
Posted By kumar85shiv
Hi venky , I changed the script as like...
Hi venky ,

I changed the script as like this


#!/bin/bash
while read line
do
ssh -n $line "du -sh /tmp/* | awk '\$1 ~ /[0-9]G/{print $0}'"
done < tmpsrv.txt



but...
5,284
Posted By kumar85shiv
Hi Venky, I changed as you suggested. ...
Hi Venky,

I changed as you suggested.

But, there is no out put from the script.

here with -x option


bash -x kacey.sh
+ read line
+ ssh -n in001srv1 'cd /tmp; du -sh *...
5,284
Posted By kumar85shiv
Hi I changed as you suggested, but its...
Hi

I changed as you suggested, but its giving the same error.

awk: { ~ [0-9]G/ }
awk: ^ syntax error
awk: { ~ [0-9]G/ }
awk: ^ syntax error
awk: { ~ [0-9]G/ }
awk: ^...
5,284
Posted By kumar85shiv
Shell script to find the GB files in /tmp directory in remote server
Hi,
i need help on shell scripting.

Main intention of the script is
step 1: ssh to remote server
Step 2: cd /tmp in remote server
Step 3: in tmp i want to grep only files and...
17,457
Posted By kumar85shiv
yess....this is working out ... ...
yess....this is working out ...


Thank you very much
17,457
Posted By kumar85shiv
I added as you guided me ... ...
I added as you guided me ...


#!/bin/bash
#
#
while read line
do
/usr/sbin/ping -c5 $line > /dev/null
if [ $? == 0 ];
then
echo "$line is pinging"
...
17,457
Posted By kumar85shiv
Ping script to list of servers
Hi Friends,

I have experience in redhat/ Ubuntu OS, but I am very new to solaries os.

my servers OS is Oracle Solaris 10 8/11 s10x_u10wos_17b X86.

I have a file contains 200...
11,687
Posted By kumar85shiv
Automatic input "yes" in a shell script
Hi All,

I need a favour.

I have a file called "redhat_servers.txt" containing some server names line by line.

When I try to ssh to each server, and I have already done with ssh key-gen...
16,216
Posted By kumar85shiv
Deleting the files between particular dates
Hi

Please help me for the below task.

In my home directory if I run ls -l command, it lists all the files, here I want to delete files created from January 2014 to Aug 2014...but I need to...
20,639
Posted By kumar85shiv
List the IP address of list of servers
Hi

I have a file containing server names and i can ssh to all these servers without password.

Could any body suggest me how to list out IP address of all the servers?

Now i am manually...
Showing results 1 to 25 of 42

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