Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'How can this script work longer.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How can this script work longer.
Authored by: BrianAllred on Jul 02, '05 03:40:29PM
A very Good article, thanks. I'm not very familiar with Terminal and I wasn't able to get your method to work. I hope this isn't too much off topic, but I did find an AppleScript that would do it for me, but it only works for a few minutes then I have to run the script to get it to work again. Here's the code:

do shell script "sh -c \"cd ~;nohup /System/Library/SyncServices/SymbianConduit.bundle/Contents/Resources/mRouter -a  00:07:e0:44:xx:xx -t 180 -btt 180 -p -v>~/mrouter.log 2>&1 &\"" with administrator privileges
do shell script "sleep 10"
do shell script "sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1"
do shell script "sleep 2"
do shell script "sudo /usr/sbin/natd -interface en0 -use_sockets -same_ports -dynamic -clamp_mss"
do shell script "sleep 2"
do shell script "sudo /sbin/ipfw add divert natd ip from any to any via en0"
do shell script "sleep 2"
do shell script "sudo named"
do shell script "sudo named"
The "00:07:e0:44:xx:xx" is the MAC of the device. Does anyone know how to make it work longer? Thanks!

[ Reply to This | # ]