monica1
20th April 2004, 14:18
I have install BaaN with Unix and I need to execute a unix command from a session. It's possible? How can I do that?

dkulikow
20th April 2004, 15:41
Hello! From your comments, I believe you are trying to run something from unix within a program script.

If so, here is one way to call a script:
function process.upload.script()
{
e = shell("cd /usr/local/flexfab/bin",0)
e = shell("barcode_upload",0)
}

Hope this helps....

NPRao
20th April 2004, 19:53
From the tools programmers manual -

Notes
This function is supported for backward compatibility only. In new applications, use run.prog() and run.baan.prog() instead.

The function is available only for programs running under UNIX, and not for programs running under Windows NT.

Refer to - run.baan.prog(), run.prog() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_run_baan_prog_run_prog)

The function run.prog() runs an operating system command. It is a system-dependent function. It must not be used in applications that are distributed across different platforms.