#! /bin/csh
set d = /tmp_mnt/auto/srd26/export/yoshi/tool/cos2/sfc

if ($#argv != 5) then
	echo "**** error ****"
	exit
endif

	echo cat scrout.chr1 scrout.chr2 > scrout.chr
	     cat scrout.chr1 scrout.chr2 > scrout.chr

	echo rsh srd13 "cd $d; nice +19 vcad -c4 scrout.chr scrout 0 7000"
	     rsh srd13 "cd $d; nice +19 vcad -c4 scrout.chr scrout 0 7000"

	echo print_b4 $argv[1] $argv[2] $argv[3]
	     print_b4 $argv[1] $argv[2] $argv[3]

	echo cp $argv[1]*.xwd /tmp_mnt/auto/srd26/export/yoshi/JPN/course/w_$argv[4]/c_$argv[5]/.
	     cp $argv[1]*.xwd /tmp_mnt/auto/srd26/export/yoshi/JPN/course/w_$argv[4]/c_$argv[5]/.

	echo 'rm' $argv[1]*.xwd
	     'rm' $argv[1]*.xwd

	echo 'rm' scrout.*
	     'rm' scrout.*
beep
