Search Results

Search: Posts Made By: nalu
2,164
Posted By nalu
Hi All, I have tried the below code it's not...
Hi All,

I have tried the below code it's not working.It's sending mail every time when I have executed.

I have hard coded last_mail_date1 for initial comparison.After that once mail sent after...
2,164
Posted By nalu
Hi Robin, Thanks for making the code simple....
Hi Robin,

Thanks for making the code simple.

My main concern is we are storing the previous email sent in a prev_mail_sent.txt file. Instead of that we have to store in some variable.
Could...
2,164
Posted By nalu
How to send mail at specific calculated time interval?
Hi All,
I want to send an email if the time difference from previous mail sent is more than or equal to 30 mins.
I have written below code and it's working fine.
In this script I am storing...
5,909
Posted By nalu
Hi Ravinder, Thanks for your prompt...
Hi Ravinder,

Thanks for your prompt response.

This code is removing duplicate lines.
echo "$result_text" | awk '{sub(/[[:space:]]+$/,"");} !A[$0]++'

If I assign the result to a variable...
5,909
Posted By nalu
How to remove duplicate lines?
Hi All,
I am storing the result in the variable result_text using the below code.
result_text=$(printf "$result_text\t\n$name") The result_text is having the below text. Which is having duplicate...
2,571
Posted By nalu
Hi Don, Thanks a lot.
Hi Don,

Thanks a lot.
2,571
Posted By nalu
Hi Don, Pleasde find the details as below. ...
Hi Don,

Pleasde find the details as below.

What operating system (including release number) are you using?
Linux dev.voda.mp.com 2.6.18-400.1.1.el5 #1 SMP Sun Dec 14 06:01:17 EST 2014 x86_64...
2,571
Posted By nalu
Hi don, Thanks a lot for your response. ...
Hi don,

Thanks a lot for your response.


could you lease help me how to convert this tadv_voda_YYYY-MM-DD-??????_????-??-??-??????_????-??-??-??????.txt
to date format string as you said.
...
2,571
Posted By nalu
Hi, I have tried this but its not working as...
Hi,

I have tried this but its not working as expected.

file_format=xxx_xxxx_?????????????????_?????????????????_YYYY-MM-DD-HHIISS.txt
prog_name="abd_voda_"
interval=10

#checking before ....
2,571
Posted By nalu
How to find list of missing files based on the file format?
Hi All,

In the file names we have dates.
Based on the file format given by the user,
if any file is not existed for a particular date with in a given interval we should consider that file is...
1,649
Posted By nalu
Hi Rudic, Sorry for inadequate information....
Hi Rudic,

Sorry for inadequate information. I am providing proper information now.


#!/bin/ksh
file_date=$1
prefix=$2
suffix=$3
file_count=$(ls -l...
1,649
Posted By nalu
File count script not working properly
Hi Experts,

I have this script to count the number of files based on prefix and suffix values.

#!/bin/ksh
file_date=$1
prefix=$2
suffix=$3
file_count=$(ls -l...
1,928
Posted By nalu
Hi Rudic, This one won't work becoz we...
Hi Rudic,

This one won't work becoz we have time stamp in the date i.e.2017-04-24-150325.txt.And also the file format is not constant.

Please help me.

Thanks
1,928
Posted By nalu
Hi Rudic, In my script start will give date...
Hi Rudic,
In my script start will give date based on the parameter value of back_days_hr_min_hr_min.
For example if back_days_hr_min_hr_min=10
then start would be from yesterday 10 days back...
1,928
Posted By nalu
Hi Rudic, Thanks for your script. However this...
Hi Rudic,
Thanks for your script. However this is not serve my purpose.
I Want to find missing files in 10 days with more than one date in the file name.
I have the below files in the directory...
1,928
Posted By nalu
Hi Rudic, I have explained the requirement with...
Hi Rudic,
I have explained the requirement with expected result.
My requirement:
I want to find the missing files based on the date in the file name from current date to in a given interval of...
1,928
Posted By nalu
Identifying missing file dates
Hi Experts,
I have written the below script to check the missing files based on the date in the file name from current date to in a given interval of days.
In the file names we have dates along...
1,119
Posted By nalu
How to pass subject,mailbody and filename as parameters to function?
Hi Experts,
how to pass subject,mailbody and filename as parameters to function.


mode=$1
file=/db/files/uniq.txt
mail_send() {
export MAILPART=$(uuidgen)
export MAILPART_BODY=$(uuidgen)...
1,426
Posted By nalu
Hi All, Thanks a lot for your suggestions. ...
Hi All,

Thanks a lot for your suggestions.

Regards,
Nalu
1,426
Posted By nalu
Hi, Thanks a lot for your prompt response. ...
Hi,

Thanks a lot for your prompt response.
However it's giving expected output.

I have executed with 4 and 5 parameters. Both the cases I got the same output.


ksh p_values.ksh
param 4...
1,426
Posted By nalu
Not getting expected result
Hi Experts,

I have written the below script but its not working as per expectation.
My requirement is if this condition [[ $missing_count -gt 0 ]] is satisfied
then only check for this...
1,508
Posted By nalu
Hi, Thanks a lot for your support. ...
Hi,

Thanks a lot for your support.

Regards,
Nalu
1,508
Posted By nalu
I got file format not matching.
I got file format not matching.
1,508
Posted By nalu
Hi Thanks a lot for your script. If the file...
Hi
Thanks a lot for your script.
If the file name is only file name GE_20170222-153412.txt it's working fine.
The script is not working the file name as /db/files/GE_20170222-153412.txt
But in...
1,508
Posted By nalu
How to check user entered correct file format or not?
Hi Experts,

path=/db/files/
format=$1
User can enter any file format.compare the user file format with actual file format existed in the directory /db/files. User enter all characters as "A"...
Showing results 1 to 25 of 25

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