cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Start adept from the command line and then execute a function

olivier.colliou
1-Newbie

Start adept from the command line and then execute a function

Hi Adepters,

could you please tell me how to make the following command work:

adept -q -C1 "{source c:/lspidi/pubappl/packages/publish.acl; fmtsrv::listen('8888')}"

Adept is opening, does not complain while sourcing publish.acl (where package fmtsrv and function listen() are defined) but refuses to run listen() and displays:

"Undefined packagename fmtsrv::listen('8888')}"

I use Adept 8.1g under Win2k.

Thanks,

Olivier.


4 REPLIES 4

This is because the entire command line is parsed at once, before
publish.acl has been loaded, and the parser doesn't recognize your function
call. You can defer the parsing of your second function by placing "exec"
in front of it:

adept -q -C1 "{source c:/lspidi/pubappl/packages/publish.acl; exec
fmtsrv::listen('8888')}"

or use eval() (I think this will work without quoting, not sure):

adept -q -C1 "{source c:/lspidi/pubappl/packages/publish.acl;
eval(fmtsrv::listen('8888'))}"

Adept 8.1!? Man, get into the 21st century!
Anyway, try the exec command in front of your function (i.e. exec



>>> - 02/13/03 06:12PM >>>
Adept 8.1!? Man, get into the 21st century!

I would like ! but there are at least two bugs (known by Arbortext) that prevent me to use Epic !

Anyway, try the exec command in front of your function (i.e. exec


Now Ed let's be nice about this or I'll not buy you a beer in San Antone.
🙂 I mean it is 8.1G. Yes, Epic now incorporates the global features but
there may be extenuating circumstances for not upgrading. You want
archaic? My old company is still using Adept ( are you ready for this???
Sitting down???)

7.0

At least version 8 could say XML and supports the 28001BA1 version of the
FOSI.

Lynn


"Benton, Ed L"
<ed.l.benton to:=" &quot;'adepters@arbortext.com'&quot;=" <adepters@arbortext.com=">
@lmco.com> cc:
Sent by: Subject: RE: Start adept from the command line and then execute a function
owner-adepters


02/13/2003 12:12
PM
Please respond
to adepters



Adept 8.1!? Man, get into the 21st century!
Anyway, try the exec command in front of your function (i.e. exec
Announcements