Questions tagged [non-interactive]
96 questions
1
vote
2 answers
How to deploy new code via git, if git only installed on my user?
The scenario
I have access to this old linux server, that no longer receives any type of updates. Only break and fix. There's no git installed on the server so I installed it locally on my user at ~/opt/bin. I added the directory to my path and for…

Manny
- 43
- 7
1
vote
3 answers
non-interactive password SSH in JAVA
I have a program that requires cascaded SSH, i.e. it ssh A server and then using same connection ssh B server. Server A is acting as a bridge. I have an instance of shell which is used to ssh first server.
When I am doing ssh user@ipAddress, it…

Mo3z
- 2,138
- 7
- 21
- 29
1
vote
1 answer
Non-interactive authentication into ArcGIS portal
We have a .NET MAUI app that uses our internal API and also needs to use Esri's ArcGIS portal.
The authentication for ArcGIS portal is setup to use our Azure AD as identity provider.
What we are trying to accomplish the following flow:
Using our…

dik1977
- 21
- 3
1
vote
3 answers
Why does Prolog duplicate all the answers when the number of print directives is more than one?
Following is my knowledge base:
parent(claudia, taiane).
parent(wl, cris).
parent(cris, jim).
parent(cris, pedro).
man(jim).
man(pedro).
man(w).
man(wl).
woman(taiane).
woman(claudia).
woman(cris).
When my main has just one print:
main:-
…

John Smith
- 835
- 1
- 7
- 19
1
vote
1 answer
How might I get all the answers noninteractively without receiving duplicates?
Inspired by this worthy answer to a similar problem, I decided to use fail in the following code in order to get all the…

John Smith
- 835
- 1
- 7
- 19
1
vote
1 answer
How to use bash aliases in a non-interactive shell?
I am using Windows 10. I followed this tutorial on how to create bash aliases. I put the aliases in ~/.bashrc, and used source ~/.bashrc afterwards. When I tried to use one of the aliases, I get the following error:
$ docs
bash: docs: command not…

yees_7
- 114
- 8
1
vote
1 answer
Windows PowerShell is in NonInteractive mode. Read and Prompt
win_shell: |
Get-disk
Initialize-Disk -Number 2 -PartitionStyle MBR
clear-disk -number 2 -removedata -Confirm:$false
Initialize-Disk -Number 2 -PartitionStyle MBR
new-partition -disknumber 2 -usemaximumsize |…

vik_nag
- 415
- 1
- 5
- 7
1
vote
0 answers
pass apache httpd passphrase non-interactively to standard input
Starting apache httpd prompts for a passphrase string text like below
$ echo -n "mypassword" | /web/apps/perf/apache/2.4.46/https-model/bin/apachectl -k start
Apache/2.4.46 mod_ssl (Pass Phrase Dialog)
Some of your private key files are encrypted…

Ashar
- 2,942
- 10
- 58
- 122
1
vote
1 answer
Postgres in Windows - Restoring database - fatal: -1 can only be used in non-interactive mode
I am new to Postgres and I am attempting to load/restore a Postgres database from a database dump file within Windows. When I attempt to do so I get the following error. Being new to Postgres I am not sure what the error means.
The…

webworm
- 10,587
- 33
- 120
- 217
1
vote
0 answers
Use of MPAndroidChart in Background Thread throws java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
I've created a small app that uses the chart library MPAndroidChart to visualize the data it holds. I'm creating Charts, generating PDF holding the Charts, and so on, all initiated from the UI thread. Works fine so far.
Now there is a requirement to…

Apo
- 13
- 3
1
vote
1 answer
running ipython in non-interactive mode
I was hoping it would be easy to rewrite a few bash scripts using ipython by using the "!" command. Unfortunately if I try to run ipython in non-interactive mode like so:
ipython -p sh myipythonscript.py
where myipythonscript.py contains commands…

pontikos
- 1,433
- 2
- 11
- 7
1
vote
0 answers
OAuth non-interactive login
I'm building a console application that needs to access information from REST API secured with OAuth. Is it possible to run it in background i.e. w/o requiring browser redirection for authentication. The only option I see right now is to mimic…

kirill_l
- 595
- 1
- 6
- 16
1
vote
2 answers
Is it possible to run WSL Bash in non-interactive mode?
One may want to use Bash on Windows in Task Scheduler or maybe as version-control hook scripts. Is it possible or supported?
If not, why? Is it a bug or a measure to prevent some issues?

bahrep
- 29,961
- 12
- 103
- 150
1
vote
1 answer
Non-interactive auto-refresh stale OAuth Token with Googlesheets package
I'm trying to automatically run an r script to download a private Google Sheet every hour. It always works fine when I'm interactively using R. It also works fine during the first hour after I automate the script with launchd.
It stops working an…

Ron Guymon
- 11
- 3
1
vote
1 answer
Run multiple commands in a non-interactive shell session and parse the output
I would like to communicate with a (remote) non-interactive shell via its stdin/stdout to run multiple commands and read the outputs. The problem is that if I stuff multiple commands on shell stdin, I am not able to detect the boundaries between…

Nicht Verstehen
- 421
- 2
- 11