|
From: Thomas S. <t.s...@fz...> - 2008-04-09 15:57:05
|
> $ cat testit.gp > #!/usr/bin/gnuplot > print "$1", "$2" > print $1, $2 you need a wrapper-script, e.g. gnuplot_wrapper.sh: #!/bin/sh gnuplot - << END call "$1" $2 $3 $4 $5 $6 $7 $8 $9 END and you start a gnuplot script, e.g. test.gnu: print "argc=$# p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x" like this: gnuplot_wrapper.sh test.gnu a b c d e f g h i j k and get: gnuplot> call "ts.gpl" a b c d e f g h argc=8 p0=a p1=b p2=c p3=d p4=e p5=f p6=g p7=xhx gnuplot> -- View this message in context: http://www.nabble.com/How-do-I-pass-values-into-a-script--tp16576617p16588343.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |