mozkill
September 6th, 2007, 01:49 PM
On my server, I am trying to start a java process with a shell script. My initialization script sends the following command:
#!/bin/bash
. /etc/rc.status
rc_reset
case "$1" in
start)
echo -n "Starting Java Server "
cd /home/JavaServer
./startserver.sh < crcr > console.log 2>&1 &
disown -a
rc_status -v
;;
.....
esac
MY question is "WHY do I need the '<crcr' redirect for it to work? The script wont work without that item and I can't figure out why. I really want to understand what this means. Why would you want to feed back to a script a file called "crcr" that has 2 carrage returns in it and why won't the java process start without this??
so confused, thanks for any help you can give....
#!/bin/bash
. /etc/rc.status
rc_reset
case "$1" in
start)
echo -n "Starting Java Server "
cd /home/JavaServer
./startserver.sh < crcr > console.log 2>&1 &
disown -a
rc_status -v
;;
.....
esac
MY question is "WHY do I need the '<crcr' redirect for it to work? The script wont work without that item and I can't figure out why. I really want to understand what this means. Why would you want to feed back to a script a file called "crcr" that has 2 carrage returns in it and why won't the java process start without this??
so confused, thanks for any help you can give....