$ cat > test.m write " $ZCMDLINE=",$ZCMDLINE,! quit $ mumps -run test OTHER information $ZCMDLINE=OTHER information $
$ cat foo.m foo ; a routine to invoke an arbitrary entry with or without parameters ; set $etrap="" ; exit if the input isn't valid if $length($zcmdline) do @$zcmdline quit quit $ mumps -run foo 'BAR^FOOBAR("hello")'
![]() | Important |
---|---|
Use the ^%XCMD utility to XECUTEs code from the shell command line and return any error status (truncated to a single byte on UNIX) that the code generates. For more information, refer to “ %XCMD”. |