Web Hosting Talk







View Full Version : What to do???


Adamsnake
07-21-2008, 03:51 PM
Hi, i run my own virtual private server that is currenly hosted on my computer.


I am wanting to move this to a webhost, i already have a webhost setup and have a forum and a website running but im wondering how to run the virtual private server.


The VPS runs via java and .bat files (its like runscape), my webhost allows .bat files to run but i dont know how i would excute all this as i have to run a file to start the VPS.


Cheers

Adamsnake

Epiphany21
07-21-2008, 09:54 PM
Cronjob. Execute it once, then disable it..

CodyRo
07-22-2008, 01:19 AM
You're saying ".bat" files so I'm assuming it's a Windows VPS? Just create a service or a scheduled task to run them :).

Adamsnake
07-22-2008, 04:02 AM
Hi guys thanks for the replys,


Yes its the program is a Windows VPS, but im moving it to a linux host, the server admin says the server allows ".bat" files to be run so thats good.


Any idea how would do this, im a noob to all this

thanks

adamnsake

Nick Charlton
07-22-2008, 08:24 AM
You won't be able to use a bat file (effectively a Windows Shell Script) to run on a Linux VPS.

You will need either a Windows VPS, or a Linux version to do this.

Nick

Adamsnake
07-22-2008, 12:19 PM
Well is it anyway to recode the file, as everything els is in java.


its only the run.bat and the complier thats needing the command prom.


i can use the complier on my computer and reupload server when i have done upgrades

Nick Charlton
07-22-2008, 12:22 PM
If it's in Java, then I would assume that the bat file is only there to make it load properly. So yes, you could just remake it using sh instead.

If you could give a link to the bat file, then I am sure either myself or someone else could recode it for you.

Nick

Adamsnake
07-22-2008, 01:08 PM
the link is

mswinks.info/scantraxx/server/runserver-normal.bat


cheer again

Adamsnake

Adamsnake
07-22-2008, 02:52 PM
I also found this if its any help

moparscape.org/smf/index.php/topic,290029.0.html

Nick Charlton
07-22-2008, 05:34 PM
I don't know a lot about Fedora, however...

java -Xmx512m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.08-ga-bin.jar server


in the first link is the useful bit.

What distro are you running?

Nick

Adamsnake
07-23-2008, 12:08 PM
My pc is running windows xp,


but the server is running 2.2.6 (Unix) i think


how would i find out?

Nick Charlton
07-24-2008, 07:38 AM
Sorry it's taken me a while;

Try: cat /etc/issue

This should give you the distro version and release, eg:

Debian GNU/Linux 4.0 \n \l

Nick

Adamsnake
07-24-2008, 09:35 AM
Hi all i have is cpanel so i dont know how to run that command,


in cpanel is only says

2.2.6 (Unix)

Linux

Nick Charlton
07-24-2008, 09:41 AM
Ok, login to you server using SSH and input that command.

From what I remember, PuTTY should help you with this as you are running Windows on your main machine.

Nick

Adamsnake
07-31-2008, 01:16 PM
Sorry its been awhile i have been working away,


the server is deffo 2.2.6 (Unix)

Nick Charlton
07-31-2008, 02:27 PM
You're going to need to know the distro to find out what commands you'll need as they are generally specific to each one when it comes to package managers.

Adamsnake
08-01-2008, 06:54 PM
CENTOS Enterprise 4.5 i686


but im wondering how many calls this will make as my server could die