- This topic has 4 replies, 4 voices, and was last updated 14 years, 11 months ago by .
-
Topic
-
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:#!/bin/bash
site=”prodsite”
process=”ADT”
thread=”MYTHREAD_ADT_OUT”
filepath=”/quovadx/qdx5.6/integrator/prodsite/filesout/mythread/thread.dat”
fileout=”MYTHREAD`date -d ‘-1 day’ +%m%d%y`.txt”
archivedir=”/home/hci/archive/mythread/”source /home/hci/.profile
setsite $sitehcicmd -p $process -c “$thread pstop”
sleep 60mv $filepath $archivedir$fileout
sleep 60hcicmd -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.