An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

How to trigger autohotkey script with a download

I want to trigger my script every time my Gpodder program downloads an MP3.
-2
votes
1answer
36 views

bash: Loop over lines of a file

Here is my script: #! /bin/sh for line in $(cat list); do echo "[$line]: Getting my workers list.."; var=$line-"worker1"; echo "$var" >> "hostlistworkers.txt" ...
1
vote
1answer
18 views

How to remove pattern containing blank space and special characters in sed

How to remove following words from a text file: DEFAULT ('') DEFAULT ((0)) DEFAULT (((1)/(1))/(1900)) DEFAULT (getdate()) I am not able to delete above four pattens using sed.
0
votes
0answers
19 views

Undo command Linux “rm” [duplicate]

Please, I have used rm * in a script shell, it deleted all my files? (a typo) Is there a solution to recover these files ?
2
votes
1answer
18 views

Execute blocking script with admin rights in Windows before and after standby

I would like to run a script in Windows right before standby/sleep mode with admin rights and blocking, i.e., the system should not go to sleep until the script has successfully terminated. ...
1
vote
0answers
18 views

Outlook 2010 - setting a rule for an incoming mail (read or unread)

I need a little advice on Outlook 2010. There is this situation: - one webmail account which is used by a several people (using web browser or phone to access it) - one computer with MS Outlook 2010 ...
1
vote
2answers
38 views

How to get latest version string from a collection of folder where folder name is version string

for folder structure like below RootFolder | |--1.2.3 |--1.2.4 |--2.1.3 ... ... ... Under RootFolder, there are a collection of folders, and they all named with ...
1
vote
1answer
17 views

Execute command to remote server via SSH after exporting variable

I have two machines, A and B. I need to execute a script which is located in B by SSHing there from A. In order for the script to run I also need to export a variable. If I just SSH and export the ...
0
votes
0answers
13 views

Execute multiple commands in init.d script on boot

I found a guide for fixing permissions on an EXT4 filesystem on a MicroSD card. The AOSP/CyanogenMod ROMs I've tried will mount this, but the permissions are messed up. The guide used to work fine on ...
2
votes
2answers
30 views

Script(?) to copy website text and automatically email it daily

Is there a way to automatically copy text from a website and email it to me daily? The scenario is this: my son’s teachers post his daily homework on a website. Each class has its own page. Rather ...
0
votes
0answers
14 views

CentOs How to run a command based on performance drop?

centos script automation I'm looking for a way to execute a command (in my case something that drops all connections that are mot Italians) when my server's performance drops and it starts lagging. I ...
1
vote
1answer
29 views

Extracting a list of values from JSON file to Excel or a text file

I want to extract usernames from a JSON data file. [{"username": "Cobra", "user_id": 146231486, "event_type": 2, "title": null, "class_id": 4211, "war_state" : null, "superpower_expire_date": ...
-2
votes
0answers
16 views

Copy Folder to Backup Location and Rename according to date variable

I'm looking for a script to copy a Folder from One location another, but then rename the copied folder to 'Backup 'CurrentDate''. At the moment I'm trying PowerShell, I'm just having trouble with the ...
0
votes
0answers
15 views

CentOs How to run a command on performance drop

I'm looking for a way to execute a command (in my case something that drops all connections that are mot Italians) when my server's performance drops and it starts lagging. I looked at inotifywait ...
0
votes
0answers
28 views

IE Tab 2 for Firefox Script locks up the page

In Microsoft CRM, whenever my client clicks on a link this error shows up after about 30 seconds of the new tab being locked up. We tried uninstalling and reinstalling the extension, made sure Firefox ...
-1
votes
1answer
5 views

I have Samba 3.x running on a server and i want to change passwords

So I have a Samba 3.x (don't know exactly) running on a server and what i want is to write a script or whatever, whichcan handle a file and change the user's password to a new one (which are in the ...
1
vote
1answer
19 views

Powershell script to be called by serveral servers to copy log files to remote location

We have several servers that save log files locally and I'm trying to automate logging to a single network location with a name of the parent folder where log files are stored and date modified time ...
-1
votes
0answers
12 views

Storing data to survive clearing broswer history

Been playing with tampermonkey/greasemonkey lately and I came to idea to console log every password input value. This gave me an idea for a possible vulnerability. Ofcourse wherever I store this data ...
0
votes
0answers
21 views

shell script works normally, but not as a vagrant provisioning script.

I am trying to have vagrant run a script from within the provisioning script. pip install --upgrade pip sudo pip install virtualenvwrapper source /usr/local/bin/virtualenvwrapper.sh mkvirtualenv -r ...
0
votes
1answer
32 views

How to run script menu after new terminal window exits

I have a script that asks the user for input for options. When selecting the option I have it so it runs a new terminal and executes another script for the specified option. I still want the menu ...
1
vote
1answer
29 views

How can I automatically segment a mp4 video based on a list of frames

I have a 7 hour long h.264 video made up of 1600 shorter videos and I have a csv file with a list of frames at which I need the longer video to be cut at. Is there any way that I can automatically ...
0
votes
0answers
18 views

What artifacts to acquire when looking for IoC? [migrated]

I want to hunt for the Indicators of Compromise (IoC) in a potentially infected Windows PC. I am writing a batch script that would record the information needed for analysis. It includes the ...
0
votes
1answer
8 views

Export and Import select box options

I have to fill out a web form choosing options from a select box for each question.. There 20 questions.. I Would like to answer one time and then save my choices because i have to do this multiple ...
0
votes
2answers
33 views

Whitespace treatment in OS X vs Linux in Bash

I am trying to run a very simple script on a few different platforms: #!/bin/bash STRING="this is a test" echo $STRING , and I cannot tell why on Mavericks and Yosemite I get the output: ...
0
votes
0answers
13 views

Combine custom run command and macro in Notepad++ 6.8

Following very useful guidance by Friedrich Huebler on integrating Stata with Notepad++ I've added a set of run commands that are assigned to: F9 - run selected line F10 - run the whole file I in ...
0
votes
0answers
8 views

Batch save all photos in Facebook messages [migrated]

How can I batch save all photos from all Facebook messages? There's a few hundred or a few thousand pictures in total from different conversations, so these solutions are NOT solutions I am looking ...
0
votes
0answers
13 views

How can I move files(based on time) to some other location in Windows Server 2008 R2

Can one any help me with the script in moving the files to another location if my disk space is used more than 90%. For example: I have a database running in my E:/ drive and it is around 350 GB ...
0
votes
1answer
28 views

A script that will make a Mac join specific WiFi network and enable remote login/management

I have physical access to a Mac Pro, but it has no monitor and I want to access it remotely. I don't know what state the Mac was left in (network connection, sharing prefs, etc). I am pretty sure I ...
0
votes
1answer
20 views

(Windows 8.1) Launch a specific software if IP address is 192.168.49.*

I know there's is a way to launch an executable when specific condition are met, but i'm not familiar with programming. Is there a way to launch a software, in my case Skype For Business if my local ...
0
votes
1answer
20 views

Delete first line from a file and Update

Here is the file i work on "list": g-8.xx.yyy.zzzz g-9.xx.yyy.zzzz g-10.xx.yyy.zzzz g-11.xx.yyy.zzzz g-12.xx.yyy.zzzz Here is the script i try to complete ( i'd like to get the first line and ...
0
votes
1answer
46 views

Windows batch file deletes and recopies files WAY too fast - should take 15+ seconds, takes < 1 second. Why?

I wrote a script that checks to see if a folder exists, and if so, empties it. it then waits 5 seconds, then proceeds to recopy new (or maybe the same) files back into the folder. When the folders ...
0
votes
1answer
32 views

How to create batch script to keep rerunning command

I just downloaded Win 10 and I'm having activation issues. I hear if I keep rerunning this - "slmgr.vbs /ato" command it will eventually activate. Can someone give me a quick little script to have ...
0
votes
0answers
20 views

Serial connection over PuTTY and -m?

I am using a com port to connect to a device. I would like to run a script that does 3 commands for me. Currently I'm trying to do "start putty.exe -load temp1 -m script.txt" All of that is in the ...
0
votes
0answers
36 views

Batch copy files from client list to my server

Could you help me to create batch file to get information from client to server. I have 10 clients such as 1. CU01 2. CU02 3. CU03 . . . 10.CU10 I would like to copy file from 10 clients on ...
0
votes
3answers
89 views

Is there a way to run Javascript without a browser, like a shell or batch script?

Is there a way one could run Javascript the way Python, Bash, Windows Batch or other scripting languages are run? File access and other library functions would be nice but are not required - I'm just ...
0
votes
0answers
19 views

How to get file path of selected file in Finder into clipboard? Issue with Jumpcut

I used to be able to get the file path from any selected file in Finder by hitting a keyboard shortcut. I'm running an automated script that takes Files and Folders in Finder and uses the built-in ...
0
votes
2answers
47 views

Continuously check status of OpenVPN connection

I'm trying to check and display the status (connected/not connected) and the server's hostname/cn of an OpenVPN connection that should connect at every boot. Now I've found out that in ...
0
votes
0answers
43 views

PowerShell script to monitor files in multiple folders

Can anyone help me with the PowerShell script below to monitor files in multiple folders (like D:\test1 and D:\test2 and D:\Test3)? SET FOLDER TO WATCH + FILES TO WATCH + SUBFOLDERS YES/NO $watcher = ...
0
votes
2answers
25 views

Command host with awk

Please, why "echo" instruction: iphost="$(ssh root@$machine -x "host $machine | awk '/has address/ { print $4 }'")" echo $iphost display: g-3.xx.yyy.zz has address 172.16.65.35 instead of: ...
0
votes
2answers
53 views

How can i get the hostname of the machine i work on?

Please, how can i get the hostname (fully qualified domain name) of the machine i work on ? Here is my script: #! /bin/sh hostname=$(host $ipaddr | awk '{print substr($NF,1,length($NF)-1)}') ...
0
votes
1answer
18 views

Script Shell Storing ip address in a table

Here is my file: test.txt 172.16.65.29 172.16.65.30 Please, how can i modify this script to store all ip address in test.txt in a table. for ip in ${iparr[@]} do echo $ip done Thank you so much ...
-3
votes
1answer
27 views

How to get started with shell scripting? [closed]

My job profile requires a certain level of shell scripting and I have no idea on how would i get started with it Please suggest me with the easy ways to getting started with shell scripting. Thank ...
0
votes
0answers
24 views

setup vim script to execute python file

I searched SO extensively and I can't get to fix this: I'm trying to code a pathogen friendly python plugin in windows. The setup would be: In \vimfiles\bundle\plugin I have a myscript.vim with: ...
2
votes
0answers
38 views

Logon and Logoff scripts not running

I have set SQL queries to run on logon and logoff using group policy editor. But sometimes scripts do not run. logon.bat @echo off echo INSERT INTO UPTIME(INTIME) VALUES(NOW()); > abc.sql mysql ...
0
votes
1answer
33 views

How to upload all the files from local to host using Curl?

i have written a shell script to upload all files with different names in the specific path from local to host, but i have facing some issue and the files are not getting uploaded #!/bin/sh for file ...
1
vote
1answer
35 views

file names starting with a string in the format of *.txt give error in FOR

I have a piece in my windows batch script. It runs fine as : for /f %%C in ('Find /V /C "" ^< %SFTP_INDIR%\Location.20150528060210.txt') do set count=%%C But when run instead of a hardcoded ...
0
votes
2answers
37 views

How can I break a batch script that is executing a ping without terminating the whole script?

I have a batch script that continuously pings an address and I want a way to cancel the pinging but not terminate the whole script (alternative to ctrl^C).
0
votes
1answer
42 views

PowerShell - Quasi equivalent strings are infact not equivalent?

I have a string which I'm passing into my script as an argument. For the purpose of displaying the code on here however, I have specified these manually in the code. These variables are: ...
1
vote
2answers
32 views

Powershell: Dir /s - Remove Repeated Folders

Situation: In Powershell, I'm using: $folders = dir -s C:\Users\Name\Downloads\*.ttf | Select Directory foreach ($folder in $folders) { echo $folder } To display folders whose contents ...
0
votes
1answer
48 views

Rotate all video in a folder with ffmpeg?

I have a lot of videos which are recorder 90 • rotated so I want to rotate all videos 90 degrees clockwise direction. If this possible? I used for loop but there is some mistake because of spaces ...