I have a save function like noraml tool (Ctrl +S). I have a command line argument that is defined as (-A). I have to use this -A to perform the save function automatically. If I pass the command in Linux for eg: " ToolName -A ". It has to save the operation that has been made in thetool. what would be the easiest way to perform auto save.

Your post is a little confusing. Auto-save would be built into the app (you call it tool.)

So in your processing loop for key input and such you would set the timer at which interval you want an auto-save.

To tell this tool to save via a command line is not what I call auto-save.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.