Re: [foxboro] AW70 Shell Script Issue
- From: "Grumelart, Alain" <alain.grumelart@xxxxxxxxxxxxxxxx>
- To: <foxboro@xxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 09:58:13 -0400
Interesting problem ...
I don't see why rm would leave a locked file handle after it terminates.
The problem must be somewhere else.
Try using some other variable name instead of HISTFILE in your script.
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of Weiss, Andreas
Sent: Tuesday, April 29, 2008 6:38 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [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
=
=
_______________________________________________________________________
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=3Djoin
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave
=
* Confidentiality Notice:
This e-mail and any associated files are intended solely for the individual=
or entity to whom they are addressed. Please do not copy it or use it for =
any purposes, or disclose its contents to any other person. Further, this e=
-mail and any associated files may be confidential and further may be legal=
ly privileged. This email is from the Invensys Process Systems business uni=
t of Invensys plc which is a company registered in England and Wales with i=
ts registered office at Portland House, Bressenden Place, London, SW1E 5BF =
(Registered number 166023). For a list of European legal entities within t=
he Invensys Process Systems business group, please click here http://www.in=
vensys.com/legal/default.asp?top_nav_id=3D77&nav_id=3D80&prev_id=3D77.
If you have received this e-mail in error, you are on notice of its status.=
Please notify us immediately by reply e-mail and then delete this message =
from your system. Thank you for your co-operation. You may contact our Help=
desk on +44 (0)20 7821 3859 / 2105 or email inet.hqhelpdesk@xxxxxxxxxxxxx T=
his e-mail and any attachments thereto may be subject to the terms of any a=
greements between Invensys (and/or its subsidiaries and affiliates) and the=
recipient (and/or its subsidiaries and affiliates).
_______________________________________________________________________
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
- Follow-Ups:
- Re: [foxboro] AW70 Shell Script Issue
- From: Corey R Clingo
- References:
- [foxboro] AW70 Shell Script Issue
- From: Weiss, Andreas
Other related posts:
- » Re: [foxboro] AW70 Shell Script Issue
- » Re: [foxboro] AW70 Shell Script Issue
- » Re: [foxboro] AW70 Shell Script Issue
- Re: [foxboro] AW70 Shell Script Issue
- From: Corey R Clingo
- [foxboro] AW70 Shell Script Issue
- From: Weiss, Andreas