PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11/19/2019 11:44 AM by  Greg Moeller
Scripting in Infor10...
 8 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Greg Moeller
Private
Private
Veteran Member
(4025 points)
Veteran Member
Posts:1433


Send Message:

--
04/27/2016 3:30 PM

    Trying to create a custom program in our Infor10 Windows environment.

    This worked well in calling Unix shell scripts in our 9.0.1 environment...

    I can get the token to work through LID, but I cannot get it to show up in Ming.le unless I change it to a pgmdef program (like it used to be in Unix)... but I can't figure out what to put in to get it to call the shell script.

     

    I've tried:  D:/lsfprod/law/prod/script/apcredit.cmd   (this works through tokendef and LID -- even in v10)

    I'll upload my PD if it would help.

    Joe O'Toole
    Private
    Private
    Veteran Member
    (802 points)
    Veteran Member
    Posts:312


    Send Message:

    --
    04/27/2016 3:41 PM
    Hey Greg, slightly off topic but did you have to create special security classes for end users to run scripts in LID that invoke S3 interface programs like importDB? I will need to set this up shortly in our V9 system as we move to the new security model in preparation for our V10 upgrade. Thanks.
    Greg Moeller
    Private
    Private
    Veteran Member
    (4025 points)
    Veteran Member
    Posts:1433


    Send Message:

    --
    04/27/2016 4:10 PM
    You could set up different security classes. I can't remember which we did anymore. We've been on the new security model for a number of years already...
    You could just add the scripts to whatever security class that they are in already too... although I'd probably set up a different one.
    You'll find the scripts and tools like importdb under the ENV profile in either case.
    Greg Moeller
    Private
    Private
    Veteran Member
    (4025 points)
    Veteran Member
    Posts:1433


    Send Message:

    --
    04/27/2016 4:13 PM
    In case it helps anyone give me a solution....
    Attachments
    JimY
    Private
    Private
    Veteran Member
    (1423 points)
    Veteran Member
    Posts:505


    Send Message:

    --
    04/28/2016 6:00 AM
    Have you tried a bat file? Were not allowed to download zip files.
    JimY
    Private
    Private
    Veteran Member
    (1423 points)
    Veteran Member
    Posts:505


    Send Message:

    --
    04/28/2016 6:06 AM
    This is what I have in one of my programs. I define the command in working storage.
    
    01  WS-COMMAND.
               03  FILLER                  PIC X(30) VALUE
                  "/lawprod/gen/bin/lobbydedsend".
    			  
    	         CALL "system" USING WS-COMMAND
                     GIVING WS-RETURN-SYS-CODE .
    
    Greg Moeller
    Private
    Private
    Veteran Member
    (4025 points)
    Veteran Member
    Posts:1433


    Send Message:

    --
    04/28/2016 9:45 AM
    Just changing the .cmd file to a .bat file seems to have worked correctly! Thanks everyone!
    Wade
    Sr. Consultant
    Independant
    Basic Member
    (30 points)
    Basic Member
    Posts:10


    Send Message:

    --
    11/19/2019 11:14 AM
    Greg, do you know of any way to script checking whether a lawson security is turned on or off for a productline?
    Greg Moeller
    Private
    Private
    Veteran Member
    (4025 points)
    Veteran Member
    Posts:1433


    Send Message:

    --
    11/19/2019 11:44 AM
    I suppose you could use the %GENDIR%\bin\lawsec.exe

    But I can't test it right now, because I get a security violation when I'm logged in as lawson.



    You are not authorized to post a reply.