Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
185 views

I'm trying to output part of a file (the text enclosed between :begin(...) and :end(...) markers) using a BATCH script. The target is pure ASCII text but it may contain blank lines and symbols; the ...
Fravadona's user avatar
  • 17.6k
1 vote
0 answers
165 views

I am trying to use Pusher as my broadcast driver by setting BROADCAST_CONNECTION=pusher in my .env file which is used as the default in my broadcasting.php file. However, whenever I go to print out ...
TygerSport's user avatar
-1 votes
1 answer
78 views

I'm trying to set an environment variable named AUTH with the value of on but it's not working. I have tried the following (both not working): set AUTH=on set "AUTH=on" When I try to print ...
0xdeadbeef's user avatar
1 vote
1 answer
113 views

I'm discovering Snowflake, and am currently using a few SET commands to set session variables values. Not going too much into the details (because I don't want anybody to focus on this part), I ...
arvymetal's user avatar
  • 3,413
0 votes
1 answer
78 views

I have a few forms on my website which I need site visitors to submit in sequence. 'form1' sends the user data to the (php mailto) form mailer. The header(location) of the form mailer then directs the ...
Vera de Milo's user avatar
0 votes
0 answers
34 views

I have implemented Laravel Reverb in both public and private channels and working fine, however, I could not implement background service worker to receive notification on the PC from browser while ...
Aminul's user avatar
  • 1
-1 votes
1 answer
35 views

I would like to save the text Hello>World in a variable in a Windows command prompt, and then echo it. So, I run the following commands, and I am properly escaping the text by using the caret ^>:...
user3163495's user avatar
  • 4,046
1 vote
1 answer
96 views

I am trying to create an array from a file. In the troubleshooting process, I hope to print out all elements of the array to convince myself I'm doing it correctly. However, when I use a hard coded ...
coyk's user avatar
  • 11
0 votes
0 answers
37 views

I'm writing a user manual for an embedded system, and I'd like to know if there's a commonly used term for repeating a command back to the user, but repeating it in the way that it was interpreted and ...
Roderick's user avatar
-1 votes
4 answers
81 views

I have to read an IP from def.cfg file that is set in a line named TERMINAL_IP (TERMINAL_IP = "192.168.0.140"), then do an append to the end of the def.cfg file with the last digit read that ...
Mario's user avatar
  • 9
1 vote
1 answer
162 views

I am writing a batch script featuring a help screen containing this echo string: echo /? Show this screen How would I prevent the echo command, in this case, from printing its ...
HMegaCrafter2000's user avatar
0 votes
2 answers
125 views

I want to write the contents of a shell variable into a pipe, as it is, without modification. "echo -n" would be nice too. Everyone says "use printf", something like echo() { ...
martinwguy's user avatar
0 votes
1 answer
88 views

I'm very new to bash and I have an assignment where I must create a script which reads an url and extract the http code, the encoding used and the word count. Everything works perfectly except the ...
Gwayns's user avatar
  • 11
0 votes
2 answers
104 views

Instructions In this stage of this project I'm making, I need to add support for the ECHO command. ECHO is a command like PING that's used for testing and debugging. It accepts a single argument and ...
Vxnsh's user avatar
  • 1
0 votes
1 answer
77 views

I want to evaluate the output of a curl in an if-else. If the first condition matches, then shell return 0 and hence I equate to zero. Similarly for the second condition If Nothing matches go to else ...
Software Fan's user avatar
1 vote
0 answers
377 views

I'm working on this project that, in short, has a real-time chat system implemented with laravel reverb. Everything with dispatching events on the laravel server is working fine and the events are ...
roozmehr knight's user avatar
0 votes
4 answers
100 views

I tried to print the string "-e" using echo I tried echo "" -e but a space is printed before -e, the output is: -e so I tried to remove the space echo ""-e and the ...
Amr Alasmer's user avatar
0 votes
1 answer
79 views

The query below works fine in phpMyAdmin and displays the correct results. However, when implemented on a php page, it shows nothing (a blank page). Can someone help me to display these results in the ...
Thorsverd's user avatar
0 votes
0 answers
110 views

In my bash script I redirected stdout and stderr to a logs file to prevent it from being printed in the terminal. I set my script to exit on error occurrence using set -e switch. Now, whenever any ...
Krzysztoff's user avatar
0 votes
2 answers
71 views

i need to echo multiple list like this list_0=(1 2 3 4 5 6) list_1=(7 8 9) list_2=(22 7 34 88) ..... ..... list_99=(23 67 80) I have this version that works but every time I have to declare new list ...
Adrian Oprea's user avatar
1 vote
1 answer
90 views

Assuming that I created a file with 10 lines: yes "foo bar" | head -n 10 > foobar.txt [out]: foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar And I want ...
alvas's user avatar
  • 123k
1 vote
0 answers
41 views

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1....
Inba V's user avatar
  • 11
-1 votes
2 answers
99 views

I'm trying to pass a string through a pipe going from echo to sed to read, but something isn't working: #!/bin/bash STR="alef|bet|gimel|daled" echo $STR echo $STR | sed 's/\|/ /g' | read ...
Akira Takeshi's user avatar
-2 votes
3 answers
89 views

I would like to use a true/false result to do alternative things in PHP. I was surprised by the following: $falsevar = false; $truevar = true; echo "falsevar which I just set to false is".$...
user6631314's user avatar
  • 2,050
1 vote
2 answers
2k views

WebSocket connection to wss://subdomain.domain.com/app/... failed Its working on locally without any issue but in production it gives issue here is my .env for production REVERB_APP_ID=401132 ...
Muntasir Hasan's user avatar
0 votes
1 answer
73 views

I am trying to build two arrays (arr1 and arr2 which will have the same length) in the command line to be referenced in a for loop. Building the command like this from the script, set arr1[0]="a&...
Amazonian_panda's user avatar
0 votes
1 answer
74 views

Reproducible example Consider this example: #!/usr/bin/env bash echo "[Status] $(killall --wait example)" Expected output: [Status] example: no process found Actual result (being wrong ...
GrabbenD's user avatar
  • 580
0 votes
1 answer
88 views

The mysql client on my Macbook echos command lines. Even when I turn echoing of command lines off in the shell, when I start up the mysql client it immediately begins echoing them. Then when I exit ...
Percy's user avatar
  • 55
2 votes
2 answers
106 views

I have multiple markdown files that I am trying to concatenate into one markdown file in bash. I can concatenate markdown files and preserve “\newpage” lines, but when trying to add a group title via ...
ThinkRat's user avatar
1 vote
0 answers
47 views

I am creating a RSS feed in WordPress. In my functions.php, I have $content = htmlentities(strip_tags(get_the_content()), ENT_XML1, 'UTF-8'); echo '<description><![CDATA[' . $content . ']]>...
Pritam Mullick's user avatar
1 vote
2 answers
333 views

Plenty of other commands/binaries would (for example wc --wrong-flag) but is echo one of them? Context: I am maintaining somebody else's Bash script, looking at the following section of it (slightly ...
Leonid's user avatar
  • 712
2 votes
2 answers
2k views

I want to run golang REST api project in echo labstack. for development purpose i want that when i save file it automatically refesh the api's in VS code like nodemon does in nodejs. i am trying to go ...
Vivek's user avatar
  • 166
0 votes
0 answers
28 views

Am trying to echo a line variable along with another variable like below while read -r line;do id1=$(echo "$line"|grep...) id2=`grep "$id1"...." echo "$line" , "...
sabarish tr's user avatar
0 votes
1 answer
358 views

I have a python script which is getting called from a csh script ( I can not use bash). The python script prints out string with the newline characters and I am storing the output in a csh variable. ...
DDStackoverflow's user avatar
1 vote
1 answer
147 views

How should one parse the chat text received as JSON payload in the request body when using an outgoing webhook as an application in a Teams group to fetch the output of a PowerShell Azure function? ...
Ayan Mullick's user avatar
-1 votes
3 answers
3k views

I have a problem with script constantly printing signs \n. My script is made for bash and is set to posix=yes. When I ran program on Mac the printing to bash is done only by echo "text here"....
Patrik's user avatar
  • 11
1 vote
0 answers
71 views

I have two simple Shell scripts that essentially do the same thing (i.e., printing all arguments), as are shown below. S1: #!/usr/bin/tcsh echo [$argv[*]] S2: #!/usr/bin/bsd-csh echo [$argv[*]] S1 ...
zanetu's user avatar
  • 3,928
1 vote
1 answer
156 views

I get json encoded secrets from a Vaulwarden-Instance by their UUID. I want so loop over any uuid and set environment variables accordingly. For every field there should be variable (see below) ...
izphi78's user avatar
  • 13
0 votes
1 answer
53 views

I am currently using a table that uses a show columns query to echo all the columns into checkboxes. The below code works for that. I tried to create another query right under the query to search a ...
Don's user avatar
  • 25
0 votes
0 answers
54 views

I have a cron task that captures log files every six hours. We have a post installation script that executes after we do an install and this script builds the crontab. It is a csh script that uses the ...
Qman's user avatar
  • 138
4 votes
1 answer
2k views

docs says. go install github.com/a-h/templ/cmd/templ@latest [This does not work.] what I did. 1. git clone https://github.com/a-h/templ.git [in /tmp] cd cmd/templ && go install still Error. ...
c9der's user avatar
  • 114
1 vote
0 answers
218 views

I'm creating a desktop app using Wails with React.JS, I have a simple endpoint I want to expose, I'm using Axios to make requests from the React.JS Component, in the backend, I'm using echo to expose ...
Ahmad Bader's user avatar
1 vote
1 answer
179 views

My goal is to divide 2 text files, each containing a single integer, but limiting the answer to 2 decimal places. I managed to do it with paste total.txt count.txt | awk '{printf "%.2f\n", $...
Yitasha's user avatar
  • 177
1 vote
1 answer
95 views

I am running an echo command in bash and I am seeing some unexpected results. When running: echo "{ "outputs": { "result": "[{\"directory\":\"...
Seyfat Khamidov's user avatar
1 vote
1 answer
144 views

I work with a variety of diagnostic files (text / jq for JSON / yq for YAML / xpath for XML, lnav for log files) in Bash where I need to dynamically determine meaningful data parsing before reporting ...
nestor's user avatar
  • 35
1 vote
0 answers
161 views

im having problems with gorilla sessions mainly, but with nextjs and frontend too, i can fetch all my data with no problem, but when i try to send the user to the front end from the gorilla session ...
vfreis09's user avatar
1 vote
0 answers
391 views

I have a python script that runs on my pc, monitors web data and occasionally prints an alert. I would like to feed this string to alexa so the alert ​is announced on all my echo devices. How can I ...
SamCie's user avatar
  • 131
0 votes
2 answers
109 views

When IFS has its default value and an array is printed without quotes, the interpreted value doesn't have quotes, but when IFS doesn't have a space it it, it does. Using an echo web server and curl to ...
Larry's user avatar
  • 332
-2 votes
1 answer
489 views

How can I suppress the output of the RUN command in a Dockerfile? In the code below, I'm attempting to redirect the SSH_PRIVATE_KEY to a file using the echo command. However, during image building, ...
Arafat Hasan's user avatar
  • 3,237
2 votes
1 answer
398 views

I'm attempting to program a simple turn-based game in Godot which relies on a Python websocket server for rules and state updates. To that end, I'm trying to make a simple prototype where I can input ...
Meme Magician's user avatar

1
2 3 4 5
115