Questions tagged [non-interactive]

96 questions
172
votes
5 answers

Passing arguments to an interactive program non-interactively

I have a bash script that employs the read command to read arguments to commands interactively, for example yes/no options. Is there a way to call this script in a non-interactive script passing default option values as arguments? It's not just one…
sidharth sharma
  • 3,025
  • 6
  • 23
  • 20
77
votes
11 answers

How do I run git rebase --interactive in non-interactive manner?

Is it possible to do following? Make git rebase --interactive to just output standard boilerplate to a file, instead to outputting to a file and opening it in editor. Let the user edit the file. Let user re-run git rebase with the name of edited…
pfalcon
  • 6,724
  • 4
  • 35
  • 43
57
votes
4 answers

Why aliases in a non-interactive Bash shell do not work

I am trying to use aliases in a non-interactive bash shell. I have defined my aliases in ~/.bashrc and I have set the variable BASH_ENV=~/startUpFile. The contents of the startUpFile are source ~/.bashrc. I can see that my aliases are recognized,…
nisah
  • 2,478
  • 3
  • 22
  • 20
40
votes
7 answers

How can I access a mapped network drive with System.IO.DirectoryInfo?

I need to create a directory on a mapped network drive. I am using a code: DirectoryInfo targetDirectory = new DirectoryInfo(path); if (targetDirectory != null) { targetDirectory.Create(); } If I specify the path like…
Leo B
34
votes
1 answer

How to force ffmpeg into non-interactive mode?

Sometimes you want ffmpeg to ask you whether it should overwrite a file. Sometimes it's just a script that you prefer would fail if something is amiss. I.e. don't rely on stdin to answer if you have a question.
ubershmekel
  • 11,864
  • 10
  • 72
  • 89
25
votes
3 answers

How to make apt-get accept New config files in a unattended install of debian from Repo

I am writing a script for a unattended install of a package that is in our Repo, It is a Software Package with one of the Debians marked config. Is there any option that I can pass to apt-get/aptitude so that it accepts the new Config…
RamNat
  • 537
  • 2
  • 7
  • 14
17
votes
2 answers

How to make non-interactive graphical overlay on top of another program in c#?

To give some background, I am developing a piece of software that assists players with the game Star Wars: The old republic. The game has very limited user interface capabilities, so i am developing an external application that will parse the log…
Adrian
  • 183
  • 1
  • 1
  • 6
14
votes
1 answer

How do I force Git NOT to prompt for credentials

I'm using git clone in a Bash script that takes any type of Git location (HTTPS, Git, SSH, filesystem...) and will clone it. But this script must work without interaction with any user. More precisely, I would like this script to NOT PAUSE for…
vaab
  • 9,685
  • 7
  • 55
  • 60
12
votes
3 answers

How to do remote ssh non-interactively

I am trying to connect to a remote host from my local host through the below command.But there was a setting in the remote host that soon after we login it will prompt to enter a badge ID,password and reason for logging in, because it was coded like…
Jill448
  • 1,745
  • 10
  • 37
  • 62
11
votes
1 answer

bash storing the output of set -x to log file

I have a simple download script and I use set -x which works great; I can see each step it performs, and I can identify errors in the script or in the download: #!/bin/bash set -x #short_date=$(/bin/date +%m%d%y) short_date=$(/bin/date -d "8 day…
capser
  • 2,442
  • 5
  • 42
  • 74
9
votes
2 answers

Non-interactive scp

I'm creating a bash script to create new EC2 instances and then upload a file once the instance is created. I'm using scp to upload the file, however, since this is the first time I'm connecting to the instance the script is prompted with "Are you…
Richard Dorman
  • 23,170
  • 16
  • 45
  • 49
7
votes
3 answers

avoiding browser calls in R

I have an elaborate script that spans multiple functions (and files). For debugging purposes I need to embed browser calls into all sorts of nooks and crannies. When I presumably fix something, I want to run the whole thing without debugging, ergo…
Roman Luštrik
  • 69,533
  • 24
  • 154
  • 197
7
votes
1 answer

Execute Google Cloud SQL query in command line non-interactively

I'm writing a script to orchestrate a Google Cloud SQL instance using the gcloud SDK. The SDK has a connect command, which takes a username but the password has to be entered at the prompt - ie it cannot be passed as an argument. Successfully…
Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
6
votes
2 answers

Why is a Git post-commit hook on non-interactive rebase not run?

Given an arbitrary, executable Git post-commit hook it is not run during a non-interactive rebase, neither with rebase --force-rebase nor with rebase --no-ff which is a synonym for the former in non-interactive mode according to the GIT-REBASE(1)…
Tim Friske
  • 2,012
  • 1
  • 18
  • 28
5
votes
4 answers

Python importing modules differently when run interactively/non-interactively

One of my Python scripts runs in interactive mode but fails when run from the command line. The difference is that when run from the command line, it imports modules from a bad .egg file, and when run interactively it uses my fixed (unzipped)…
Dan
  • 1,677
  • 5
  • 19
  • 34
1
2 3 4 5 6 7