MacNN Forums (http://forums.macnn.com/)
-   Gaming (http://forums.macnn.com/gaming/)
-   -   Need help running .bat file through Terminal (http://forums.macnn.com/77/gaming/395134/need-help-running-bat-file-through/)

 
Rockdude1337 Jul 8, 2009 04:08 PM
Need help running .bat file through Terminal
i forgot how to run .bat files through terminal and i need help with one for gaming. the download is from rsbot.org and when you download and open the file, the one i need to run is play.bat i've done this before so i know it works, but i havent tried for a while

thanks - Rockdude1337
 
Rockdude1337 Jul 8, 2009 04:10 PM
it says:
@ECHO OFF

IF NOT EXIST out CALL Compile.bat /Q

IF DEFINED RSBOT_MODE (
mode=%RSBOT_MODE%
) ELSE (
SET mode=member
)

IF "%1"=="/F" SET mode=nonmember

START /BELOWNORMAL javaw -Djava.util.logging.config.file=Bot\logging.propert ies -cp out;rs.jar -Xmx256m com.speljohan.rsbot.Application %mode%



when i open with text edit
 
Chuckit Jul 8, 2009 04:57 PM
That's a DOS file. It won't run on a Unix OS like OS X.
 
Rockdude1337 Jul 8, 2009 05:06 PM
thats weird... because i've done this before i just forgot the code in Terminal.
 
Rockdude1337 Jul 8, 2009 10:00 PM
anyone else able to help?
 
Chuckit Jul 8, 2009 10:42 PM
I'm sorry, but you're mistaken. Looking at the file's contents that you posted, that is very clearly a DOS file. If you've successfully run a file with .bat as the extension before on Mac OS X, it was mislabeled. You'd be better off trying to find correct instructions to run whatever this is on a Linux/Unix system.
 
Rockdude1337 Jul 9, 2009 04:13 AM
well i was able to run
start javaw -cp Bot;rs.jar;svnkit.jar -Xmx256m
com.speljohan.rsbot.Application GUIController member

which did the exact same task on the oudated version of this
 
mduell Jul 9, 2009 05:50 PM
What's with the wave of "I want to run java apps from batch files" lately? A bunch of people in the same CS class?
 
shifuimam Jul 10, 2009 10:41 AM
i would imagine because it's faster to have a one-click script rather than typing out your java commands by hand every time.
 
Rockdude1337 Jul 10, 2009 11:42 AM
ok it just got updated at rsbot.org
but i opened it with text edit and it looks like this now:
@CALL Play.bat /F

and thats all it says.. can u help with this?
 
msuper69 Jul 10, 2009 04:48 PM
Quote, Originally Posted by Rockdude1337 (Post 3861067)
ok it just got updated at rsbot.org
but i opened it with text edit and it looks like this now:
@CALL Play.bat /F

and thats all it says.. can u help with this?
Sigh.

It's another DOS batch file that calls another batch file.

Try posting your inquiries in the Alternative Operating System forum or better yet on a Windows help forum.

:rolleyes:
 
Rockdude1337 Jul 11, 2009 01:44 AM
is:
start javaw -cp Bot;rs.jar;svnkit.jar -Xmx256m com.speljohan.rsbot.Application GUIController nonmembers

any different?
 
shifuimam Jul 11, 2009 07:51 AM
This is what you ran before:

Code:

start javaw -cp Bot;rs.jar;svnkit.jar -Xmx256m com.speljohan.rsbot.Application GUIController member
This is what you just posted:

Code:

start javaw -cp Bot;rs.jar;svnkit.jar -Xmx256m com.speljohan.rsbot.Application GUIController nonmembers
They are not identical. Look at the end.

A batch file is a DOS/Windows-compatible file that allows you to script and run commands that you would normally run from a command prompt (aka DOS prompt).

You cannot run batch files in OS X. Period.

The "start javaw" stuff you've been pasting are commands to run various Java files through the JVM installed on your machine. These commands are platform-independent.

You're not going to get the help you need on this forum. Have you tried asking on rsbot's own official forum?
 
Rockdude1337 Jul 11, 2009 03:53 PM
both:
tart javaw -cp Bot;rs.jar;svnkit.jar -Xmx256m com.speljohan.rsbot.Application GUIController member
and
start javaw -cp Bot;rs.jar;svnkit.jar -Xmx256m com.speljohan.rsbot.Application GUIController nonmembers

i have ran using terminal i got them to work and launch the program properly, they are just from the oudated version in order to run i would type in Terminal
cd desktop/rsbot(folder name)
*return*
sh Compile.sh
*return*
cd desktop/rsbot
*return*
sh RunMembers.sh

and it would launch
 
warpmoon Jul 13, 2009 10:50 PM
I don't play Runescape much less use a bot for it, but spending a minute looking at rsbot.org I see they have a search function, I suggest you search for "mac" there and perhaps you will find people discussing how to get it to work.
 
All times are GMT -4. The time now is 02:49 PM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.


Content Relevant URLs by vBSEO 3.3.2