Salesforce

How to run streams with Cronsched

« Go Back

Information

 
TitleHow to run streams with Cronsched
SummaryHow to run streams with Cronsched
URL NameHow-to-run-streams-with-Cronsched
Resolution
To run from command prompt:
  1. Logon to application server
  2. Click Start > All Programs > Accessories > Command Prompt
  3. Go to the drive that 'ECOMETRY' is on
  • Example:  For example, if Ecometry is on drive E, type E: and press Enter
  1. Change directory to ECOMETRY\<code account>\Pro folder
  • Example:  Type cd ECOMETRY\LIVECODE\Pro and press Enter
  1. Type cronsched and press Enter
  2. Command window will display command line parameter options
  3. The necessary parameters are:
  • Stream File Name – file name of stream to run
  • DB User Name – database user name for account where stream will run
    • For SQL database, the database user name entered for this parameter must be the same as that specified for "User ID=" on the ADO line of the <account>.ini file specified in the <path and account.ini filename> parameter for the cronsched command
      • Example:  mgr
    • For Oracle database, the database user name entered for this parameter must be the same as that specified for "Data Source=" on the ADO line of the <account>.ini file specified in the <path and account.ini filename> parameter for the cronsched command
      • Example:  ecomdb
  • VisualLink Listener Port – port number of VisualLink listener for account job is being run on
    • Must be numeric port number
    • Cannot use alias
  • Path and account.ini filename – full path and .ini file name of account job is being run on
    • Example:  If account name is ECOMLIVE and ini file is located in E:\ECOMETRY\LISTENER, then parameter would be E:\ECOMETRY\LISTENER\ECOMLIVE.ini
  1. Type cronsched command with parameters and press Enter
  • Example:  cronsched userlist mgr 31000 E:\ECOMETRY\LISTENER\ECOMLIVE.ini
  1. Command Prompt window displays job number and stdlist location
  2. When job completes, type exit at prompt and press Enter
  3. Command Prompt window will close
To run from batch file:
  1. Logon to application server
  2. Click Start > All Programs > Accessories > Notepad
  3. The necessary parameters are:
  • Path to Pro Folder – path of PRO folder of account where cronsched.exe will run
    • Example:  E:\ECOMETRY\LIVECODE\Pro
  • Stream File Name – file name of stream to run
  • DB User Name – database user name for account where stream will run
    • For SQL database, the database user name entered for this parameter must be the same as that specified for "User ID=" on the ADO line of the <account>.ini file specified in the <path and account.ini filename> parameter for the cronsched command
      • Example:  mgr
    • For Oracle database, the database user name entered for this parameter must be the same as that specified for "Data Source=" on the ADO line of the <account>.ini file specified in the <path and account.ini filename> parameter for the cronsched command
      • Example:  ecomdb
  • VisualLink Listener Port – port number of VisualLink listener for account job is being run on
    • Must be numeric port number
    • Cannot use alias
  • Path and account.ini filename – full path and .ini file name of account job is being run on
    • Example:  If account name is ECOMLIVE and ini file is located in E:\ECOMETRY\LISTENER, then parameter would be E:\ECOMETRY\LISTENER\ECOMLIVE.ini
  1. Cronshed command has following syntax:
<Path to Pro Folder>cronsched.exe <Stream File Name> <DB User Name> <VisualLink Listener Port> <path and account.ini filename>
  • All text should be on one line with no line break
  • Example:
E:\ECOMETRY\LIVECODE\Pro\cronsched.exe userlist mgr 31000 E:\ECOMETRY\LISTENER\ECOMLIVE.ini
  1. After typing command, select File > Save As ... from menu
  2. Navigate to ECOMETRY\<code account>\Userstr2 folder
  • Example:  E:\ECOMETRY\LIVECODE\Userstr2
  1. In File Name box, type the filename with .bat extension in quotes
  • Example:  "userlist.bat"
  1. Click Save button
  2. Click Start > All Programs > Accessories > Windows Explorer
  3. Navigate to the folder where the batch file was saved
  4. Double-click filename to execute job
  5. Command Prompt window will open and display job number
  6. Command Prompt windows automatically closes when job complete
ProductsDirect Commerce
Module
VersionOpen Systems 9.0 and above
Error Message Code
Cause
Additional Information
Publication StatusPublished

Powered by