[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

detecting .m file name

From: John W. Eaton
Subject: detecting .m file name
Date: Mon, 22 Jun 1998 23:53:18 -0500 (CDT)

On 21-Jun-1998, Wonkoo Kim <address@hidden> wrote:

| I'm using Octave 2.0.13 for OS/2.
| Can I know .m file name when it is running?  (like program_name)
| I want to detect which .m file is running, for a batch job.

It's not clear to me exactly what you want.  Can you give an example?

If it is to get the name of a script file while it is running,
program_name gives you that provided that you are running it with

  octave script.m



(by using the `#!' hack on Unixy systems and making the file script.m


reply via email to

[Prev in Thread] Current Thread [Next in Thread]