From help-request at octave dot org Fri Jul 15 14:42:45 2005 Subject: script for manual translation From: Jorge Barros de Abreu To: help at octave dot org Date: Fri, 15 Jul 2005 19:45:18 +0000 Hi for All. I make a script called traducao.sh that in shell work fine with: traducao.sh __bodquist__.pt Making some changes in ajuda.m: ## Portuguese help function function ajuda(varargin) for s = varargin nomearquivo = file_in_loadpath([s{1},'.pt']); if isempty(nomearquivo), help(s{1}); else system(translation.sh nomearquivo, 1) endif endfor end The sistem raw do not work. ajuda.m receive a parameter in nomearquivo. How to send this parameter to script shel via system command??? Which the system line correct???? system(translation.sh nomearquivo) system(translation.sh $nomearquivo, 1) system(translation.sh 'nomearquivo') Thanks ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------