Skip to main content

Question list filters

Filter by
Sorted by
Tagged with
Score of 3
3 answers
128 views

I'm invoking a CLI tool from Python using: import subprocess, shlex cmd = f'somecli eval {shlex.quote(js_code)}' subprocess.run(cmd, shell=True, capture_output=True, text=True) This works correctly ...
Score of 2
0 answers
91 views

I'm running Android 13. When I run adb shell in a USB connection from my desktop machine to my Android device, the following is the value of the PS1 variable that gets automatically set: ${| ...
Score of 1
7 answers
350 views

I have an mp3 library in a music folder structured by artist/album/song.mp3 (or other extension, but the folder contain audio only, so extension doesn't matter here). I wish to copy this music ...
Score of 0
0 answers
94 views

In a C++ program, I have a string. For reasons, this string needs to be written into a shell script, either as a command-line argument, or for setting the value of a variable. The shell is POSIX-...
Score of -1
1 answer
341 views

I have a program (program.exe) that converts XML files to HTML files. I use the following PowerShell command to convert all XML files in a specified directory to HTML files: Get-ChildItem -Path E:\...
Score of 0
1 answer
68 views

I have a script being used to transfer updated files between RHEL servers, the script runs the following loop: for RHOST in $RHOSTS; do ssh $RHOST cp -p "$CMD_DIR/$CMD" "$CMD_DIR/${...
Score of -1
1 answer
131 views

I have a written the below C++ program wherein I'm trying to imitate processing status in a console. Everything runs/displays correctly. When I redirect the program output to a file and then use ...
Score of 3
2 answers
138 views

I can run code like this in bash #: can works well: #: (start a new bash) foo_a () { echo a ; } foo-a () { foo_a ; } echo will out a: foo_a It works well. These work well also: #: can works well: #: (...
Score of 1
1 answer
179 views

I'm attempting to set the prompt of tcsh according to the status of the last command, as given by $status, but I'm encountering difficulties managing that. Displaying the status itself is no trouble; ...
Score of -2
2 answers
124 views

xidel 'https://en.wikipedia.org/wiki/List_of_trigonometric_identities' -e '/html/body/div[3]/div/div[3]/main/div[3]/div[3]/div[2]/table[1]/tbody/tr[2]/td/span/a/img' --output-format=xml outputs <?...
Score of 0
3 answers
171 views

PS1 has either $(cat arch_prompt.sixels) or $(chafa arch_prompt.png) so I get that garbled mess. Sed doesn't work. The image gets garbled and doesn't work if it's removed, but as you see the small ...
Score of 0
1 answer
47 views

I have a number of scripts that use find -depth to trawl directories in a "clever" way, e.g. to set file and directory times from EXIF metadata. Every now and then I will forget about white ...
Score of 1
1 answer
238 views

TL;DR: how can I determine the Rust target platform triple without installing Rust or Cargo? I would like to download the appropriate pre-compiled binary program file. The pre-compiled binary program ...
Score of 1
1 answer
111 views

Is there a way to enforce the execution of the Fortran compiler contained in gcc-16.1.0-64 to recognize a blank space in a filename when executed in the Windows cmd.exe command line? Others, like the ...
Score of 0
1 answer
78 views

Spotlight wasn't finding stuff I knew was there, so I ran this Applescript: do shell script"sudo mdutil -Ea"with administrator privileges and got this error: Error: CoreSpotlight reset ...

15 30 50 per page
1
2 3 4 5
6189