Batch command file
Create a file with commands for installing licenses.
In this task, you save a list of flmprg batch commands to file, to run on the Four Js License Manager.
- Create an text file.
-
Create a list of commands and save them to the text file.
Enter one command per line.
-
In a shell script for Linux® and macOS™, enter commands as shown in the sample:
flmprg --batch action=uninstall-license^lnum=TAB#XXXXXXXX flmprg --batch action=product-info flmprg --batch action=install-license-string-http^license-string=7b5576e756d563a7854413523414195303144395a222c906c6b6579233f 105849335133344e5434324535542c336d6b6579743a225755453849354e1234585048742c206c6f67696e203a56346a737061227d flmprg --batch action=license-info # ...
-
In a bat file for running in a Windows® environment, you need to double the caret (
^^
) symbol in the commands where required as shown in the sample.flmprg --batch action=uninstall-license^^lnum=TAB#XXXXXXXX flmprg --batch action=product-info flmprg --batch action=install-license-string-http^^license-string=7b5576e756d563a7854413523414195303144395a222c906c6b6579233f 105849335133344e5434324535542c336d6b6579743a225755453849354e1234585048742c206c6f67696e203a56346a737061227d flmprg --batch action=license-info # ...
The batch command also accepts commands written in JSON; therefore, you can create a list of commands using the JSON format and save to a JSON file.Enter one command per line.{"action":"uninstall-license","lnum":"TAB#XXXXXXXX"} {"action":"product-info"} {"action":"install-license-string-http","license-string":"7b5576e756d563a7854413523414195303144395a222c906c6b657 9233f105849335133344e5434324535542c336d6b6579743a225755453849354e1234585048742c206c6f67696e203a56346a737061227d"} {"action":"license-info"}
-
-
To execute the commands in the file, pipe the command file into a command to run the
flmprg in batch console mode.
For example, this command executes the command file named cmds.
flmprg --batch-console < cmds
Alternatively, you can filter the commands into a command to run the flmprg in batch console mode.-
In Linux and macOS, enter the command as shown in the sample:
cat cmds | flmprg --batch-console
-
In a Windows environment, enter the command as shown in the sample.
type cmds | flmprg --batch-console
-