Recursive header for email body


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Recursive header for email body
# 8  
Old 02-03-2018
Quote:
Originally Posted by mirwasim
Dear there is a small problem i now noticed. actually when all the URLS are same then it work my URLs are changing , i mean it has different tab values like below
But all url start with http:// and end with .xhtml
can we do any minor change to achieve it

Code:
http://ad123:2015/see/protected/house.xhtml               
http://ad123:2015/see/protected/Profile.xhtml              
http://ad1234:2015/see/protected/meeting.xhtml

we can resolve this issue if we can decrease size of URL to http://ad1234:2015/see/. Because this will meet the code condition a
And...
  1. What rules are to be used when deciding how to "reduce the URL length in same code"?
  2. Exactly what output are you hoping to get from the three URLs you listed above?
Your example above seems to be saying that a list of 3 URLs is shortened by ignoring the 1st 2 URLs and stripping off the last 2 components of the 3rd URL. Since the 1st 2 URLs are from a different domain, that seems like a strange thing to do. Smilie
This User Gave Thanks to Don Cragun For This Post:
# 9  
Old 02-03-2018
Quote:
Originally Posted by Don Cragun
And...
  1. What rules are to be used when deciding how to "reduce the URL length in same code"?
  2. Exactly what output are you hoping to get from the three URLs you listed above?
Your example above seems to be saying that a list of 3 URLs is shortened by ignoring the 1st 2 URLs and stripping off the last 2 components of the 3rd URL. Since the 1st 2 URLs are from a different domain, that seems like a strange thing to do. Smilie
Thanks DON for your feedback.
if you can help me on below thread that will solve this problem of mine
the components which i asked to ignore are really not important


To get or print specific value in result
# 10  
Old 02-03-2018
Quote:
Originally Posted by mirwasim
Thanks DON for your feedback.
if you can help me on below thread that will solve this problem of mine
the components which i asked to ignore are really not important


To get or print specific value in result
Huh??? Smilie

No. This thread is discussing one topic and your other thread is discussing a different topic. Do not ask us to read another thread to understand the problem you are presenting in this thread. If you are saying this thread is a duplicate of the other thread, I'll be happy to close this thread for you!

You don't specify how a URL is supposed to be shortened in either thread and I'm not very good at making wild guesses about how to meet unspecified requirements.

If you can't explain the rules used to shorten a URL to us in English, we can only guess at what you want to be done. And, I don't see any logical reason why the three URLs:
Code:
http://ad123:2015/see/protected/house.xhtml               
http://ad123:2015/see/protected/Profile.xhtml              
http://ad1234:2015/see/protected/meeting.xhtml

should all be reduced to the single shortened URL:
Code:
http://ad1234:2015/see

And, your other thread with various unspecified text changes between the given input sample and the desired output is even harder to follow. If you're unwilling to explain exactly what transformations are to be performed and only complain that attempts to help you don't meet your constantly changing requirements, how do you expect us to be able to help you?
# 11  
Old 02-03-2018
Quote:
Originally Posted by Don Cragun
Huh??? Smilie

No. This thread is discussing one topic and your other thread is discussing a different topic. Do not ask us to read another thread to understand the problem you are presenting in this thread. If you are saying this thread is a duplicate of the other thread, I'll be happy to close this thread for you!

You don't specify how a URL is supposed to be shortened in either thread and I'm not very good at making wild guesses about how to meet unspecified requirements.

If you can't explain the rules used to shorten a URL to us in English, we can only guess at what you want to be done. And, I don't see any logical reason why the three URLs:
Code:
http://ad123:2015/see/protected/house.xhtml               
http://ad123:2015/see/protected/Profile.xhtml              
http://ad1234:2015/see/protected/meeting.xhtml

should all be reduced to the single shortened URL:
Code:
http://ad1234:2015/see

And, your other thread with various unspecified text changes between the given input sample and the desired output is even harder to follow. If you're unwilling to explain exactly what transformations are to be performed and only complain that attempts to help you don't meet your constantly changing requirements, how do you expect us to be able to help you?
Dear DON,
you can close this thread, actually this is not duplicate but that thread solution will solve this issue also for me
i will try to put more info in that thread to keep all the information in one place

thanks a lot
# 12  
Old 02-03-2018
Moderator's Comments:
Mod Comment This thread has been closed as requested by submitter.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mutt command email body

Hi Team, While sending the email using the mutt command, mail body not appearing properly and attachment it is showing without line breaks and i used the CSS Style (nowrapper )it is working fine. in this case how to handle the email body, please help me. (1 Reply)
Discussion started by: bmk123
1 Replies

2. Shell Programming and Scripting

Sendmail with header and footer logo in HTML body

Hello, I need help with my script that will send email via sendmail command that will shows both the header and footer logo once the recepient receive the email (e.g. MS Outlook). When I tested to ran the script it will successfully send the email BUT UNFORTUNATELY it doesn't displayed the... (8 Replies)
Discussion started by: lawrence88
8 Replies

3. Shell Programming and Scripting

awk print the body of an email

I have fetched a couple of emails and stored then in /fetch/mail/oracle.txt, the displayed content is Date: From: Subject: To: Content-Type: ---body ----- --------- Date: From: Subject: To: Content-Type: ----body ----- ------ Date: From: I want to retrieve the body only from... (3 Replies)
Discussion started by: maddog21
3 Replies

4. Shell Programming and Scripting

issue with Email Body

Hi, I have written shell program to send email as below - #!/bin/ksh filename=`ls -ltrh *.Z` echo $filename |mailx -s "FOR TESTING" rahul.b@infotech.net I am getting the email but email body is - -rw-rw-r-- 1 bahulra dba 173M Mar 22 04:37 corphist.txt.Z -rw-rw-r-- 1 bahulra dba 107M... (3 Replies)
Discussion started by: rahulbahulekar
3 Replies

5. Shell Programming and Scripting

Crontab issue: getting email but with out body

I have a oracle sh script test.sh #!/bin/bash R=`sqlplus -S *****/*********@dfsdf <<ENDOFSQL set serveroutput on size unlimited; execute DBMS_SNAPSHOT.REFRESH( '"MIS_ADMIN"."MV_SURVEY_UNITS_CENSUS"','F'); execute DBMS_SNAPSHOT.REFRESH( '"MIS_ADMIN"."MV_SURVEY_UNITS_CENSUS_PART"','F');... (1 Reply)
Discussion started by: ramkia6
1 Replies

6. UNIX for Dummies Questions & Answers

Sending email with attachment and body

Hi I want to able to attach a file to a email and send it with a body the body of the email is within the "body" file, and the attachment in "atch" if i send like below it will send the email correctly /usr/sbin/sendmail me@you.com< body And when i send the attachment alone... (3 Replies)
Discussion started by: sridanu
3 Replies

7. Shell Programming and Scripting

The body of the Email -- mailx

Hi, I am using mailx command to send an email and i took the body of the email from a file, mailx -r gtt.org -s "Status Report " ss@org.com < $ProcessStatisticsFile but now i want to declare the body of the email in the command itself. I have tried with the following command but... (4 Replies)
Discussion started by: chinnu01
4 Replies

8. Shell Programming and Scripting

mailx requirement - email body header in bold and data content in normal text

Dear all- I have a requirement to send an email via email with body content which looks something below- Email body contents -------------------- RequestType: Update DateAcctOpened: 1/5/2010 Note that header information and data content should be normal text.. Please advice on... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

9. Shell Programming and Scripting

emailing as body of email

hi all, how do i email a file in the body of an email rather than as an attachment ?? have a ksh script which i need to read a file and email as part of the body rather than an attachment. my code is : uuencode file.log | mailx -s "test" but this sends file as an attachment. ... (2 Replies)
Discussion started by: cesarNZ
2 Replies

10. Shell Programming and Scripting

how to check body of the email

Dears, i have user called dellsh i hope to make this script when this user recieve email check the budy of the email about (StatusRequest) when i find this email contain this subject run crontab do this job (create file in my home directory called index) thanks for your attention (1 Reply)
Discussion started by: dellsh
1 Replies
Login or Register to Ask a Question