Originally Posted by
TeoBigusGeekus
Use && (and operator) between bash commands: only if the first command finishes successfully the second one is executed.
Thank you very much.
That is all I needed. =)
Just making sure though. If I do:
Code:
#!/bin/sh
rsync -au --delete /dev/shm/server/ /media/Julia/server
&&
java -Xms1024M -Xmx1024M -jar Minecraft_Mod.jar nogui
Will that work?
Or do I put:
Code:
#!/bin/sh
rsync -au --delete /dev/shm/server/ /media/Julia/server && java -Xms1024M -Xmx1024M -jar Minecraft_Mod.jar nogui
And that will wait until rsync finishes to run Minecraft_Mod.jar?
Thanks again. =)
Bookmarks