Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Sendmail with cat adding extra spaces in email body Post 302899205 by visitsany on Monday 28th of April 2014 05:12:21 AM
Old 04-28-2014
For example here is my email body:
Code:
owb005:RUNN ING | Sessions:0 | HoggingThreadCount:0 | ThreadPoolState:HEALTH_OK| HeapFreePercent=71
owb006:RUNNING | Sessions:0 | HoggingThreadCount:0 | ThreadPoolState:HEALTH_OK| HeapFreePercent=22
owb007:RUNNING | Sessions:0 | HoggingThreadCount:0 | ThreadPoolState:HEALTH_OK| HeapFreePercent=45
owb008:RUNNING | Sessions:0 | HoggingThreadCount:0 | ThreadPoolState:HEAL TH_OK| HeapFreePercent=69
owb009:RUNNING | Sessions:0 | HoggingThreadCount:0 | ThreadPoolState:HEALTH_OK| HeapFreePercent=17


you can see space betweeb RUNNING and HEALTH_OK words

Last edited by Don Cragun; 04-28-2014 at 06:16 AM.. Reason: Add CODE tags.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sendmail message body buffer limit?

when sending the contents of a ascii file to the body of an email then sending it off. it seems sendmail is breaking up the lines with a "!" thus ruining the data. Has this ever happened to anyone? i am guessing there is a line buffer limit in either the mail command or in sendmail itself. ... (3 Replies)
Discussion started by: Optimus_P
3 Replies

2. Shell Programming and Scripting

Attaching file and sending text in body using sendmail command!!

Hello, I need to send with text in the body and 2 files as attachments using sendmail command. i can send only one at a time either attachment or text in body of email. Can any one please help me how to get that? I will be great for any help. Thanks, Sparan (1 Reply)
Discussion started by: sparan_peddu
1 Replies

3. Shell Programming and Scripting

Remove extra spaces in a line

Hi, I need a help in deleting extra spaces in a text. I have a huge file, a part of it is :- 3 09/21/08 03:32:07 started undef mino Oracle nmx004.wwdc.numonyx.com Message Text : The Oracle session with the PID 1103 has a CPU time ... (6 Replies)
Discussion started by: vikas027
6 Replies

4. Shell Programming and Scripting

Extra control characters being added when I create a file using cat command

Hi, I am using Cygwin.I created a new file and type into it using cat > newfile. When I open this using vi editor, it contains loads of extra control characters. Whats happening? (1 Reply)
Discussion started by: erora
1 Replies

5. Shell Programming and Scripting

Sendmail with HTML body and attachment

I have an HTML file I am currently sending in the body of an email. I now have a need to send a csv attachment along with it. I can ONLY use sendmail as mutt and xmail etc are not on the server. Here is what I am currently using: It is possible to add code to add an attachment ??!? { ... (8 Replies)
Discussion started by: atelford
8 Replies

6. Shell Programming and Scripting

Removing extra unwanted spaces

hi, i need to remove the extra spaces in the 2nd field. Sample: abc|bd |bkd123 .. 1space abc|badf |bakdsf123 .. 2space abc|bqe |bakuowe .. 3space Output: abc|bd|bkd123 abc|badf|bakdsf123 abc|bqe|bakuowe i used the following command, (9 Replies)
Discussion started by: anshaa
9 Replies

7. 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

8. Shell Programming and Scripting

Email body not formatted with html and sendmail

Hi All, I am trying to send the contents of a file as email body. I am using html email and sendmail option of unix. I am using the below piece of code for the same : #!/usr/bin/ksh export MAILTO="email@domain.com" export SUBJECT="Report" export BODY="file_directory_path/test_file.txt"... (1 Reply)
Discussion started by: rockygsd
1 Replies

9. UNIX for Dummies Questions & Answers

Sendmail with HTML body and attachment code issues

Hi, I was working on getting an HTML file in the mail body along with attaching a "csv" file to the mail. Below are the 2 parts of the code. I need help with the second part where I'm sending the mail. The HTML file as an attachment is perfect without any issues and with proper formatting.... (6 Replies)
Discussion started by: aster007
6 Replies

10. Shell Programming and Scripting

Sendmail cmd for html body and attachment not working

Hi, I am having trouble in sending a mail with html body and attachment (csv file). We don't have uuencode or mutt (not allowed to install as well) The below code is perfectly working for sending the html body alone: export MAILTO=abc@xyz.com export CONTENT="/home/abc/list.html"... (2 Replies)
Discussion started by: close2jay
2 Replies
sesman.ini(5)															     sesman.ini(5)

NAME
sesman.ini - Configuration file for sesman(8) DESCRIPTION
This is the man page for sesman.ini, sesman(8) configuration file. It is composed by a number of sections, each one composed by a section name, enclosed by square brackets, folowed by a list of <parameter>=<value> lines. sesman.ini supports the following sections: [Globals] - sesman global configuration section, [Logging] - logging subsystem parameters [Security] - Access control parameters [Sessions] - Session management parameters All options and values (except for file names and paths) are case insensitive, and are described in detail below. For any of the following parameter, if it's specified more than one time the last entry encountered will be used. NOTE: if any of these options is specified outside its section, it will be ignored. GLOBALS
The options to be specified in the [globals] section are the following: ListenAddress=ip address Specifies sesman listening address. Default is 0.0.0.0 (all interfaces) ListenPort=port number Specifies sesman listening port. Default is 3350 EnableUserWindowManager=[0|1] If set to 1, true or yes this option enables user specific window manager, that is, anyone can define it's own script executed by sesman when starting a new session, specified by UserWindowManager UserWindowManager=startwm.sh This option specifies the script run by sesman when starting a session and per-user window manager is enabled. The path is relative to user's HOME directory DefaultWindowManager=${SESMAN_BIN_DIR}/startwm.sh This contains full path to the default window manager startup script used by sesman to start a session LOGGING
The following parameters can be used in the [logging] section: LogFile=${SESMAN_LOG_DIR}/sesman.log This options contains the path to logfile. It can be either absolute or relative, and the default is ${SESMAN_LOG_DIR}/sesman.log LogLevel=level This option can have one of the following values: CORE or 0 - Log only core messages. these messages are _always_ logged, regardless the logging level selected. ERROR or 1 - Log only error messages WARNING, WARN or 2 - Logs warnings and error messages INFO or 3 - Logs errors, warnings and informational messages DEBUG or 4 - Log everything. If sesman is compiled in debug mode, this options will output many more low-level message, useful for developers EnableSyslog=[0|1] If set to 1, true or yes this option enables logging to syslog. Otherwise syslog is disabled. SyslogLevel=level This option sets the logging level for syslog. It can have the same values of LogLevel. If SyslogLevel is greater than LogLevel, its value is lowered to that of LogLevel. SESSIONS
The following parameters can be used in the [Sessions] section: MaxSessions=<number> Sets the maximum number of simultaneous session on terminal server. If unset or set to 0, unlimited session are allowed. KillDisconnected=[0|1] If set to 1, true or yes, every session will be killed when the user disconnects. -this option is currently ignored!- IdleTimeLimit=<number> Sets the the time limit before an idle session is disconnected. If set to 0, automatic disconnection is disabled. -this option is currently ignored!- DisconnectedTimeLimit=<number> Sets the the time limit before a disconnected session is killed. If set to 0, automatic killing is disabled. -this option is currently ignored!- SECURITY
The following parameters can be used in the [Sessions] section: AllowRootLogin=[0|1] If set to 1, true or yes enables root login on the terminal server MaxLoginRetry=[0|1] The number of login attempts that are allowed on terminal server. If set to 0, unlimited attempts are allowed. The default value for this field is 3. TerminalServerUsers=tsusers Only the users belonging to the group tsusers are allowed to login on terminal server. If unset or set to an invalid or non-existent group, login for all users is enabled. TerminalServerAdmins=tsadmins Sets the group which a user shall belong to have session management rights. -this option is currently ignored!- EXAMPLES
This is an example sesman.ini: [Globals] ListenAddress=127.0.0.1 ListenPort=3350 EnableUserWindowManager=1 UserWindowManager=startwm.sh DefaultWindowManager=startwm.sh [Logging] LogFile=/usr/local/xrdp/sesman.log LogLevel=DEBUG EnableSyslog=0 SyslogLevel=DEBUG [Sessions] MaxSessions=10 KillDisconnected=0 IdleTimeLimit=0 DisconnectedTimeLimit=0 [Security] AllowRootLogin=1 MaxLoginRetry=3 TerminalServerUsers=tsusers TerminalServerAdmins=tsadmins FILES
${SESMAN_CFG_DIR}/sesman.ini SEE ALSO
sesman(8) sesrun(8) xrdp(8) xrdp.ini(5) for more info on xrdp see http://xrdp.sf.net xrdp team 0.1.0 sesman.ini(5)
All times are GMT -4. The time now is 02:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy