Skip to main content
formatting
Source Link
user14755
user14755
java -jar myservice.jar > mylogfile.txt 2>&1
 
The 2>&1 means that you also log the errors from your program into the mylogfile.tyt

The 2>&1 means that you also log the errors from your program into mylogfile.txt

java -jar myservice.jar > mylogfile.txt 2>&1
 
The 2>&1 means that you also log the errors from your program into the mylogfile.tyt
java -jar myservice.jar > mylogfile.txt 2>&1

The 2>&1 means that you also log the errors from your program into mylogfile.txt

Source Link
Timo
  • 11
  • 1

java -jar myservice.jar > mylogfile.txt 2>&1

The 2>&1 means that you also log the errors from your program into the mylogfile.tyt