Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.mail.sendmail Subject: Re: full description of .forward Message-ID: <1990Nov22.151709.12767@mp.cs.niu.edu> Date: 22 Nov 90 15:17:09 GMT References: <1990Oct29.230614.4328@mp.cs.niu.edu> <6931@jhunix.HCF.JHU.EDU> <6306@minyos.xx.rmit.oz.au> Organization: Northern Illinois University Lines: 20 In article <6306@minyos.xx.rmit.oz.au> Michael Barnett writes: >What about running shell scripts instead of programs from the .forward file? >I have tried this but have had no success at all. Can someone please tell >me if this is possible at all. >-- Of course. In fact I would guess that most programs run from .forward are shell scripts. In a standard setup, the program is run with: /bin/sh -c "command" Check the definition of the 'prog' mailer in sendmail.cf to be sure. As long as the script is valid for the shell, and DOES NOT depend on any environment variables being preset, it should work. (Best you define PATH as the first statement of the script). -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940