Re: "RUN" command on Windows
Daniel Kroker <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
try to use fgl_getenv this should be work:
LET lc_cmd = fgl_getenv("WORK"), "/myprog.4ge"
Am 11.02.2015 um 17:37 schrieb Malcolm Perrior:
>
> Hi
>
> Has anyone used the 4GL “RUN” command within Windows (I’m using TUI
> mode via MinGW) and come across the following issues?
>
> 1)Several commands on a line won’t parse –
>
> e.g. a 4GL with the following snippet:
>
> LET lc_cmd = “pwd ; cd /opt; pwd”
>
> RUN lc_cmd
>
> Returns the following at runtime (running in path /test):
>
> pwd: ignoring non-option arguments
>
> /Test
>
> Whatever sequence of commands I put in there , only the first one is
> parsed and run, the rest are ignored
>
> 2)Shell variables are not expanded (or recognised?).
>
> e.g. set and export shell variable
>
> WORK=/test/programs
>
> and then run a 4GL with the following snippet:
>
> LET lc_cmd = “$WORK/myprog.4ge”
>
> RUN lc_cmd
>
> Returns the following at runtime:
>
> ‘$WORK’ is not recognised as an internal or external command, operable
> program or batch file
>
> I’ve tried using the string ${WORK}in the 4GL with the same result.
>
> Seems RUN behaves oddly on Windows; any ideas if there are workarounds?
>
> Ta
>
>
> **********************************************************************
> The information contained in this email is intended only for the
> individual or entity to whom it is addressed. It may contain
> privileged and confidential information and if you are not an intended
> recipient you must not copy, distribute or take any action in reliance
> on it. If you have received this email in error, please notify us
> immediately by telephone on (020) 8628 3456. Please also destroy and
> delete the message from your computer.
>
> Any opinions expressed in this message are those of the sender only
> and do not necessarily represent the views of Foresters. The sender
> may not be authorised to give financial advice and nothing in this
> message should be construed as offering such advice or entering into
> any contract on behalf of any Foresters Company.
>
> Forester Life Limited is authorised by the Prudential Regulation
> Authority and regulated by the Financial Conduct Authority and
> Prudential Regulation Authority.
>
> Forester Fund Management Limited is authorised and regulated by the
> Financial Conduct Authority. The Children’s Mutual is a trading name
> of Forester Fund Management Ltd.
>
> Companies within the Foresters UK Group are registered in England as
> follows:
> Forester Life Limited 2997655, Forester Fund Management Limited
> 4315370 and Forester Holdings (Europe) Limited 3013082.
>
> Registered Offices for all companies within the Foresters UK Group:
> Foresters House, 2 Cromwell Avenue, Bromley, BR2 9BF. T 020 8628 3400.
> F 020 8628 3500. E [email protected] foresters.com
> **********************************************************************
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
>
>
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
--
Mit freundlichen Grüßen
Daniel Kroker
VENTAS AG 20+ Jahre ERP-Erfahrung!
Web: www.ventas.de
Fon: 040 / 32 33 34 0
Fax: 040 / 32 33 34 38
Firmensitz: Mittelweg 144, 20148 Hamburg, Deutschland
Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712
Vorstandsvorsitzender: Dipl. Ing. Alain Siverly
Aufsichtsratsvorsitzender: Dr. Olaf Rehme
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss