I am having an issue with removing temporarily files I am creating under the /www directory. I have a subdir, "/www/csv", where csv formatted files are being written based on sensor data. The files are created on-demand on the YUN, placed in the /www/csv dir, with the whole process driven by a REST call and an AJAX implementation in a browser. The files are created with no problem with a Filesystem.open(path, FILE_WRITE); call. I can also use the Process calls from the bridge library to rename the file after it is full written. However, if I try to use Process calls (i.e. p.begin("rm");, etc, etc) to remove the files after use, the files are never deleted. I also tried the "mv" the files to /tmp so they would get cleaned up by the OS eventually, but that fails also. I have the rights to /www and /www/csv set to "777". I am assuming this is an access rights issue, however I am unsure what user my REST calls are running as (it would be whatever the default is for a YUN as I have created no additional users on the system).
Thanks in advance, Pete
rmi wouldchown. (p.s. 777 is NEVER the answer). – Tyson Feb 16 '15 at 02:16chownwould help. – DaveP Feb 16 '15 at 06:45