LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > /usr/bin/mailx: invalid option -- b

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2009, 06:50 AM
munduk75 munduk75 is offline
New Member
 
Join Date: Jun 2009
Posts: 7
Default /usr/bin/mailx: invalid option -- b

Hi,

Under Debian I cannot get LS to send an email when a new release is available.

OS : Debian Lenny 64 bits
LSWS : 4.0.8 Standard

- error msg :
Code:
2009-08-20 19:43:50.848 [STDERR] /usr/bin/mailx: invalid option -- b
2009-08-20 19:43:50.876 [STDERR] Try `mailx --help' or `mailx --usage' for more information.
- mail/mailx :

Code:
# mailx --version
mail (GNU Mailutils 1.2)


# mailx --help
Usage: mailx [OPTION...] [address...]
GNU mail -- the standard /usr/bin/mail interface

  -a, --append=HEADER: VALUE Append given header to the message being sent
  -e, --exist                Return true if mail exists
  -E, --exec=COMMAND         Execute COMMAND
  -f, --file[=URL]           Operate on given mailbox URL (default ~/mbox)
  -F, --byname               Save messages according to sender
  -H, --headers              Write a header summary and exit
  -i, --ignore               Ignore interrupts
  -n, --norc                 Do not read the system mailrc file
  -N, --nosum                Do not display initial header summary
  -p, --print                Print all mail to standard output
  -q, --quit                 Cause interrupts to terminate program
  -r, --read                 Same as -p
  -s, --subject=SUBJ         Send a message with a Subject of SUBJ
  -t, --to                   Precede message by a list of addresses
  -u, --user=USER            Operate on USER's mailbox
Reply With Quote
  #2  
Old 09-09-2009, 08:52 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
your mailx is not the default one for Debian. Below is from my Debian:
Code:
# mailx --help
mailx: invalid option -- -
usage: mailx [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject]
             to-addr [...] [-- sendmail-options [...]]
       mailx [-eIiNnv] -f [name]
       mailx [-eIiNnv] [-u user]
#
# aptitude install mailx

will install the default mailx.
Reply With Quote
  #3  
Old 09-10-2009, 07:49 AM
munduk75 munduk75 is offline
New Member
 
Join Date: Jun 2009
Posts: 7
I don't know why the GNU one was installed by default.
Anyway, it works now thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:39 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.