For Programmers: Free Programming Magazines  


Home > Archive > Tcl > November 2007 > How to insure close chaneel after unexpect error ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to insure close chaneel after unexpect error ?
rolance

2007-11-29, 4:34 am

Hi everyone

My program work in three platform (windows,UNIX and LINUX). every
client program must access one share

directory to operate text file.

Some error somtimes hapened in the unstable network connection!

Q1 in the windows side text file will be locked by unexpect network
disconnect occured, the text can't be operate after administrator to
release the permission!

How can I insure the file operation will wait for all data tranfer
complete(even the network disconnet temporary)?

Q2 the UNIX system the open channel(open a file to write in share
directory) can be delete by file delete without any alert (window side
will show the permission denied,UNIX side will delete without any
alert) ???


Could some some give me some example to solve the pipe issue?

BR
Rolance
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com