troubleshooting Question

PHP forward to pipe

Avatar of Starquest321
Starquest321 asked on
Web Languages and StandardsPHPScripting Languages
22 Comments2 Solutions1244 ViewsLast Modified:
Hi

I am trying to set up a forwarder to pipe to php script.

The entry in the forwarder list is as follow:

prakash@domain.com to |home5/nadlani1/public_html/parsing.php

The opening of the script is

#!/usr/bin/php -q
<?php

and the beginning of the bounce back message is:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home5/nadlani1/public_html/parsing.php
    generated by prakash@domain.com

The following text was generated during the delivery attempt:

------ pipe to |/home5/nadlani1/public_html/parsing.php
       generated by prakash@domain.com ------

Error in argument 1, char 3: option not found <
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
       php <file> [args...]
  -a               Run interactively
  -b <address:port>|<port> Bind Path for external FASTCGI Server mode
  -C               Do not chdir to the script's directory
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.  Implies `-q'
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -q               Quiet-mode.  Suppress HTTP Header output.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.
  -T <count>       Measure execution time of script repeated <count> times.



If I remove the -q I simply get a bounce back with the following header:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home5/nadlani1/public_html/parsing.php
    generated by prakash@domain.com
    local delivery failed

Attached file is parsing.php file for reference.
parsing.php
ASKER CERTIFIED SOLUTION
gr8gonzo
Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 22 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 22 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros