Reply to Re: shell symbols and exec problem

Your name:

Reply:


Posted by Erwin Moller on 11/18/00 11:43

new guy wrote:

> Hello
> I have a problem running following shell command from php exec or
> system call:
> exec("/bin/cat $(/bin/cat list.txt) > concatenated.txt"). This works
> when i run it directly from the shell as user nobody (apache user), so
> its not a path/permissions problem.
> Basically list.txt contains a list of filenames, which are to be read
> and concatenated into one big file (concatenated.txt).
> I have even tried writing a shell script, wrapping this command, and
> tried running it, but still no result. The script either way just
> writes an empty concatenated.txt.
> Any advice appreciated! :)

Just an idea: Give the whole path to concatenated.txt might help.

Regards,
Erwin Moller

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация