5,742 questions
0
votes
2
answers
185
views
How to accurately extract a block of text with CMD BATCH?
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 ...
1
vote
0
answers
176
views
Laravel using "log" broadcast driver/connection despite setting it to Pusher
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 ...
-1
votes
1
answer
78
views
why does `set AUTH=on` or `set "AUTH=on"` not working in my computer? [closed]
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 ...
1
vote
1
answer
115
views
Snowflake SnowSQL debug command equivalent to echo/print
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 ...
0
votes
1
answer
81
views
How do I pass form data to the next form page after sending to a php mailto page?
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 ...
0
votes
0
answers
34
views
How to implement background notification in web?
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 ...
-1
votes
1
answer
35
views
Echoing a variable with a greater than sign (>) in a Windows command prompt causes a file creation, even after using the escape caret (^)
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 ^>:...
1
vote
1
answer
97
views
Printing array with printf vs echo gives different results [duplicate]
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 ...
0
votes
0
answers
37
views
Term for Repeating a Command as Interpreted/Executed
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 ...
-1
votes
4
answers
85
views
Isolate last non 0 digit from IP address
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 ...
1
vote
1
answer
165
views
How to use the echo command to display /? without it showing its own help information
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 ...
0
votes
2
answers
125
views
How can you portably echo a shell string without using printf?
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() {
...
0
votes
1
answer
88
views
Variable not being echoed correctly, inserting itself into another variable [duplicate]
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 ...
0
votes
2
answers
107
views
Implement the ECHO command
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 ...
0
votes
1
answer
78
views
Match output of a CURL in an IF-ELSE condition in BASH [duplicate]
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 ...