python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Error redirection in the body of the bash shell function
I have a script like the one below:
#!/bin/bash
#func.sh
func(){
badcommand1
echo "OK"
badcomand2
}
func 2>&1 > err.log
#The top line is in the file
My goal is to redirect all...

MD128
Votes: 0
Answers: 1
How to import Data from a MariaDB Dump-File with Windows PowerShell
Im trying to import a dumpfile.sql in the Windows Powershell with:
mysql -u root -p --database=database < Backup.sql
but i get the following error:
At <script-path>:1 char:34
+ mysql -u root...
SeppUnterwurzacher
Votes: 0
Answers: 1
Adding a redirection to a bash command array
I am storing a command to execute in a bash array, example:
declare -a cmd=("sudo" "dnf" "update")
"${cmd[@]}"
Last metadata expiration check: 0:24:45 ago on F...
anon_stackoverflock
Votes: 0
Answers: 4
how to perform input redirection to gdb on cygwin using command-line arguments
This is a follow-up question that originates from the answer from thiefmaster to this question: gdb input redirection using cygwin
I am a beginner, so kindly pardon my ignorance.
I want to know how to...
Singh
Votes: 0
Answers: 0