Hi guys.
im fairly new to linux and terminals but i am setting up a minecraft server with a teamspeak server and have managed to get a few things running through scripts.
i want to use a script to start up said applications when the computer is logged onto (it logs in automatically) but the problem is i cant seem to cd to a directory and run a file / script in that directory.
at the moment i have this:
which does work. the only problem is i have the server files al over my home directoy which is messy. ideally id like to have the files in /home/wesley/Bukkit_server
i can then load this script into the startup applications and hopefully all will be good
thanks a mil!
im fairly new to linux and terminals but i am setting up a minecraft server with a teamspeak server and have managed to get a few things running through scripts.
i want to use a script to start up said applications when the computer is logged onto (it logs in automatically) but the problem is i cant seem to cd to a directory and run a file / script in that directory.
at the moment i have this:
Code:
#!/bin/sh
xterm -hold -e java -d46 -Xincgc -Xmx1024M -jar /home/wesley/craftbukkit.jar
which does work. the only problem is i have the server files al over my home directoy which is messy. ideally id like to have the files in /home/wesley/Bukkit_server
i can then load this script into the startup applications and hopefully all will be good
thanks a mil!