cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
625
Views
0
Helpful
2
Replies

Closing file in memory

I have been working with a TCL that opens a text file...

The problem is that the TCL did not close it...

So now when I do a sh file descriptors its full 127 instance of same file..

Is there a way to clear that cached info without rebooting the gw ?

Thanks LIsandro

1 Accepted Solution

Accepted Solutions

Raghavendra G V
Cisco Employee
Cisco Employee

Hi Lisandro,

If you are looking for file close below is the example.

Example :

set fh [open output.txt r]

set data [read $fh]

close $fh

You can close the call with command "call close"

Thanks,

Raghavendra

View solution in original post

2 Replies 2

Raghavendra G V
Cisco Employee
Cisco Employee

Hi Lisandro,

If you are looking for file close below is the example.

Example :

set fh [open output.txt r]

set data [read $fh]

close $fh

You can close the call with command "call close"

Thanks,

Raghavendra

I was out on Holiday thanks for you reply was happend was that I forgot to close some files and the file descriptor keep opened on the gw was I was looking was to delete that fiel descriptor without rebooting the gw... But finally we had to do that anyways..

Thanks for your reponse..

Regards

Lisandro