c Copyright (C) 2008-2014 Vincent Eymet c c KDISTRIBUTION is free software; you can redistribute it and/or modify c it under the terms of the GNU General Public License as published by c the Free Software Foundation; either version 3, or (at your option) c any later version. c KDISTRIBUTION is distributed in the hope that it will be useful, c but WITHOUT ANY WARRANTY; without even the implied warranty of c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the c GNU General Public License for more details. c You should have received a copy of the GNU General Public License c along with KDISTRIBUTION; if not, see c subroutine exec(command) implicit none include 'max.inc' c c Purpose: to execute the provided system command c c Input: c + command: character string (maximum 100 characters) that c contains the system command to execute c character*(Nchar_mx) command c label integer strlen character*(Nchar_mx) label label='subroutine exec' call system(command(1:strlen(command))) return end