Re: IDLSpecII: IDL Speed Survey Redux! [message #17475] |
Fri, 22 October 1999 00:00 |
J.D. Smith
Messages: 214 Registered: August 1996
|
Senior Member |
|
|
wmc@bas.ac.uk wrote:
>
> J.D. Smith <jdsmith@astro.cornell.edu> wrote:
>> wmc@bas.ac.uk wrote:
>>> Aside: the auto-email failed, with no obvious indication of why.
>
>> Thanks. The auto-email code is basically:
>
>> spawn,/SH,'mail -s "SUBJ" user@company.com < file 2>&1 1>/dev/null', r
>> if strlen(strtrim(r[0],2)) ne 0 then begin
>> print,'Error sending email.'
>> endif
>
>> If "mail" is not available on your path, or if it is not configured for
>> sending, it will fail. Maybe you could try sending a message to yourself
>> from IDL via spawn in this manner and let me know the results. Make
>> sure something exists in "file". Is there a more generic spawn command
>> I could use to accomodate Alpha's?
>
> The error I get back with that command is:
>
> usage: binmail [-epqbhr] [-f file]
> or binmail [-d] [-r name] [-h N] user ...
>
> It works if I replace "mail" with "Mail". This may be more of a peculiarity of
> our system than a generic alpha thing... but you could let the script have a second
> go with "Mail" if the first send fails, perhaps?
>
I changed it to spawn "Mail", since on the Linux and Solaris systems I
checked on, this was simply a link to "mail", or a link to the same
program as "mail".
Anyone see a problem with this?
JD
--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
|
|
|
Re: IDLSpecII: IDL Speed Survey Redux! [message #17481 is a reply to message #17475] |
Fri, 22 October 1999 00:00  |
wmc
Messages: 117 Registered: February 1995
|
Senior Member |
|
|
J.D. Smith <jdsmith@astro.cornell.edu> wrote:
> wmc@bas.ac.uk wrote:
>> Aside: the auto-email failed, with no obvious indication of why.
> Thanks. The auto-email code is basically:
> spawn,/SH,'mail -s "SUBJ" user@company.com < file 2>&1 1>/dev/null', r
> if strlen(strtrim(r[0],2)) ne 0 then begin
> print,'Error sending email.'
> endif
> If "mail" is not available on your path, or if it is not configured for
> sending, it will fail. Maybe you could try sending a message to yourself
> from IDL via spawn in this manner and let me know the results. Make
> sure something exists in "file". Is there a more generic spawn command
> I could use to accomodate Alpha's?
The error I get back with that command is:
usage: binmail [-epqbhr] [-f file]
or binmail [-d] [-r name] [-h N] user ...
It works if I replace "mail" with "Mail". This may be more of a peculiarity of
our system than a generic alpha thing... but you could let the script have a second
go with "Mail" if the first send fails, perhaps?
-W.
--
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
|
|
|
Re: IDLSpecII: IDL Speed Survey Redux! [message #17483 is a reply to message #17475] |
Thu, 21 October 1999 00:00  |
J.D. Smith
Messages: 214 Registered: August 1996
|
Senior Member |
|
|
wmc@bas.ac.uk wrote:
>
> J.D. Smith <jdsmith@astro.cornell.edu> wrote:
>> http://www.astro.cornell.edu/idlspec/is2.html
>
>> Note: IDLSpecII uses a special-purpose email address for automatic
>> entry processing: idlspec@astro.cornell.edu. Please do not mail IS2
>> results to my address.
>
> Very nicely done... I've added an entry.
>
> Aside: the auto-email failed, with no obvious indication of why.
>
Thanks. The auto-email code is basically:
spawn,/SH,'mail -s "SUBJ" user@company.com < file 2>&1 1>/dev/null', r
if strlen(strtrim(r[0],2)) ne 0 then begin
print,'Error sending email.'
endif
If "mail" is not available on your path, or if it is not configured for
sending, it will fail. Maybe you could try sending a message to yourself
from IDL via spawn in this manner and let me know the results. Make
sure something exists in "file". Is there a more generic spawn command
I could use to accomodate Alpha's?
Thanks,
JD
--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
|
|
|
|