[foxboro] AW: AW70 Shell Script Issue

Hi Andreas,

I can=B4t smell the sense in that but why removing a file when you just =
want
to empty it? Simply try overwriting.

if [ -f $HISTFILE ]
then
  echo "" >$HISTFILE
fi

touch $HISTFILE

Best Regards,
------------------------
Daniel Weinbrenner
Process Automation and=20
Software Development
=20
Erpicon software development GmbH
Neusser Str. 724- 726
50737 K=F6ln =B7 Germany
Tel: +49 (0)221 97460 - 65
Fax: +49 (0)221 97460 =96 99
e-mail: dweinbrenner@xxxxxxxxxx

Internet: www.erpicon.de
Gesch=E4ftsf=FChrer: Dirk Betzner
Registergericht: K=F6ln HRB 23985
=20
--
Die Information in dieser eMail ist vertraulich und kann dem =
Berufsgeheimnis
unterliegen. Sie ist ausschliesslich fuer den Adressaten bestimmt. =
Jeglicher
Zugriff auf diese eMail durch andere Personen als den Adressaten ist
untersagt. Sollten Sie nicht der fuer diese eMail bestimmte Adressat =
sein,
ist Ihnen jede Veroeffentlichung, Vervielfaeltigung oder Weitergabe wie =
auch
das Ergreifen oder Unterlassen von Massnahmen im Vertrauen auf erlangte
Information untersagt.

The information in this email is confidential and may be legally =
privileged.
It is intended solely for the addressee. Access to this email by anyone =
else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in =
reliance
on it, is prohibited and may be unlawful.
=20
=20
=20

-----Urspr=FCngliche Nachricht-----
Von: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] =
Im
Auftrag von Weiss, Andreas
Gesendet: Tuesday, April 29, 2008 12:38 PM
An: foxboro@xxxxxxxxxxxxx
Betreff: [foxboro] AW70 Shell Script Issue

Hi Scripting guys,

how can I workaround the following problem on a AW70 with MKS_VER=3D3D87 =
=3D
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.
$=3D20
$ more zulu.ksh
#!/bin/ksh

HISTFILE=3D3D/tmp/myfile.txt

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

touch $HISTFILE

--
Regards,
Andreas

=20
=20
_______________________________________________________________________
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
=20
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
to unsubscribe:      =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave
=20

 
 
_______________________________________________________________________
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: