Commit 1ee8dc64 authored by Anders Damsgaard's avatar Anders Damsgaard

chmod permissions to temporary file

parent d7952d3b
......@@ -6,7 +6,8 @@
%
% folder of input files
infolder = '~/src/cosmo/matlab';
%infolder = '~/src/cosmo/matlab';
infolder = '/tmp';
% infinite loop
while 1
......@@ -20,4 +21,4 @@ while 1
%break
end
end
\ No newline at end of file
end
......@@ -158,6 +158,10 @@ if (is_writable($outputfile)) {
die("The php server output file $outputfile is not writable");
}
// change permissions of output file
if (!chmod($outputfile, 0777)) {
die("The php server could not set proper permissions for $outputfile.");
}
//$data = addslashes($_POST['sample_id']) . '\t';
//$returnstatus = file_put_contents($tmpfile, $data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment