[foxboro] AW70 Shell Script Issue

Hi Scripting guys,

how can I workaround the following problem on a AW70 with MKS_VER=3D87 =
and
MKS Platform Components 9.x?

The problem is that I try to touch a file with a still existing and
locking file handle created by the rm command.


$ zulu.ksh
touch: zulu.ksh 11: file "/tmp/myfile.txt": Access is denied.
$=20
$ more zulu.ksh
#!/bin/ksh

HISTFILE=3D/tmp/myfile.txt

if [ -f $HISTFILE ]
then
  rm -f $HISTFILE
fi

touch $HISTFILE

--
Regards,
Andreas

 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: