- This topic has 4 replies, 4 voices, and was last updated 14 years, 1 month ago by .
Here is the scenario:
I have a thread that outputs to a file. Every night there is a bash script that is kicked off by a cron job that stops the thread, moves the file elsewhere, and then starts the thread again. The problem is that the file defined in the thread’s output file properties is not getting created. When I arrive in the office in the morning and restart the thread using Network Monitor the file is created, although all the transactions during the night have been lost.
Here is an excerpt from the script that I’m running:Code:
fileout=”MYTHREAD`date -d ‘-1 day’ +%m%d%y`.txt”
hcicmd -p $process -c “$thread pstop”
mv $filepath $archivedir$fileout
hcicmd -p $process -c “$thread pstart”
I have also tried using `touch` to create $filepath after I move the file, but the file still doesn’t contain any data by morning.
Is there something else that I should be doing here?
- The forum ‘Cloverleaf’ is closed to new topics and replies.