tfix hostname check - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations (HTM) git clone git://src.adamsgaard.dk/cosmo (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 6ce8dbf897e2fe16177ec029c9366a3cc48c0836 (DIR) parent 87386d6688b80e39435c659b3b60d15c2148fa09 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk> Date: Fri, 23 Oct 2015 15:56:04 +0200 fix hostname check Diffstat: M matlab/file_scanner_mcmc_starter.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- (DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m t@@ -12,7 +12,8 @@ infolder = '~/cosmo/input'; % folder for generated plots -if strcmp(system('hostname'), 'flaptop') % laptop +[status, hostname] = system('hostname'); +if strfind(hostname, 'flaptop') % laptop outfolder = 'output/'; else % server outfolder = '/var/www/html/output/';