open (MAIL, "|-", "$mailprog" , "-t");
gives me the following in the error log... Can't use an undefined value as filehandle reference at /home/rob/cgi-bin/completeOrder.cgi line 9. On Thu, 11 Oct 2001, Kipp, James wrote: > > > > my($name) = "John"; > > my($mailprog) = '/usr/sbin/sendmail'; > > my($recipient) = '[EMAIL PROTECTED]'; > > open (MAIL, "|$mailprog -t"); #The script fails here > > Try this: > open (MAIL, "|-", "$mailprog" , "-t"); #avoids using the shell > > or you can do at the top of script: > $ENV{PATH} = 'bin:/usr/bin'; # restrict the path env var > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]