Search Results

Search: Posts Made By: jbmorrisonjr
8,622
Posted By Corona688
Because the shell only substitutes once. after...
Because the shell only substitutes once. after it's done substituting in the text from the string, it won't go back and see that it was actually meant as a redirection. To do that kind of...
8,622
Posted By chihung
This should do the job if [ blahblah ] ;...
This should do the job


if [ blahblah ] ; then
CAS_SRC_LOG="/var/log/cas_src.log"
else
CAS_SRC_LOG="/dev/null"
fi

/usr/bin/echo "heartbeat: `/usr/bin/date` " >> $CAS_SRC_LOG 2>&1
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy