Search Results

Search: Posts Made By: Chenchireddy
2,793
Posted By Chenchireddy
I need to delete whole destination with folder...
I need to delete whole destination with folder and subfolders files.

thanks.
2,793
Posted By Chenchireddy
Rsync not deleting destination files/folders
Hi All,

I want delete all files from destination folder. I am trying below commands


rsync -avFF --delete-after /home/vizion/source/ /home/vizion/destination/



I need to be...
1,024
Posted By Chenchireddy
If the script posting message "JBoss is not...
If the script posting message "JBoss is not running ". Depends that message we need to invoke another script below

#! /bin/bash

/home/vision/Desktop/Jboss/bin/run.sh


Needs to...
1,024
Posted By Chenchireddy
Depend on Script message needs to be invoke anothe script
I have script below

#! /bin/bash
if [ -z "$(ps -ef | grep java | grep jboss)" ]
then
echo "JBoss is NOT running"
else
echo "JBoss is running"
fi

If JBoss is NOT...
2,434
Posted By Chenchireddy
This is my actual script this processing my...
This is my actual script this processing my Apache logs spiting depends on CNAME and SCODE. what happening now copying all file from Raw_dir to Processing_dir and then splitting the logs depending on...
2,434
Posted By Chenchireddy
Is it possible to push to loop one after another...
Is it possible to push to loop one after another from bulk list of file ?

Please suggest to me how ?
2,434
Posted By Chenchireddy
Thanks for your suggestion the above script is...
Thanks for your suggestion the above script is for all file processing at a time.

My requirement is
First file i.e abc.txt copy then process and then move after take second file def.txt copy...
2,434
Posted By Chenchireddy
File processing one after another file
Hi,

I have requirement to process my script to process one after another

Example

directory /opt/ftplogs it contains 10 t0 100 files like below

adn_DF9D_20140618_0001.log
...
1,019
Posted By Chenchireddy
Thanks for update where is missing the space
Thanks for update

where is missing the space
1,019
Posted By Chenchireddy
File lines starts with # not processed or exclude that lines from processing
I have a file like below
#Fields section bald
1234 2345 456 222
abcs dddd dddd ssss
mmmm mmm mmm

i need do not process a files stating with #

I was written code below

while read -r line...
1,147
Posted By Chenchireddy
File lines starts with # not processed or exclude that lines
I have requirement in my every files starting lines have # needs to be not processing or exclude the that lines.

I have written a code like below, but now working as expected getting ERROR" line...
2,594
Posted By Chenchireddy
Thanks for your update. I am sure that while...
Thanks for your update.
I am sure that while compression and decompression while reading the files.
I have daily getting the 200 or more files generating my application per hour
Please suggests to...
2,594
Posted By Chenchireddy
Shell script reading file slow
I have shell program as below

#!/bin/sh
echo ======= LogManageri start ==========

#This directory is getting the raw data from remote server
Raw_data=/opt/ftplogs

# This directory is ready...
1,385
Posted By Chenchireddy
When i am running the script it's working as...
When i am running the script it's working as expected. but when i am given absolute path of .gz files getting the error "./exa2: line 2: /home/vizion/Desktop/gzipfile//home/vizion/Desktop/*: No such...
1,385
Posted By Chenchireddy
Multiple .gz decompress files and dump other directory
I have code below

for i in *.gz; do gzip -dc $i /home/vizion/Desktop/gzipfile/; done

one more
for i in *.gz; do gunzip -dc $i /home/vizion/Desktop/gzipfile/; done

both are getting error:...
4,056
Posted By Chenchireddy
Now am getting which is expecting using below...
Now am getting which is expecting using below script

#!/bin/ksh
while read -r line
do
cname=$(echo ${line} | awk '{split($7,c,"/"); print c[3]}')
scode=$(echo ${line} | awk...
4,056
Posted By Chenchireddy
Line 6: :: invalid character in expression - +http://www.google.com/bot.html)"
Hi,
Thanks for script but not working below log
66.249.75.49 - - [15/May/2014:00:12:01 +0000] "GET http://abc.def.com/80DF9D/plantronics/us/support/software-downloads/download.jsp HTTP/1.1" 200...
4,056
Posted By Chenchireddy
heyyy ---------- Post updated at 07:26 AM...
heyyy

---------- Post updated at 07:26 AM ---------- Previous update was at 07:22 AM ----------

Thank you very much pilnet
script is working as expected.
but I want keep all access and...
4,056
Posted By Chenchireddy
Hi , Thanks for you it seem to be...
Hi ,

Thanks for you it seem to be working, but
1) I need to send status code 200 to 399 to all send to access log
2) I need to send status code 400 to 599 send to error log

Please...
4,056
Posted By Chenchireddy
Hi Srini Thanks for your prompt response ...
Hi Srini
Thanks for your prompt response

Generally we called Cname after GET from access logs
ex : GET /common/

Simply say when common(ex:/common/) and status code(ex. 404) match...
4,056
Posted By Chenchireddy
UNIX shell script to search a string in a file
Hi folks,

I am new for shell script, I hope somebody to help me to write shell script
My requirement is below steps
1. I have apache access.log i.e located in /var/log/httpd/
Ex....
Showing results 1 to 21 of 21

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