Cannot run commands in a while read line do loop
I am looping through a file and then want to run some commands. Below is my code.
cat $PATHNAME | while read line; do PATH=$line ls -t $PATH/javacore* >$NDIR diff -w $ODIR $NDIR > $CHGS done This is the error I get. ./java_snap_monitor.sh: line 13: ls: command not found ./java_snap_monitor.sh: line 14: diff: command not found |
Quote:
|
That was the problem. Thank you!
|
Please use code tags to make your posts easier to read and also don't forget to mark the thread as solved.
|
All times are GMT -5. The time now is 09:35 AM. |