Chinh posted a solution to 'how do you run a batch job on a remote OS X
machine' on 23 Oct 2004. I was having trouble with that, and he
determined that the issue is definition of Unix environment variable
$REMOTEHOST. If you ssh to a Mac OS X machine, and are running
/bin/bash (the default shell), this symbol is not defined, and Stata
will crash. If you do
/bin/csh
(change to the C shell--or probably the Korn shell; untested)
$REMOTEHOST will be defined (as the IP address or domain name of your
local machine), and Chinh's solution to running remote Stata in batch
mode works just fine.