1. We were using the HP-UX !uuidgen command to create guids for an integration to Salesforce.com. We have installed an SDK on Windows server to give us the same capability, but we don't know how to execute Windows commands from Unidata (Unibasic). Here is the command we are trying to execute:
C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\x86>uuidgen.exe
The command will generate a guid: 7c6c5a30-7d67-47d1-aa17-72f7b2652db3
2. On HP-UX, we had many processes scheduled to run in a crontab. On the Windows server, we know we can use Scheduled Tasks, but we don't know the syntax to set up these Unidata (Unibasic) scripts/processes.
Thanks. Steve
------------------------------
Steve Kunzman
Rocket Forum Shared Account
------------------------------
@Steve Kunzman
From ECL use the ! command.
:!dir c:\\u2\\ud\\temp
Volume in drive C is Windows
Volume Serial Number is 7838-4C29
Directory of c:\\u2\\ud\\temp
11/07/2023 09:16 AM <DIR> .
11/07/2023 09:16 AM <DIR> ..
10/25/2023 05:24 PM 0 UD12600TMPSEL
1 File(s) 0 bytes
2 Dir(s) 227,302,174,720 bytes free
In a program use PCPERFORM , for the other options of PCPERFORM from ECL use HELP PCPERFORM
AE BP TEST51
Top of "TEST51" in "BP", 2 lines, 33 characters.
*--: P
001: PCPERFORM "dir c:\\u2\\ud\\temp"
002: END
Bottom.
*--: FIBR
Filed "TEST51" in file "BP" unchanged.
Compiling Unibasic: BP\\TEST51 in mode 'u'.
compilation finished
Volume in drive C is Windows
Volume Serial Number is 7838-4C29
Directory of c:\\u2\\ud\\temp
11/07/2023 09:18 AM <DIR> .
11/07/2023 09:18 AM <DIR> ..
10/25/2023 05:24 PM 0 UD12600TMPSEL
1 File(s) 0 bytes
2 Dir(s) 227,290,349,568 bytes free
------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------
1. We were using the HP-UX !uuidgen command to create guids for an integration to Salesforce.com. We have installed an SDK on Windows server to give us the same capability, but we don't know how to execute Windows commands from Unidata (Unibasic). Here is the command we are trying to execute:
C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\x86>uuidgen.exe
The command will generate a guid: 7c6c5a30-7d67-47d1-aa17-72f7b2652db3
2. On HP-UX, we had many processes scheduled to run in a crontab. On the Windows server, we know we can use Scheduled Tasks, but we don't know the syntax to set up these Unidata (Unibasic) scripts/processes.
Thanks. Steve
------------------------------
Steve Kunzman
Rocket Forum Shared Account
------------------------------
Not knowing the entire context, but if you need to generate a GUID from UniBasic you could use PyCallFunction to call out to Python - that has uuid capability.
Create a python module e.g.
get_guid.py
import uuid
def gen_uuid():
return str(uuid.uuid4())
then call it from a UniBasic routine:
UUID = PyCallFunction('get_guid','gen_uuid')
May save some faffing around.
------------------------------
Brian Leach
Director
Brian Leach Consulting
Chipping Norton GB
------------------------------