I have a crontab / scheduler question for the non-mac person (me).
I have seen that the AT2J install package creates the getresults, getresults.cron and eq2jcrontab files from scratch.
Does the mac automatically start Alltalk and then close again according to the scheduler ie, Alltalk does not run in the background, like a PC ? If the mac is restarted the scheduler will just start Alltalk again according to the schedule ?
When I tried to run the macOSX_AT2Installer.app on a Jeff's mac, I got an "error of type -31070 has occurred" error. The mac is not connected to the network / internet. I assume this is what this error is ?
Thanks,
Dear Mark,
Yes thats exactly it. It is exactly like using the method for running AllTalk on the Windows Scheduler. IE Windows scheduler starts AllTalk according to the schedule - it runs through all of the profiles and and then terminates.
The Mac version is the same, the CRON daemon calls getresults.cron according to the schedule which in turn executes AT2j with the '/c' (console) switch . This runs without the windows, running through all of the profiles and then it terminates.
The MAC version does not have an internal scheduler or Timer based logins.
As for Jeffs Mac, the Installer does not include the AT2j Jar file. It initiates a HTTP request using applescript to download the ATj 2 from the LRS website. In the normal case, using AllTalk without an internet connection would be pretty pointless - but if you want to use it in an internal LAN, then you would need to set up manually.
The process is :
Open the users home folder. create the folder called EQ2j. Copy the ATj2 into it.
Double Click the JAR and it should open up. Click on Profiles to create the profiles.
Thats all you need to make it work.
But to set up the schedule, you will need to create the getresults.cron. Open up Text edit and enter ( remember - CaSe SeNsItiVe)
#!/bin/sh
cd <home folder path (unix format)>
java -cp ATj2.jar:.-Dcom.apple.laf.useScreenMenuBar=true eqj.EQ2j /c
Save as getresults.cron into the EQ2j folder.
Now go to Utilities -> Terminal
cd to the EQ2j folder (remember everything in unix is Case Sensitve)
to makes getresults.cron executable type:
~:chmod +x getresults.cron
To test, execute:
~:./getresults.cron
(that is dot forwards slash). ATj2 should run without windows and just display the outcome to the screen.
Now edit the crontab table (you must know how to drive unix VI though)
The format is minutes<space>hours_to_run<space>Month<space>week_of_month<space>days_to_run<space>program
~:crontab -e
use lowercase "i" to go into insert Mode
15 8,9,11,13,15,17,18 * * mon-sat /User/<EQ2j pathway>/getresults.cron
<escape, Colon, q>
All done.
Glen.