Questions tagged [script]
An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.
2,778 questions
4
votes
2
answers
1k
views
How to delete only writable files?
In a script I want to delete specified files, but only if they are writable (by the caller). I thought yes n | rm ... would do the work, but apparently not:
> touch t/beta t/gamma ; chmod a-w t/...
0
votes
1
answer
53
views
How can I ensure that a script runs without interruption on windows? [closed]
I have an Ahk script that interacts with the GUI (it opens the ERP's exe and exports an Excel by pressing certain buttons, etc.). I've set this script to run every 30 minutes, but sometimes I see that ...
0
votes
0
answers
18
views
Cmd to identify the driver shown in a BSoD?
I'm writing a batch script to 1) detect if the last shutdown was a crash, 2) identify the driver responsible* for the crash, and 3) perform some specific troubleshooting accordingly. I know exactly ...
0
votes
0
answers
54
views
How to use NinjaRMM to run an application via API?
I have a script like this listed on the device:
{
"type": "SCRIPT",
"id": 67,
"name": "script.run_application",
"language&...
1
vote
2
answers
83
views
Consolidate csv lines
I need to take multiple line items of a csv file and consolidate them into fewer lines while maintaining the information, as in the tables shown below:
Turning this:
Fave Fruit
Student
Apples
Dave
...
3
votes
1
answer
140
views
Windows: denied access when running as scheduled task
I have this script (C:\Users\soot\Documents\test\test.bat):
@echo off
set LOG=C:\Users\soot\Documents\test\test.log
echo %date% %time% %username% > %LOG%
dir C:\Users\Public\Desktop >> %LOG% ...
0
votes
1
answer
47
views
Set mode for Plymouth script theme
I need customize boot screen, I need switch boot screen in some cases.
I find it have variable
Plymouth.GetMode
it is great, but how can I set this mode by my self? As I understand it started from ...
0
votes
0
answers
76
views
How to automatically execute an interactive script at terminal startup?
I got a pretty simple script for my Raspberry PI 5 which I intent to use primarily as a media center. In pseudocode, it does:
You got 5 seconds to press key
if no key pressed
launch desktop ...
2
votes
1
answer
202
views
Scripting (automating) installation of a WSL distro
I tried to get around the user prompt when installing a distro via wsl --install Ubuntu --name MyUbuntu --user root.
I need this to script the creation of the distro in PowerShell. Sadly, option --...
2
votes
1
answer
366
views
How to stop a Bluetooth speaker from sleeping?
I recently bought a Zebronics JukeBar 3800 Pro soundbar. After about 10 minutes of inactivity (no audio signal from the source), the bar automatically cuts its Bluetooth connection and goes into sleep ...
-3
votes
1
answer
175
views
I need Regex to match numbers like: 1740472449653-61294_left.7z , 1740472440074-16363_found.7z
In short, I need to match the whole number with 7z, gz, and txt.
Here are some examples:
1740329420285-105653_left_hpwn.7z
1740314283864-left_0.7z
1740901975709-found_0.txt
1740314283864-left_0.7z
...
2
votes
1
answer
118
views
Why does terminal output saved with script or watch contain weird characters, and how do I fix it?" [closed]
I use a script command to save the whole session.
But the output in the .txt file is something weird.
I opened it with cat command in the terminal and everything became okay how can I save it in a ....
0
votes
0
answers
201
views
Auto start VLC with a RTSP stream on Raspberry Pi
I am using a Raspberry Pi 3 model v1.2 and I created a script for launching VLC with an RTSP stream. My user login does log automatically at startup and then it should launch VLC with a video stream.
...
1
vote
0
answers
39
views
How to call Share menu item from Apple Script?
I need to call a Share menu item from Apple Script. For example I'd like to share a website to the Notes app.
But I cannot find out which process to activate. I'm able to display the Share menu, but ...
1
vote
1
answer
379
views
How do I update the .NET release number in the registry without a reboot?
I am trying script the installation of software on a Windows 10 LTSB industrial computer. The OS is Windows 10 version 1607.
The machine ships with .NET 4.6.x, but the HMI software requires .NET 4.8.
...