It is currently Thu Mar 28, 2024 12:09 pm


All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Shell out to VMS mail....
PostPosted: Tue Jan 31, 2012 2:16 pm 

Joined: Fri Dec 23, 2011 11:04 am
Posts: 5
Real Name: Jerrold
Began Programming in MUMPS: 22 Dec 2011
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


Last edited by elektrik on Sat Feb 04, 2012 10:26 am, edited 1 time in total.

Top
Offline Profile  
 
 Post subject: Re: Shell out to VMS mail....
PostPosted: Thu Feb 02, 2012 1:49 pm 
User avatar

Joined: Mon Nov 01, 2010 3:33 pm
Posts: 104
Location: Australia
Real Name: Ray Newman
Began Programming in MUMPS: 01 Jul 1976
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


Top
Offline Profile  
 
 Post subject: Re: Shell out to VMS mail....
PostPosted: Sat Feb 04, 2012 10:24 am 

Joined: Fri Dec 23, 2011 11:04 am
Posts: 5
Real Name: Jerrold
Began Programming in MUMPS: 22 Dec 2011
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.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net