history is getting deleted under unknown circumstances

Jun 25, 2008
15
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.
 
Jun 25, 2008
15
0
Can you elaborate? Which history? What is being deleted ... a file?
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.
 

rconn

Administrator
Staff member
May 14, 2008
12,406
152
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.
 
May 20, 2008
11,543
104
Syracuse, NY, USA
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.
 
Last edited by a moderator:
Jun 25, 2008
15
0
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.

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?
 
Jun 25, 2008
15
0
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.
Yep, exactly what I am talking about.
 
May 20, 2008
11,543
104
Syracuse, NY, USA
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.
 
Jun 25, 2008
15
0
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.
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.
 
May 20, 2008
11,543
104
Syracuse, NY, USA
"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.
 
Similar threads
Thread starter Title Forum Replies Date
R Command history getting reloaded Support 16
J History file load hangs if file has complete garbage in it... Support 1
R History window wrong size, can't remember size change Support 12
T How to? retain command history across reboot? Support 6
nikbackm Speeding up the history dialog Support 6
D ParentDirectory does not update directory history Support 6
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
R Long commands retrieved from command history have blank line when wrapped Support 20
Joe Caverly @HISTORY issues Support 4
vefatica Deleting entries in the command history popup? Support 3
H History and TPipe Oddness Support 3
D History and control-C Support 1
G Console exe up / down history Support 8
D What does the file "..\Everything\Run history.csv" store? Support 5
rps Cmd history recall Support 4
David McClelland Command history loosing entries Support 18
R history features. Support 6
rps How to? Shralias and producing history.sav, alias.sav .. Support 6
M Ctrl-C when using command line history does nothing Support 2
S Debugger Bat file call history Support 9
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
vefatica ESC after recalling a command from history Support 3
T TCHelp executable history? Support 2
thorntonpg @blahblah added to history. Support 0
M Call History popup-window? Support 0
M HISTORY lessons ... Support 0
vefatica The help and IE's history Support 16
D Towards shared (dir-)history lists Support 3
vefatica Ctrl-Enter in command history window? Support 8
vefatica History recall turns off Quick-Edit Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2
T [TCC 18] Can't read nor write history Support 1
I Possible Bug: History /n Returns Nothing Support 3
jbanaszczyk Lost history Support 4
T history.sav Support 4
T How to? sort history in tcexit.btm Support 22
vefatica OT: Windows console history? Support 7
S directory history locks up TCC Support 3
R In addition to ALIAS /Z and FUNCTION /Z, HISTORY /Z? Support 1
E TCC History popups too small Support 0
C How to? Keeping all history lists Support 4
E Command History not showing on up arrow button Support 8
nikbackm HISTORY /R1 performance Support 3
T Selecting line from popup history without executing Support 8
A How to? Filter history list with unicode chars Support 0
vefatica WAD HISTORY /R, No closing quote? Support 10
vefatica WAD DO /S ... all dirs wind up in the history! Support 12
D Dir History file check Support 18
ehab aboudaya How to? Command Input history for each tab? Support 0

Similar threads