Hello
I have a problem running following shell command from php exec or
system call:
exec("/bin/cat $(/bin/cat list.txt) > concatenated.tx t"). 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.t xt).
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.tx t.
Any advice appreciated! :)
I have a problem running following shell command from php exec or
system call:
exec("/bin/cat $(/bin/cat list.txt) > concatenated.tx t"). 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.t xt).
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.tx t.
Any advice appreciated! :)
Comment