Menu

#622 a patch for command line call script

None
closed-accepted
nobody
None
5
2013-10-19
2013-06-05
No

This patch represents my idea and is not complete.
It allows us to specify "call" script on the command line.
For example, we may specify the following "call" script file1.gp:

print "arg=$# p0=$0 p1=$1"

with options for it:

% gnuplot -c file.gp "abcd" 12

Similar feature may be realized by setting variables by -e option,
but this is more useful for Unix. If we add a line

!/usr/local/bin/gnuplot -c

to the top of the script, and add executable property, then
we may run the script with options

% ./file1.gp "abcd" 12

Off course we cannot specify another script files after the -c
option.

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2013-09-09
    • status: open --> pending-accepted
    • Group: -->
     
  • Ethan Merritt

    Ethan Merritt - 2013-10-19
    • status: pending-accepted --> closed-accepted
     

Log in to post a comment.