Email formatting gets disturbed because of screen resolution


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Email formatting gets disturbed because of screen resolution
# 1  
Old 04-15-2014
Email formatting gets disturbed because of screen resolution

Hi friends,

I have written a shell script which send a report to email address everyday.
The report is generated on UNIX server every day, Generated report is sent to 25 users through cron.
All 25 users have set different screen resolution for their monitor. The email looks wel formatted for the screen resolution on 1280x1024.
But some of users have different screen resolution set for their monitors, so the report sent to them is not wel formatted. some of columns get disturbed for them.
I use following command

Code:
cat report.txt | mailx -s "report for today" <list of 25 email IDs>

Is there any command which will send the same report to all users irrespective of their monitor's screen resolution ?
# 2  
Old 04-15-2014
the formatting has nothing to do with the mailer or mailx, you catenate a .txt file... if there is something that is unsuitable its the formatting of your input file you need to correct, or else you will have to customise the email client to suit the monitor...
# 3  
Old 04-15-2014
can you give a sample view with rows and column for report.txt ?
# 4  
Old 04-15-2014
Code:
------------------------------|------------------|
Parameter_Name                |Status            |          
------------------------------|------------------| 
Banking                       |Ok                                
Finanace                      |50% hike                      
Loan_Deprtment                |ok                              
HR_Group                      |Defaulters

# 5  
Old 04-15-2014
Quote:
Originally Posted by Nakul_sh
Code:
------------------------------|------------------|
Parameter_Name                |Status            |          
------------------------------|------------------| 
Banking                       |Ok                                
Finanace                      |50% hike                      
Loan_Deprtment                |ok                              
HR_Group                      |Defaulters


Hi Nakul,
I want to show a fıle example abot non-printable chars , like @vbe already mentioned unsuitable its the formatting

file view
Code:
# cat file
------------------------------|------------------|
Parameter_Name                |Status            |
------------------------------|------------------|
Banking                       |Ok
Finanace                      |50% hike
Loan_Deprtment                |ok
HR_Group                      |Defaulte


mail view (file view and below view is different because mailer client interpretates the input for view)
Code:
------------------------------|------------------|
Parameter_Name                |Status            |          
------------------------------|------------------| 
Banking  		 	     |Ok                                
Finanace                      |50% hike                      
Loan_Deprtment                |ok                              
HR_Group                      |Defaulters



non printable view
Code:
# cat -vte file
------------------------------|------------------|$
Parameter_Name                |Status            |          $
------------------------------|------------------| $
Banking  ^I^I      |Ok                                $
Finanace                      |50% hike                      $
Loan_Deprtment                |ok                              $
HR_Group                      |Defaulters$

so maybe your report.txt has some nonprintable characters.
check your report file for this and define a standart writing.
if everything is ok then may check your e-mailer client software settings (like encoding->smaller/larger)

regards
ygemici
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Screen Resolution

Hi all. I have a very peculiar problem in Solaris 10. The output of the m64config -prconf command with regards the Card Adapter is the following. Card possible resolutions: 720x400x85, 640x480x60, 640x480x72, 640x480x75 800x600x56, 800x600x60, 800x600x72, 800x600x75, 1024x768x60 ... (0 Replies)
Discussion started by: lynxman
0 Replies

2. Linux

How to change screen Resolution?

Dear all I install Cent OS 5.5 ( Linux OS), with bshell and also Windows OS on the my laptop (ASUA) maximum screen resolution in Windows OS is 1024*760 but in Cent OS 5.5 is 800 *600, I have a program that is necessary to install on Cent OS and I have problem with other Linux distributions... (2 Replies)
Discussion started by: mkhorami76
2 Replies

3. UNIX for Dummies Questions & Answers

Changing the screen resolution

I have installed several flavors of Linux and FreeBSD onto my machine. Now when I want to change my screen resolution, it only has one option which is 800x600. Is there a way to change that to a bigger resolution? And if there is, what file do I have to edit and what text editor do I have to use?... (2 Replies)
Discussion started by: figaro
2 Replies

4. Red Hat

Screen resolution before and after login

system: Fedora14 on vmware the login screen resolution is 1024*768, but after login the resolution is 800*600. I want to set the login screen resolution as 800*600 too. How to do this? thanks! (2 Replies)
Discussion started by: vistastar
2 Replies

5. UNIX for Dummies Questions & Answers

How to get current X screen resolution

Hi, I need to get the current X*Y resolution of X in a shell script. xrandr -q gives me a line like this: Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 3080 x 1600 How can I extract the X and Y current resolution values? sed, awk, cut or any other console solution is welcomed.... (2 Replies)
Discussion started by: tcfx44
2 Replies

6. Solaris

screen resolution

how to change screen resolution in CDE prompt (2 Replies)
Discussion started by: tirupathi
2 Replies

7. Solaris

Screen Saver Resolution

I am using sun solaris machine i have given the specs of that machine given below Name of athe Platform : SUNW,Ultra-5_10 Machiene hardware :sun4u Processor Type :sparc Operating system : solaris 10 Monitory TYpe : SAMSUNG Sync Master... (2 Replies)
Discussion started by: ambavaram
2 Replies

8. Solaris

Someone's got to know... Screen resolution question.

Hi all, Someone please help, I have a machine running Sun Solaris 5.8. X used to run fine, not it can't start. (possible user intervention) It looks to be trying to run at 1280x1024. I don't think the hardware will support it, it seems high. Anyways, how from the commandline, via ssh, can I... (4 Replies)
Discussion started by: komputersman
4 Replies

9. UNIX for Dummies Questions & Answers

Changing my Screen Resolution (Not in X)

I have no graphical environment, no X, just a shell... but its WAY bigger than my monitor... what do I do? (3 Replies)
Discussion started by: jjinno
3 Replies

10. Solaris

Changing Screen Resolution

I have installed Solaris 10 over vmware onto my machine. Now when I want to change my screen resolution it only has one option which is 800x600. Is there a way to change that to a bigger resollution? And if there is, what file do I have to edit and what text editor do I have to use? (1 Reply)
Discussion started by: Aco
1 Replies
Login or Register to Ask a Question