What's my name?

Dean S. Messing deanm at sharplabs.com
Thu Mar 22 22:40:59 CET 2012


Is there a scilab command that will allow a script (say "foo.sci")
called by exec() to return its own file name?

In other words is there something that will cause "magic_command()" to
return a string containing "foo.sci" in the following:

=== from bah.sci (or commandline) ===
exec("foo.sci");


=== foo.sci ===
s = magic_command();
mprintf("My name is: %s\n", s);



More information about the users mailing list