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
1answer
17 views

yes command replacement unix shell scripting

Is there any command like yes command for Sun OS 5.8? I want to give to write a script which I need to press n continuously, which I want to automate. I tried with yes command but it is not there in ...
1
vote
1answer
14 views

Run only specific /etc/network/if-up.d-script for specific interfaces

I would like to run a network script when bringing up a specific interface (e.g. eth0) by invoking ifup eth0 The script should ONLY run when bringing up eth0. My approach was to write the script ...
0
votes
0answers
22 views

Is there a script to reserve but not install/download Windows 10?

I need an easy way to reserve Windows 10 on numerous PCs but without actually upgrading yet.
3
votes
3answers
318 views

How to execute a second condition if the first condition is true in Linux shell scripting

I have an if condition. If that condition is true then one script will be run and after that I need to check another condition. How can I do that using an if statement or something else? For ...
0
votes
0answers
5 views

Multiboot AD Binding Script Trouble (Error 10001)

So let's preface this with what I'm trying to do: I'm using DeployStudio to deploy multi-boot Macs, such as OSX10 and OSX09. My workflow goes like this upon Netbooting into the deployment server ...
0
votes
3answers
43 views

Loop inside EOF - UNIX SCRIPTING

I am writing a script to automatic start up of an application whenever we found error in logs. so #/bin/bash if [ grep -c 'error' logs -eq 0 ] ;then exit else start <<EOF ## start is a ...
-2
votes
1answer
27 views

using find and delete files/folder - with the exception of 1 folder - challenging

i want to use find and delete everything with the exception of one folder if found. e.g. [oracle@SJOAM test]$ ls -l total 4 -rw-r--r--. 1 oracle oinstall 0 Sep 2 02:05 a -rw-r--r--. 1 oracle ...
0
votes
1answer
20 views

Windows batch script to replace a word in a filename

I've got a user that creates multiple exported sets of textures from a visual editing program he uses daily. When these export the filenames come out with a pattern of "texture*" (e.g. texture_43522, ...
1
vote
1answer
27 views

automatic new mac setup (dotfiles, scripts, etc)

I'm looking for a way to automate the setup of a new macbook I'm about to purchase. I've done through quite a few during the years and it always takes forever to get everything up properly. I don't ...
0
votes
1answer
38 views

Is there a way to write a Batch-file which will Return services into their Default mode?

I had already twice a problem with my computer were it just went out of controll and most of the functions were incontrolable, including services like Sound, Brightness, Internet and some other. Later ...
0
votes
0answers
21 views

Automatically open an application when Bluetooth is tuned on

I want an application to execute when my Bluetooth turns on. And also if possible to close the app if Bluetooth turns off.
0
votes
0answers
23 views

Failing script producing extra folder

I've run into an error that I'm not able to understand and fix despite extensive web searches over the past few days. I have a SetupComplete.cmd script under this location ...
0
votes
1answer
25 views

Bash script to create a folder structure

I'm trying to write a Bash script to automate a recurring task, namely the creation of a structure of folders, where some of them should be numbered (To be more specific, this is meant to archive some ...
0
votes
1answer
11 views

Remove all lines after /

I have 2 lists one with this format: http://www.example.com/archives/573 http://www.example.com/1812.html http://example.com/hello-world/ but i want it in this format www.example.com ...
0
votes
0answers
12 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
38 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
21 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
19 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
20 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
18 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
29 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
33 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
33 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
30 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
20 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
25 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
31 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
21 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
21 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
47 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
34 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
22 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
49 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
113 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 ...