- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- mailx truncate line exceed tot characters
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 06:50 PM
тАО08-08-2006 06:50 PM
mailx truncate line exceed tot characters
I use the command:
cat file|mailx -s "subject" name@domain.com
Why? It's possibile change some parameters in mailx.rc or sendmail.cf for increasing max characters for line?
Thanks!
- Tags:
- mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 06:53 PM
тАО08-08-2006 06:53 PM
Re: mailx truncate line exceed tot characters
# mailx -s "subject" name@domain.com < file
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 07:00 PM
тАО08-08-2006 07:00 PM
Re: mailx truncate line exceed tot characters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 07:31 PM
тАО08-08-2006 07:31 PM
Re: mailx truncate line exceed tot characters
you are sending > 3000 char on ONE line ?
How did you create the data ?
Are you sure it is not your editor truncating?
Have you tried creating a 3000 char single line file and sending it; how big is the file when you receive it? If it is 3000 char , then all the data was sent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 07:38 PM
тАО08-08-2006 07:38 PM
Re: mailx truncate line exceed tot characters
>you are sending > 3000 char on ONE line ?
Yes
>How did you create the data ?
Java log read from OV Operation
>Are you sure it is not your editor >truncating?
Which editor? No no, OV Operation pass the line to my script that send it with mailx...
>Have you tried creating a 3000 char single >line file and sending it; how big is the >file when you receive it? If it is 3000 >char , then all the data was sent.
Yes I've tried, ma file contains one lineof 3000 char but I receive a mail with only 2000 char approximately
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 08:15 PM
тАО08-08-2006 08:15 PM
Re: mailx truncate line exceed tot characters
if there are no control characters forcing termination, all I can think of is that the
MAXLINE identifier in conf.h for smtp is set.
See your sendmail code directory.
"#define MAXLINE 2048 /* max line length */"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 11:41 PM
тАО08-08-2006 11:41 PM
Re: mailx truncate line exceed tot characters
- Tags:
- shar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2006 02:35 AM
тАО08-09-2006 02:35 AM
Re: mailx truncate line exceed tot characters
cat file | fold -s -w 80 | mailx.......
Will break the file into lines of no more than 80 character per line. The breaks will occur at whitespace between words.
"man fold" for other options and details
good luck...scott
- Tags:
- fold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2006 04:34 AM
тАО08-09-2006 04:34 AM
Re: mailx truncate line exceed tot characters
adjust -m78 JavaLogFile | mailx -s "Java log" name@machine.com
adjust is particularly nice as it folds the line at the nearest breakpoint (ie, space or tab).
Bill Hassell, sysadmin
- Tags:
- adjust