Portal Home > Knowledgebase > Articles Database > What to do???


What to do???




Posted by 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

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

Posted by 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 .

Posted by 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

Posted by 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

Posted by 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

Posted by 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

Posted by Adamsnake, 07-22-2008, 01:08 PM
the link is mswinks.info/scantraxx/server/runserver-normal.bat cheer again Adamsnake Last edited by Adamsnake; 07-22-2008 at 01:14 PM.

Posted by Adamsnake, 07-22-2008, 02:52 PM
I also found this if its any help moparscape.org/smf/index.php/topic,290029.0.html

Posted by Nick Charlton, 07-22-2008, 05:34 PM
I don't know a lot about Fedora, however... in the first link is the useful bit. What distro are you running? Nick

Posted by 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?

Posted by Nick Charlton, 07-24-2008, 07:38 AM
Sorry it's taken me a while; Try: This should give you the distro version and release, eg: Nick

Posted by 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

Posted by 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

Posted by Adamsnake, 07-31-2008, 01:16 PM
Sorry its been awhile i have been working away, the server is deffo 2.2.6 (Unix)

Posted by 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.

Posted by 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



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Language: