1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

history is getting deleted under unknown circumstances

Discussion in 'Support' started by covici, Apr 3, 2016.

  1. covici

    Joined:
    Jun 25, 2008
    Messages:
    15
    Likes Received:
    0
    Hi. I am using v19 of take command and sometimes the history gets deleted. It seems to happen if the system is shutdown without exiting take command first, although there may be other things going on here. In older versions, this never happened, so I am wondering why this is so fragile. Usually, if I exit first its fine.

    Any suggestions would be appreciated.
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    Can you elaborate? Which history? What is being deleted ... a file?
     
  3. covici

    Joined:
    Jun 25, 2008
    Messages:
    15
    Likes Received:
    0
    Well, what happens is that the history.txt file gets truncated and so all the history is lost -- sorry I was not clear. I have the option to read the history file at startup and to save it upon exit.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,804
    Likes Received:
    82
    Not sure what you mean by the option to read at startup and save on exit -- do you have something in your TCSTART and TCEXIT?

    Windows only gives apps about 3 or 4 seconds to shutdown, so if your TCEXIT is doing something complicated you're likely to get TCC summarily killed by Windows on a shutdown.
     
  5. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    It sounds like he's talking about:
    {CODE]
    History File : Load the specified history list file before running TCSTART, and save the command history to the file after running TCEXIT. You should include the full pathname.[/CODE]
    I have never used that option so I can't comment.
     
    #5 vefatica, Apr 4, 2016
    Last edited by a moderator: Oct 19, 2016
  6. covici

    Joined:
    Jun 25, 2008
    Messages:
    15
    Likes Received:
    0
    Well, I don't have anything in tccexit.btm after all, but I thought it would save on exit and read on startup the designated file which is history.txt in my case. Is this not so?
     
  7. covici

    Joined:
    Jun 25, 2008
    Messages:
    15
    Likes Received:
    0
    Yep, exactly what I am talking about.
     
  8. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    I just tried it twice (logged off while TCC was running in TCMD) and it worked. Be aware, that is a TCC option (not a TakeCommand option). The only commands that will be put into that file are those executed at a TCC command line. If you're running some other program in TakeCommand, or a version of TCC that has not been configured to use your history.txt, commands won't be saved.
     
  9. covici

    Joined:
    Jun 25, 2008
    Messages:
    15
    Likes Received:
    0
    Well, it seems only to happen if the system completely shuts down unexpectedly -- or so it seems to me -- so it might be hard to duplicate the problem on demand. All I know is that under version 11, it worked fine, so I posted here to see if there was a fix, or if there is a way to file a bug.
     
  10. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    "System completely shuts down unexpectedly" ... blue_screen_of_death? ... pushing the hardware on/off button? ... pulling the plug? ... power outage? I wouldn't expect anything to work correctly in those cases.
     

Share This Page