Cambio de lote a shell [cerrado]

This is my first question, and I've finally resorted to asking as my hours of googles haven't returned anything good. Would it be possible to convert this batch script to a Linux shell?

@echo off
cd ../bin
color 0a
Title DavidScape 508
"C:\Program Files\Java\jdk1.6.0_11\bin\java.exe" DavidScape/Server 43594
pause

¡Gracias!

preguntado el 05 de mayo de 13 a las 18:05

Thanks, but do you know how? -

What is it that have you tried? -

I did many searches about how to convert them. I've just been really confused, and Wine has been giving me errors as well. I tried changing the cd and echo to #/bin/sh, but overall I've been very stuck -

1 Respuestas

Something close would be:

#!/bin/sh
cd ../bin
echo -ne "\033[40;1;32m"
java DavidScape/Server 43594
read

contestado el 05 de mayo de 13 a las 19:05

Literal translation! Nice.. :) - Praveen Kumar Purushothaman

Using literal ANSI color codes is not a best practice -- not all terminals support ANSI; using tput will provide a color code only if one is available for the current terminal. - Carlos Duffy

I'd say the number of systems not having tput is greater then the terminals where such a sequence would cause a problem. not all system have ncurses. - mata

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.