Questions tagged [scripting]

This tag is non-specific. Use a specific script tag instead. The following tags are much more specific: [awk] [bash] [bat] [google-apps-script] [javascript] [perl] [php] [python] [ruby] [sh] [powershell]

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

I need to pass given credentials with a powershell command

Scenario: my company has beefed up security and has nerfed our local admin rights. we can only use laps. I have a scripe that can get the LAPS password and put it in a textbox. I have several ...
PCMedicJAX's user avatar
0 votes
0 answers
11 views

Discord Bot to give role depending on the years member has been in server while excluding some members

import discord from discord.ext import commands, tasks from datetime import datetime, timedelta intents = discord.Intents.all() intents.members = True TOKEN = 'Token' GUILD_ID = GUILD_ID ...
MuertoGonzo's user avatar
-1 votes
1 answer
28 views

How to store argument?

The program will store the argument from the get_args() function, in order to use it in the main function. The get_args() function takes the arguments and prints it. I'm having trouble getting the ...
J-Lo's user avatar
  • 39
-1 votes
1 answer
36 views

Why is the file name not displayed? (Bash Shell Script) [closed]

Here are the Code #!/bin/bash # Verzeichnis, das du überprüfen möchtest directory="/volume1/archiv/Test_Count" # Datum von gestern und heute im Format JJJJ-MM-TT yesterday=$(date -d "...
mStyx's user avatar
  • 1
0 votes
0 answers
26 views

What would be the most efficient process/algorithm/workflow of collecting all unique email addresses in a mailbox? [closed]

So, I am writing a PowerShell script. Purpose is to connect to a mail account, read all the email addresses for all emails received and present them as a list of unique email addresses. Obviously, ...
Umit Cakar's user avatar
-1 votes
0 answers
19 views

How does Eclipse internally generate a war file?

I'm wondering when I right click Export to War on my Eclipse project, what does it do on the backend/internally to generate the war? Is it running an ant script or jar cvf? If so, is there a way to &...
BeyondThreeWoods's user avatar
0 votes
1 answer
17 views

About jmeter scripts failing in production environment

Hi my scripts are working fine in sit environment but same scripts are failing in production environment it's was showing 500 internal server error and also pages are not redirecting to next page ...
Mr smart's user avatar
-5 votes
0 answers
22 views

Error in Python Script - Unable to Read File Content Properly [closed]

I am working on a Python script that reads content from a file, performs some processing, and then writes the modified content back to the file. However, I am encountering an error where the file ...
Chikkepalli Mohammad Noor Baba's user avatar
0 votes
0 answers
39 views

Error in powershell activedirectory cmdlet [duplicate]

I've been struggling for a few days with a simple PowerShell script to create users with certain attributes for my company. The goal of the script is for users to always contain certain attributes to ...
unkas's user avatar
  • 11
-2 votes
0 answers
33 views

expect script exiting after downloading a file [closed]

If i try to download a file using expect script the next command is not executed. Expected behaviour :- On execution of shell script while downloading a file it should install it . Resulting Behaviour ...
VIADISHWAR SHARMA's user avatar
0 votes
0 answers
22 views

Multithreaded Script Does not Increment Order Number Properly for a Django Database Entry

I have an images endpoint like this: /api/properties/image/ and I can post an image to the endpoint, and that saves an image link to the Postgres database. This line of code handles the logic: def ...
Olusola Caleb's user avatar
0 votes
0 answers
39 views

Noob Scripting Language Choices [closed]

I have long put off learning how to script, just have not had any practical need for it. I now have a need, to run a set of Linux commands to install and configure VPNs. What would I do this in, Bash? ...
PinkFloydEffect's user avatar
0 votes
0 answers
25 views

executing wsadmin script from (inside) powershell script

How to execute a simple wsadmin script (using wsadmin.bat) from powershell script. Please help me. Example wsadmin action -> AdminControl.invoke(cluster, 'stop') Thanks, Kumar.
Kumar's user avatar
  • 23
-1 votes
0 answers
56 views

Error loading ASGI app. Could not import module "main" [closed]

please check the output screen -- Please anyone help me in executing this project --Error loading ASGI app. Could not import module "main". [I an working on chatbot song recommender system ...
Rakesh's user avatar
  • 1
0 votes
1 answer
45 views

Applescript - set permanent global variable

I'm new to applescript. I want to create a permanent global variable that I can read and modify later from other applescripts. I've created a new applescript in script editor, and entered the ...
heshi's user avatar
  • 1
0 votes
1 answer
51 views

Google Sheets - Form - Script

copy paste script Hi, I am using a script I found on here, I have no idea on scripting so please forgive me if I am being thick. The script copies from google sheets Form Responses 1 to Responses and ...
Matthew Boucher's user avatar
0 votes
1 answer
53 views

Script to copy google form data to new tab

I have no experience with scripts but found the following on here and it almost works for what I want. function onSubmit(e) { const range = e.range; const srcSheet = range.getSheet(); const ...
Matthew Boucher's user avatar
1 vote
1 answer
49 views

How to add conflict resolving scripts in Gitlab CICD so that approvals aren't lost?

In Gitlab, when the target branch updates, in case of no conflicts, Gitlab directly provides a button to rebase. If we rebase using that, then all approvals that are present on the MR is retained. But ...
Sourav Kannantha B's user avatar
0 votes
0 answers
16 views

need converting from V1 to V2 AHK?

I've just converted my V1 script to V2. This script is supposed to execute some code after launch a specific program : ; ================================================================= ; V1 SetTimer ...
yfjuu 6's user avatar
  • 25
-3 votes
0 answers
46 views

Is there a way to get a warning in Powershell if my virtual environment is not activated before installation?

I am working with virtual environments in PowerShell and want to ensure that receive a warning if the virtual environment is not activated. Currently, I sometimes unintentionally run commands outside ...
Chetan Sharma's user avatar
0 votes
0 answers
10 views

Automating Tasks in Response to Facebook Messenger Messages

Hello Stack Overflow community, I'm exploring the possibility of automating certain tasks in response to incoming messages on my Facebook Messenger. Here's an overview of the workflow I have in mind: ...
bishal's user avatar
  • 1
0 votes
0 answers
56 views

Powershell Login Script

I have been struggling to get into the next phrase of testing towards creating a logon script that will map drives if they belong to a Group and removed if they don't. This is on top of a few drives ...
DevOpGPC9X's user avatar
-1 votes
0 answers
42 views

Automate generation of Scripts in PHP from SQL Call

I'm attempting to move certain CMS data elements into my database, but I have a show / hide script on them that I'm struggling to generate from the SQL call. Ideally, for every result that is included,...
Anton Kossmann's user avatar
0 votes
0 answers
31 views

Apk file not found

Cannot find module '\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15) at Module._load (node:...
Angshuman Banerjee's user avatar
0 votes
0 answers
15 views

How to write a Flux task to calculate multiple percentiles in one go?

I am trying to write a Flux scheduled task in InfluxDB to sample monitoring data points over a period of time and obtain percentiles. Here is the code I have so far: from(bucket: "dev-10s") ...
rainge's user avatar
  • 1
0 votes
0 answers
15 views

How to collapse position property in after effects

I'm asking about a function that collapse position property for selected layer in after effects through a java script file. Is there any ways to do that? Thanks in advance I could be able to selected ...
Max Max's user avatar
  • 11
0 votes
0 answers
17 views

Roblox Studio :GetJoinData Issues

So I'm trying to make a script that teleports a user to a "Portal" game, which then teleports that user to the placeId. I tried this but it didn't work, does anyone know how to fix it? ...
kno's user avatar
  • 9
0 votes
2 answers
40 views

Can't send the space key

I'm trying to fix double-typing on my keyboard. For this I want to use an AutoHotkey (2) script like this: SendMode "Input" #SingleInstance *g:: { Send "{g}" Sleep 50 } ...
TryingToLearn's user avatar
0 votes
1 answer
62 views

SAP GUI on other device 'The control could not be found by id.'

I am using anaconda python 3 and SAP GUI 770. I am trying to create an SAP GUI automate program and create an application on other devices. When the program arrive export spreadsheet method it stops ...
macikeci's user avatar
0 votes
0 answers
61 views

Gimp Scheme Script. How can I keep the same file name when exporting the images from Gimp

I want to keep the same file names when the script is exporting each file. Tried many things but nothing worked. When it is exporting the end file name is image00001. I want it to be the same as it is ...
Liam Brun's user avatar
0 votes
0 answers
29 views

While running shell script directly from artifactory is not taking input [duplicate]

I have a shell script where I am executing read -p "Enter realm[comm|ukg]:" REALM to get the input for REALM from the user. It is working fine when i am executing locally. But when i am ...
Keshav Kishor's user avatar
1 vote
4 answers
147 views

Status of the last instance of a parallelized function

I am looking to find a way to run a function in parallel and knowing exactly when all function instances finished. I added a spinner (the instances of the function run a different time, depends on the ...
faceless's user avatar
  • 462
1 vote
1 answer
30 views

Powershell Renaming Camera Pics & Vids with Appended number

I have tried to make a quick script in Powershell to rename camera pics & vids in a folder with a preferred naming convention: (Last write time (yyyyMMdd_HHmmss_) + (file number) + (file extension)...
SPJLee's user avatar
  • 47
-2 votes
0 answers
35 views

Why do I get this error when I try to run a complex script/playbook -name: 'disable repo_gpgcheck'

Could it have something to do with any of these things in my history? yum install xinetd -y yum: yum install python-firewall yum install python-firewall* yum install python311-firewall yum install ...
jspaine's user avatar
0 votes
0 answers
34 views

How to delete a Private key associated with a certificate in LocalMachine store using PowerShell script?

I want to delete private key which is associated to a certificate in LocalMachine\Root using Powershell scripts. I need to first find this certificate from the store by using its friendly name since ...
Sarath G's user avatar
-1 votes
0 answers
41 views

Lua Script for mafia 3 manual transmission. Help me redo the mod

In this mode, each gear is tied to a specific key. SetManualOn = [[ Gear = game.game:GetActivePlayer():GetOwner(); Gear:SetManualGear(true); ]] SetManualOff = [[ Gear = game.game:GetActivePlayer():...
kalkoenn's user avatar
0 votes
1 answer
37 views

How to jump from one bash script to an other and do there some tasks? [duplicate]

My problem is: I have myscript_1.sh and myscript_2.sh. When all tasks in myscript_1.sh are done the value of variable a should be send to myscript_2.sh. This variable a makes there some other ...
Tricia279's user avatar
0 votes
0 answers
17 views

Unable to access data in shared memory created from 1 script to other script

I have two scripts one script is creating a space in shared memory and adding data in that shared memory other script is accessing the data in that memory. But I'm receiving error FileNotFoundError: [...
Sharjil Bin Yousaf's user avatar
0 votes
0 answers
15 views

jsx script in which information from after effects is leaked

I am an intermediate editor, so I've been studying after effects for about three months now, and I've begun downloading present packs, cc, project files, and so on. I also recently downloaded a script,...
Sujilbabu cs's user avatar
-1 votes
2 answers
51 views

search a folder recursively to list the file names which contains the string windows

I have a folder which has multiple type of files (word/excel/pdf/notepad). i want to list the which has the string inside the file. eg: vijay - list the files only if it has a string anywhere inside ...
vijayakumar ponnusamy's user avatar
0 votes
0 answers
38 views

Searching for duplicate files with 'uniq' misbehaviour [duplicate]

I've started to learn bash scripting only a few moths for now in need of personalized scripts to help smoother all tasks managing files on old HDD's and so on. No school, no books, just internet and ...
digerydoo's user avatar
0 votes
1 answer
12 views

Batch script to scan subdirectories and delete files that do NOT contain specific word in content

I am a novice at best with batch scripts so any help would be greatly appreciated. I have pieced together the following but it's not working exactly as needed. I need it to search a folder and its ...
mispentyouth's user avatar
-1 votes
0 answers
51 views

How to use "open with.." using .bat file?

There is a folder I would like to open with Honeyview using command and it's not working. Currently I'm doing this: echo off start "Location of honeyview" "folder location". ...
Divyanshu Bhujbal's user avatar
-2 votes
0 answers
122 views

Trying to make roblox login:password checking script on python

I keep geting this error all the time: An error occurred: Exception type: <class 'requests.exceptions.HTTPError'> Exception message: 404 Client Error: Not Found for url: https://www.roblox.com/...
d1439's user avatar
  • 1
0 votes
0 answers
43 views

dynamic path to script

Im trying to run some scripts (mainly bash and python) in a C++ program via execve, but ive encountered a compatibility / portability issue. Say i have python script "script.py" as an ...
Bruno's user avatar
  • 103
0 votes
1 answer
38 views

How to check and fix dependencies errors?

i've been facing several problems trying to creat a react application. Today i wrote the npx create-react-app and a problem occured; i discovered that i should have installed node.js before doing so, ...
Gianni's user avatar
  • 1
0 votes
0 answers
27 views

setenv usage in csh shell - unexpected results

I have a big csh file, where I use set env command, to override the variable value. setenv THE_VAR TV_012_3_45 echo the number: $THE_VAR However, in the output file, it gets echo the number: ...
A S's user avatar
  • 1
0 votes
1 answer
35 views

Python convertion .xmcd to .mcdx of multiple files in nested folders using API for built-in MathCAD Prime Converter

I have enormous number of .xmcd files needed to be converted to .mcdx. Inside most of them there are links to each other. Considering nested structure of my files and the fact that you can not choose ...
KuZZneTZ's user avatar
0 votes
2 answers
92 views

How to retain the value of 'me' when passing through another applescript

I have 2 applescripts... one called 'App' and one called 'Shell'. I want to be able to reference the name of the 'App' script within the 'Shell' script. What I've found so far is if the 'Shell' script ...
Spaghetti Sam's user avatar
1 vote
1 answer
108 views

Send commands via serial connection using plink from bash script and exit

I'm writing a bash script on a Windows machine that enters a PetaLinux machine over a serial connection, performs some commands, and should exit back to the bash script to continue performing commands....
GibberGabber's user avatar

1
2 3 4 5
355