home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4130 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.8 KB

  1. From: notes@hpuslma.STL.MSR.HP.COM (Notes Administrator)
  2. Date: Sun, 9 Aug 1992 01:56:15 GMT
  3. Subject: Re: ELM and News Ports
  4. Message-ID: <10690@hpuslma.STL.MSR.HP.COM>
  5. Organization: Hewlett Packard St. Louis, Mo.
  6. Path: sparky!uunet!wupost!hpuslma!notes
  7. Newsgroups: comp.unix.bsd
  8. References: <2439@nic.cerf.net>
  9. Lines: 34
  10.  
  11. / hpuslma:comp.unix.bsd / greggb@nic.cerf.net (Gregg Brekke) /  1:45 am  Aug  1, 1992 /
  12. > greggb@nic.cerf.net writes:
  13. > Problem With Elm...  After getting it to compile by editing almost every
  14. > source file to either #define or #undef some of 386bsd's functions, it
  15. > compiled.  The problem is that when I go to send a message with it, the 
  16. > command line information gets sent to the program, but the /tmp/elm* file
  17. > doesn't get appended to the header.  ELM only creates a minimal header 
  18. > from the command line so 'elm joe@abc.edu' will get passed to ELM so joe
  19. > will get a blank message.  If anyone else has looked at the problem, it
  20. > seems to be in mailmsg2.c.  I just can't quite figure out where it is
  21. > messing up... permissions, location, string copy?
  22.  
  23. I had the same problem.  It turned out to be a problem with the command
  24. line passed to the system_call() function.  The sprintf generates a line that
  25. looks like:
  26.  
  27. "( (/usr/sbin/sendmail -oi -oem \"root\" ; rm -f /tmp/snd.#) & ) < /tmp/snd.#"
  28.  
  29. I believe there is an interaction with the first level sub-shell and the 
  30. sendmail process.  After starting the second level sub-shell in the background,
  31. the parent shell is incrementing the file pointer.  (Just a guess)
  32.  
  33. I fixed the problem by re-arranging the sprintf call to generate a command
  34. line that looks like:
  35.  
  36. "( (/usr/sbin/sendmail -oi -oem \"root\" < /tmp/snd.# ; rm -f /tmp/snd.#) & )"
  37.  
  38. I hope this helps,
  39.  
  40. Bill Nestor
  41. WDN and Associates, Limited
  42. St. Louis, MO
  43. (no current email address)
  44.  
  45.