Mumpster
http://mumpster.org/

Shell out to VMS mail....
http://mumpster.org/viewtopic.php?f=16&t=1684
Page 1 of 1

Author:  elektrik [ Tue Jan 31, 2012 2:16 pm ]
Post subject:  Shell out to VMS mail....

Hi All. So I've learned my first bit of code I'm trying to implement. Basically I *was* trying to insert this line of code into a .dat file so that every time our system wrote to a log file, I would fire off an email. I was told by my boss that because the file was 'jobbed' (??) out that my code would never be called.

Here's the code. If someone could explain more what he meant (and possibly offer me a workaround) I would bestow many blessings upon your crown :D :

s JH=$ZC(%SPAWN,"mail/subject="_$c(34)_"test"_$c(34)_" NL: "_$c(34)_"jerrold.horgan@xxx.com"_$c(34))

Thanks in advance

Author:  raynewman [ Thu Feb 02, 2012 1:49 pm ]
Post subject:  Re: Shell out to VMS mail....

Hi,
The problem is that a JOBbed process does not have access to DCL and hence SPAWN just doesn't work. Instead of JOBbing the process start it with a SPAWN; something like %=$ZC(%SPAWN,"DSM dsmcommands").

Ray

Author:  elektrik [ Sat Feb 04, 2012 10:24 am ]
Post subject:  Re: Shell out to VMS mail....

raynewman wrote:
Hi,
The problem is that a JOBbed process does not have access to DCL and hence SPAWN just doesn't work. Instead of JOBbing the process start it with a SPAWN; something like %=$ZC(%SPAWN,"DSM dsmcommands").

Ray


Ok, thanks! I'll start looking into that.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/