E-mail Notification for Automatic action (38 Views)
Reply
Occasional Visitor
Lee Walter
Posts: 3
Registered: ‎04-26-2000
Message 1 of 5 (38 Views)

E-mail Notification for Automatic action

I am using MKS and NNM 6.1 for Windows NT.

I type the following at "command for Automatic Action":
echo 'trap recieved from $E down' | smtpmail -h mail.xxx.com -s '$E down'
wlee@xxx.com

I never recieve the mail. However, the above command works from command line.

The followings are from the ovaction.log:
Wed Apr 26 14:19:40 Command "echo 'trap reciev from compaq down' | smtpmail -s
mai
l.xxx.com -s 'compaq down' wlee@xxx.com" returned standard output data:
'trap reciev from compaq down' | smtpmail -h mail.xxx.com -s 'compaq down'
wlee@xx
x.com

It seems to me the pipe never work. Only echo works.
Echo takes everything after echo as string and does not recongize the "|"
command.
I put c:\\mks\\mksnt\\echo.exe to use the echo from mks. The result is same.

Anyideas? Please help.
Thanks a lot.

Walter.
Super Advisor
Berlene Herren_1
Posts: 515
Registered: ‎10-15-1999
Message 2 of 5 (38 Views)

Re: E-mail Notification for Automatic action

Lee, make sure the owner is bin. Bin does the action.

Berlene
Occasional Visitor
Lee Walter
Posts: 3
Registered: ‎04-26-2000
Message 3 of 5 (38 Views)

Re: E-mail Notification for Automatic action

Berlene,
could you please explain what you mean when you say that owner is bin?
I am using Windows NT. There is no user named bin.
Please help. Thanks a lot.

Walter.
Occasional Contributor
Christoph Rothe
Posts: 6
Registered: ‎05-03-2000
Message 4 of 5 (38 Views)

Re: E-mail Notification for Automatic action

Hi,

a workaround could be, to write a little script which does the work and takes the message text and subject as a parameter.

Christoph
Advisor
Armindo Guilamba
Posts: 26
Registered: ‎06-09-2000
Message 5 of 5 (38 Views)

Re: E-mail Notification for Automatic action

Hi,

By default NT doesn't have user bin, it seems that the equivalent user bin is called LocalSystem Account.
I am not sure, but I believe that by default Automatic Actions are running in NT using a System Account while in UNIX they use user bin.

Thank you
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.