Skip to main content

All Questions

Tagged with
0 votes
0 answers
18 views

Script that checks whether agents running on workstation need idea where to write output [closed]

I want to write a script that checks whether specific software is running on a computer, i manage around 200 computers and I think this is the best way to check whether the necessary security agents ...
Lukas Yčas's user avatar
0 votes
0 answers
30 views

How do I determine which line has too many arguments within the script itself?

When I run the script I get the following errors: ./A_High_Stakes_investigations.sh: line 11: [: too many arguments ./A_High_Stakes_investigations.sh: line 11: [: too many arguments ./...
user2068890's user avatar
0 votes
0 answers
246 views

how to use curl for single sign-on website or page

I've already written a shell script but it's not working. I'm getting an empty response whereas it should first return a token and also it should login then register the API. That's the task which my ...
DevOPs's user avatar
  • 1
2 votes
0 answers
267 views

How can I close a browser window from a bash script?

I would like to open and close windows from a bash script but in my two versions of the code it gets stuck when it opens the first window and does not close the current window and then open the new ...
Bambino 's user avatar
0 votes
0 answers
28 views

How do I install many lines of packages with apt (from a script)? Does '\' work? [duplicate]

A part of my Bash script looks like this: apt install -y alsa-base alsa-utils apt-transport-https build-essential curl ffmpeg geany gcc \ gnome-screenshot gnome-terminal libfuse2 libreoffice-calc ...
John Smith's user avatar
0 votes
1 answer
452 views

mv in script eports "cannot stat"

I'm trying to write a script that adds the last accessed time to the end of the basename. Here is the script: for f in *.doc; do DIR=$(pwd) FILENAME="$f" FILETYPE=${FILENAME##*.} ...
MSS's user avatar
  • 3
1 vote
0 answers
360 views

Creating a script for Windows 11 to gzip some files using 7-zip then move and replace them in another folder

I have the following directory structure: Parent Folder: Project Children of Project: data, rawData Inside of rawData I have: index.html, settings.html, user.html, script.js, style.css and other files....
George Florian's user avatar
1 vote
1 answer
316 views

How to execute three terminal scripts in three new tabs from Applescript?

I have the following apple script top execute three commands in different terminals. Is it possible to (1) combine this script to make it more efficient and (2) open in different terminal tabs instead ...
Brigadeiro's user avatar
1 vote
1 answer
124 views

When using script for WinSCP it opens another folder

I am trying to automate process of downloading files from SFTP server using WinSCP. But I am having issues with the execution of one part of the code. When the connection is established instead ...
Ivan Aksentijevic's user avatar
0 votes
1 answer
217 views

Double-clicking .sh file on KDE fails to run the script

I have a simple .sh script on my Desktop that fixes a minor annoyance with my second display. If I open Konsole, and type ./script.sh, it runs perfectly. But if I double click that .sh file - it fails ...
Adrian's user avatar
  • 1
0 votes
1 answer
202 views

Linux RHEL 7 - Shell Script - Can execute command separately but cannot execute inside a script

I have a simple script use to install a package under cust privilege like this (command changed for security) installScript.sh #!/bin/bash patch -i <package-name> << EOF n EOF the purpose ...
TriNguyen's user avatar
1 vote
1 answer
815 views

curl only works with -u but not with -n

I can't get where is the error This works like a charm: ~$ curl -u '[email protected]:123' imaps://imap.mail.yahoo.com:993 -X 'STATUS INBOX (MESSAGES)' But this don't: ~$ curl -n imaps://imap.mail.yahoo....
user avatar
3 votes
0 answers
1k views

I wan't to configure Windows Powershell Script execution policy precisely

Is it possible to configure the Powershell execution policy to ask the Administrator for authorization each time a Powershell script wants to run? Something like this : Windows Administrator ...
leevmealone's user avatar
1 vote
1 answer
875 views

Can I and how to use `script` in a bash script

This must be the most frustrating research I've ever attempted (so far). So, there is script(1). I've been trying to add it to the start of a bash script I have (I was looking for a way to log every ...
João Ciocca's user avatar
1 vote
1 answer
138 views

stopping ssh process that is sent to background without corrupting stdout

My script aims to extract a text log file using tail -f and a wireshark trace using tshark. But I don't know if these are the best options for my goal. My script has to ssh into a machine (which I ...
Fixenet's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
35