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
16 views

script to process calendar dates on a webpage

I'm just wondering if anyone knows of a publicly available script which would do the following: 1) identify ("parse out") calendar dates on a webpage (or simply in any text document, whether html or ...
1
vote
0answers
114 views

Automator app won't open after being copied to another computer - OSX

I created an app in Automator. The app runs fine on the computer with which I created it, but when I copy it to another computer I get: The application “AppX” can’t be opened. If I open it in ...
1
vote
1answer
33 views

Windows Batch Call Command not passing variable value?

I'm getting strange output when running my script: @echo off setlocal pushd "%~dp0" set Mode=batch if "%Mode%"=="batch" call :BATCH echo %Loc% pause>nul exit :BATCH set "psCommand="(new-object -...
0
votes
0answers
72 views

Package conflict when installing Zend Server on RHEL using install script

I am trying to install Zend Server on a RHEL machine using install script stated on this steps http://files.zend.com/help/Zend-Server-8/zend-server.htm#rpm_installing_zend_server.htm When I run ./...
1
vote
2answers
77 views

Is it possible to start a command on many nodes at the same time?

Is it possible to start a command on 10 nodes at the same time? Here is a portion of my script: #! /bin/sh nb_lignes=`wc -l $1 | cut -d " " -f1` echo "$nb_lignes machines" for i in $(seq $...
2
votes
1answer
50 views

I want to execute a file every time a file changes

I have a python script that automatically ends after X amount of runs, at the start of the program it sets the value of restart.txt to 0 using this code. restart = open("restart.txt", "w") restart....
1
vote
1answer
125 views

Batch script to ping an ip range?

I'm trying to write a batch script (psexec is also an option) to scan a range of IPs 192.168.1.1-255 and as output, would like a csv file, something like this: column A column B ...
0
votes
1answer
44 views

How to do a variable time scale?

I have a video where I would like to change the time scale of a video based on ratios read in from a file. I have figured out that to double the speed for an entire video I could use the setpts ...
1
vote
1answer
42 views

Order of execution of instructions in a script shell

Here is a portion of my script test.sh: #!/bin/bash tar -cf $name.tar $name && pbzip2 $name.tar echo "[$1: Waiting..] Please, i have a question. The execution of the second instruction "...
0
votes
0answers
44 views

OpenVPN restart script not working

The following script was posted on the openwrt forum https://forum.openwrt.org/viewtopic.php?id=31853 as a way of restarting OpenVPN. The problem we're having is the ping is not going through when ...
0
votes
0answers
113 views

How do I capture multiple and specific processes performance user logman/perfmon?

Currently I have created a logman counter to monitor an entire system using the following command: logman create counter genericLogging -o C:\PerfLogging\data.blg -f bincirc -c "\LogicalDisk(*)\% ...
0
votes
2answers
299 views

Start a program like google chrome always on top without external software

So as the topic says, I want to start my chrome and keep the window always on top, would that be possible with a script or something? I googled a bit about that topic and if the question is answered, ...
1
vote
0answers
207 views

How do I script the creation of Disposable Virtual Machines with vmware workstation?

I am Making a disposable (use for one task/website then delete) Virtual Machine (VM) it's a slow process to do it in VMware workstation. I want to automate it so it is like the quick ~5 second DispVM ...
1
vote
0answers
52 views

Script to uninstall a folder from within C:\ProgramData\folder (GUID)

I'm hoping to find a script to uninstall a folder from within the ProgramData folder ie.. C:\ProgramData\folder (GUID). As you can see the folder also has a GUID string this is what I have: rmdir /s /...
1
vote
1answer
30 views

Script Shell: Display date of two minutes (period)

I have the following script: #!/bin/sh while :; do sleep 1 date done How can I change this script display the time only of two minutes (period) and exit? Is that possible?
0
votes
1answer
246 views

How to get the Default browser name in mac osX using a bash script

I am trying to write a script that finds If the default browser is chrome. In which file can I find store this information?
1
vote
3answers
39 views

Script Shell: Delete a line from a file

Here is my file "test.txt": 172.16.68.4 172.16.68.3 Here is my script: #!/bin/sh ip="172.16.68.4" sed '/$ip/d' $1 Please, i'd like to delete a line from test file but it didn't work for me. ...
0
votes
1answer
98 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 ...
2
votes
1answer
807 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 (...
3
votes
3answers
780 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 example,...
0
votes
0answers
28 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
2answers
231 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
82 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
49 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
272 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
111 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
36 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 D:\RemoteInstall\Images\...
1
vote
1answer
310 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
19 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 www.example....
0
votes
1answer
52 views

How to trigger autohotkey script with a download

I want to trigger my script every time my Gpodder program downloads an MP3.
1
vote
1answer
338 views

PowerShell: Automatic Join-Domain with Secure String - 'Encryption Key' Usage

I work in an enterprise environment, where I manage a lab of 75 computers. I use Ghost to image and then I walk the computers afterwards to change the PC names and SIDs. I am implementing a script ...
-2
votes
1answer
52 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" var=$line-"...
1
vote
1answer
28 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
38 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
1answer
80 views

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 ...
3
votes
2answers
114 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
287 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
857 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 ...
1
vote
1answer
18 views

Windows 2008 Runlevel Scripts on Shutdown. Is it possible?

When Windows 2008 gets shutdown or rebooted [not via a script] by someone, is there a way to have a pre-processing script executed similar to UNIX runlevel scripts?
2
votes
2answers
256 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
18 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
271 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": ...
0
votes
0answers
19 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 ...
-1
votes
1answer
10 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
237 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 ...
0
votes
0answers
91 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
151 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
72 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 ...