|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I am using Sun OS 10 and trying to use mail in a shell script. Is there a bug in the -s parameter for the mail command. According to the api it should put the subject if used with -s, but it never does. Is there a workaround for this? Thanks, Anoop |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In article <1193633066.949903.59100@k79g2000hse.googlegroups. com>, Anoop wrote:
> Hi, > > I am using Sun OS 10 and trying to use mail in a shell script. > > Is there a bug in the -s parameter for the mail command. According to > the api it should put the subject if used with -s, but it never does. > Is there a workaround for this? > > Thanks, > Anoop > You could try constructing the message with a Subject: header. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Anoop wrote:
> Hi, > > I am using Sun OS 10 and trying to use mail in a shell script. > > Is there a bug in the -s parameter for the mail command. According to > the api it should put the subject if used with -s, but it never does. > Is there a workaround for this? Maybe the program mailx (instead of mail) does what you want on Sun OS. Janis > > Thanks, > Anoop > |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On Oct 29, 3:12 am, ChrisOD <ch...@dont.send.me.any.email> wrote:
> In article <1193633066.949903.59...@k79g2000hse.googlegroups. com>, Anoop wrote: > > Hi, > > > I am using Sun OS 10 and trying to use mail in a shell script. > > > Is there a bug in the -s parameter for the mail command. According to > > the api it should put the subject if used with -s, but it never does. > > Is there a workaround for this? > > > Thanks, > > Anoop > > You could try constructing the message with a Subject: header. Wow - I didnt know that you could do that - it worked very well - I wonder where I can find all the other such tags that go with the mail command. I just figured out that it supports the To: and the From: as well. Thank you - it worked nice. |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Anoop wrote:
> On Oct 29, 3:12 am, ChrisOD <ch...@dont.send.me.any.email> wrote: > >>In article <1193633066.949903.59...@k79g2000hse.googlegroups. com>, Anoop wrote: >> >>>Hi, >> >>>I am using Sun OS 10 and trying to use mail in a shell script. >> >>>Is there a bug in the -s parameter for the mail command. According to >>>the api it should put the subject if used with -s, but it never does. >>>Is there a workaround for this? >> >>>Thanks, >>>Anoop >> >>You could try constructing the message with a Subject: header. > > > Wow - I didnt know that you could do that - it worked very well - I > wonder where I can find all the other such tags that go with the mail > command. I'd start with RFC822 (http://www.ietf.org/rfc/). Janis > I just figured out that it supports the To: and the From: as well. > > Thank you - it worked nice. > |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
anoopkumarv@gmail.com wrote:
>On Oct 29, 3:12 am, ChrisOD <ch...@dont.send.me.any.email> wrote: >> In article <1193633066.949903.59...@k79g2000hse.googlegroups. com>, Anoop wrote: >> > Hi, >> >> > I am using Sun OS 10 and trying to use mail in a shell script. >> >> > Is there a bug in the -s parameter for the mail command. According to >> > the api it should put the subject if used with -s, but it never does. >> > Is there a workaround for this? >> >> > Thanks, >> > Anoop >> >> You could try constructing the message with a Subject: header. > >Wow - I didnt know that you could do that - it worked very well - I >wonder where I can find all the other such tags that go with the mail >command. >I just figured out that it supports the To: and the From: as well. > >Thank you - it worked nice. > Actually you can put any string you want in the header, as long as it is of form "Cap-Letter followed by non-blank in string followed by a : followed by anything eg - Commentary: junk mail -- --------------------------------------------------------------- Will Renkel Wheaton, Ill. --------------------------------------------------------------- |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
Mon, 29 Oct 2007 04:44:26 -0000 Anoop <anoopkumarv@gmail.com> wrote:
| Hi, | | I am using Sun OS 10 and trying to use mail in a shell script. | | Is there a bug in the -s parameter for the mail command. According to | the api it should put the subject if used with -s, but it never does. | Is there a workaround for this? | | Thanks, | Anoop | Use "" around the subject mailx -s "test-lnx-mailx `date`" awc@abc.adb |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Thu, 01 Nov 2007 01:04:07 +0100, Janis Papanagnou wrote:
> Anoop wrote: >> >> Wow - I didnt know that you could do that - it worked very well - I >> wonder where I can find all the other such tags that go with the mail >> command. > > I'd start with RFC822 (http://www.ietf.org/rfc/). > RFC 822 has been superseded by 2822. John. |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
On Nov 3, 3:10 pm, John Horne <john.ho...@plymouth.ac.uk> wrote:
> On Thu, 01 Nov 2007 01:04:07 +0100, Janis Papanagnou wrote: > > Anoop wrote: > > >> Wow - I didnt know that you could do that - it worked very well - I > >> wonder where I can find all the other such tags that go with the mail > >> command. > > > I'd start with RFC822 (http://www.ietf.org/rfc/). > > RFC 822 has been superseded by 2822. > > John. Thank you all - certainly very useful information. -Anoop |
|
![]() |
| Outils de la discussion | |
|
|