Итак, у меня есть скрипт .csh.
Я хочу вызвать другой скрипт .csh изнутри.
Я пытался
. / Shell_gen.csh test1 test2.prt
Но он запускает shell_gen.csh, но без аргументов командной строки.
Любой
Спасибо
generate.csh
#!/bin/csh
./shell_gen.csh test1 test2.prt
shell_gen.csh
#!/bin/csh
set source = output
############################################################
# create pbm-gifs/ directory
############################################################
set destination1 = /scratch/graphics/$1gif
echo making $destination1
if ( ! -e $destination1 ) then
mkdir $destination1
foreach file ( $source/*.pgm )
echo convert $file $destination1/$file:t:r.gif
convert $file $destination1/$file:t:r.gif
end
else
echo "$destination1/ exists"
endif