---------- Forwarded message ---------- From: Pratiksha Powar <[EMAIL PROTECTED]> Date: Sep 11, 2007 11:39 AM Subject: Problem with redirecting cat command output to a file To: [EMAIL PROTECTED]
Problem 1: -------- Following is the code (in a shell script)which redirects find command output to a file called "src". But this command generates a file called "src?" instead. SOURCE_PATH="src" rm -f $SOURCE_PATH #Getting all OPS src files find ../../com/onmobile/noc/common -name *.java > src Problem 2: --------- Later I need to read the src file. To circumvent Problem 1, if I use the below code : SOURCE="$SOURCE_PATH?" $JAVA_HOME/bin/javac -classpath $CLASSPATH -d $OUTPUT_PATH -sourcepath < cat $SOURCE I receive following error: cat: No such file or directory Could this problem be solved? I'm using CentOS 10.0, Shell: Bash Thanks, Pratiksha
