Hi everyone,It seems the default place for files written by HTML- embedded erl code is /var/log.like this:
Blah-blah<erl>... BIN = ...file:write_file("Funny_place_to_hide_the_file.bin", BIN).</erl>
Is there some reason for using /var/log ?Or just an accident.Best Wishes,Val.
On Mon, Jul 26, 2010 at 12:45 AM, Val Groundhog <survb04@...> wrote:
> Hi everyone,
> It seems the default place for files written by HTML- embedded erl code is
> like this:
> BIN = ...
> file:write_file("Funny_place_to_hide_the_file.bin", BIN).
> Is there some reason for using /var/log ?
> Or just an accident.
As far as I can see, nothing in the yaws source code or startup scripts sets
the working directory. So perhaps you're starting yaws in /var/log yourself?
What OS are you running on, and what version of yaws? (Please, everyone,
when reporting issues or asking questions, always include these two pieces
Generally, if you want a file written to a specific place, it's best that
you make your code put the file where you want it, rather than counting on
the web server running in a specific directory.
Get latest updates about Open Source Projects, Conferences and News.