Using "file size <>" in EEM script

Answered Question
Feb 9th, 2012

Hi,

I'm working on a EEM script that saves logs to flash of the router and I'm trying to figure out a way to keep the file size under a certain limit to prevent the flash filling up from that one file. The problem now is that I'm not allowed to use the "file size <>" command in a EEM script. Anyway to get around this problem? I know this is because of the script is running in Safe-Tcl mode. Can I somehow get the scripts to run in a mode where I can use the "file size" command on a file I have created?

I have this problem too.
0 votes
Correct Answer by mtimm about 2 years 2 months ago

In the EEM flavor of safe-tcl file stat is available.  You should be able to use that to get the file size.

Mike

  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 5 (1 ratings)
Correct Answer
mtimm Thu, 02/09/2012 - 09:37

In the EEM flavor of safe-tcl file stat is available.  You should be able to use that to get the file size.

Mike

Actions

Login or Register to take actions

This Discussion

Posted February 9, 2012 at 9:10 AM
Stats:
Replies:1 Avg. Rating:5
Views:354 Votes:0
Shares:0
Tags: script, tcl, eem
+
Categories: Other
+

Related Content

Discussions Leaderboard