How do I generate a script for SQLite in Windows 10 - sqlite

These are instructions to generating a script in Linux
"You should start a script by issuing the command
script a2-script
This will create a file a2-script, which will log input and output at the terminal until you stop the script by typing
exit"
How do I do the same thing in windows 10? I tried typing sciprt a2-script in command promt but I get a message saying that the word script is not a recognizable command

The script command records everything you type and everything that is output on your Terminal. You can't do that in Windows easily.
The best thing to do is ignore that step and run the rest of the instructions and, when the screen is full, right-click in the window's title bar and choose edit->mark and select the text you want, then right-click in the title bar again and click edit->copy. Now you have a copy of the window and you can go in a MS-Word document, or any text editor and paste the contents to have a record of what you did.

Related

In RStudio, can commands be sent from code chunks to the terminal?

In RStudio, is it possible to have a code chunk that sends commands to the terminal (specifically Windows CMD prompt)? I know that I can use the command prompt via the "Terminal" tab in RStudio, but I would like to write these commands in a code chunk within a larger RMarkdown document. This way, when I click "Run All", the commands are sent automatically at the appropriate time.

R - How to display progress when executing scripts via Command Prompt

I've been using the command prompt to schedule and execute R scripts. However, the prompt always displays an empty screen when executing scripts. Is it possible to display text of the script running?

Click button using command-prompt

I need to install a program using cmd(hoping to create an batch file lately).
I have executed the program using cmd. After Installation window pops up how do I click those buttons using command prompt?
Can I use sequence of tab key, arrow keys and enter key using cmd to install the program?
You can check out AutoHotKeys
http://ahkscript.org/
There are multiple options. Some installers have command line arguments support for silent installation. Some can be extracted using specific softwares. if so there will be a file to describe it inside extracted content. Some supports hot keys. In most cases it is possible without clicking ui buttons

How to easily open a script in R-studio

I am very new to R-studio. In RGui, I was used to click File / Open Script to open a new script. But in R-studio, I only see File / Open File which generaly opens any file (?). The disadvantage is that I have many files in my directory and I want to see only *.R files when opening a script - which is what Rgui does and I love it - but cannot figure out how to do the same in R-studio.
If you use windows, you can just type
~>".R"
into the search box top right (while you are in your R folder), and you will only see files that end on .R
If you click into the search box, you see your past search queries, so you won't have to type it again every time you open a script.
If you use a different OS, look for a respective search "wildcard".
edit: "show file extensions" should be activated

Is there any console tool to save some commands as bookmarks or buttons?

I work often with ssh and command line scripts. I would like not to type the name of the command with arguments again and again and also to call my scripts by clicking a button.
Is there any console application that does that?
My guess is that I should fork a console tool (like konsole) and then add buttons that can be associated with commands I want to use often.
Then the better option is creating a desktop launcher , like the following as target.
Assuming you are having a gnome desktop.
Execute the following command,
gnome-desktop-item-edit --create-new ~/Desktop
This will launch a window ,which will prompt for a command name , command ,and comments.
Fill it as per your needs,
Eg: name : MyCommand_to_start_apache
command : httpd -f /my/custom/httpd.conf
That's it , if you want more fun give a try for gnome-panel or gnome-tweak-tool.
Another great tool is AutoKey

Resources