El lun, 09-08-2004 a las 16:38, Edgard Pineda Leone. escribió: > On Mon, 9 Aug 2004, Ricardo Mun~oz A. wrote:
[...] > > podrias probar con > > > > #!/usr/bin/php -q -c /home/proy/devel > > Se nota que no leiste bien el email: poner un segundo parametro no > resulta y sale el error que mencione, con cualquier combinacion que hagas. > En fin, mi problema es que solo funciona con un parametro -algo y al > poner mas parametros el ejecutable php no recibe ninguno... sé que es algo > del shell seguramente pero no encuentro en Internet algo sobre eso o no > encuentro las palabras adecuadas para buscar en Internet. ahora si, te capte... si haces un 'man bash' luego buscas /#! aparece lo siguiente: "If the program is a file beginning with #!, the remainder of the first line specifies an interpreter for the program. The shell executes the specified interpreter on operating systems that do not handle this exe- cutable format themselves. The arguments to the interpreter consist of a single optional argument following the interpreter name on the first line of the program, followed by the name of the program, followed by the command arguments, if any." donde dice _single optional argument_ creo se refiere a tu problema... por lo tanto el comentario de Alvaro de que "PHP es un lenguaje sin esperanza" fue totalmente innecesario... -- Ricardo Mun~oz A. Usuario Linux #182825 (counter.li.org)