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)

-1
votes
1answer
83 views

Check folder periodically for changes and run script on OS X? [duplicate]

I have a folder of files. I would like for the system to check this folder every X minutes to see if any of the files have changed and, if so, to then run a script that I've written in python.
3
votes
4answers
382 views

How to automatically hide files put in a specific folder?

How should I go about automatically hiding files that I paste/drop in a folder, for example C:\test\ ? I thought about creating a batch file or using a program which runs continuously on the desktop ...
1
vote
1answer
944 views

Copying data from multiple word docs into one excel sheet

I have about 4000 doc and docx files which contain a table. I've managed to import these into one excel sheet using the following script: Sub Macro1() Dim xl As Object Set xl = ...
1
vote
0answers
145 views

“Script” command in Bash on Mac OSX

quick question regarding the "script" command in Bash on a Mac OSX 10.8.4 system. In any other bash environment on Fedora, CentOS, etc; when I use the script command it just begins recording with no ...
1
vote
1answer
393 views

How do I create a one time use startup script on Linux - Centos 6.x

I want to set a script that will only run one time on a Centos 6.x box and then never run again, since it's going to set some system options based on hardware and then it's all set.
0
votes
0answers
98 views

win7 Shutdown script does not wait for vmware to shutdown

I want to shut down a virtual machine guest operating system before windows 7 host is shut down when pressing the shutdown button. I've tried the solution suggested here ...
0
votes
0answers
199 views

Pass actual credentials to a script from Scheduled task

What I would do is using Putty on Windows to connect to a SAN switch and get results from a command. I use Powershell as scripting language and it could be done easily but i don't want to save the ...
3
votes
2answers
301 views

Change the OSX system language in a script

Manually I just go into the system preferences, change the language ordering, and restart my app so it starts up in the default system language. Then I can run automated tests with the app running in ...
1
vote
1answer
2k views

executing powershell scripts via command prompt - win7

I'm having trouble running a powershell script automatically. When every I call or Execute the script, I get a security prompt requesting I enter "R" to run. I have already set the execution policy to ...
1
vote
1answer
99 views

Having trouble with what should be a simple bash script

I'm having a problem with one segment of the following script. Each echo->grep->was written in to help me figure out where the script was failing to perform as I expect it to. It is designed to be ...
0
votes
0answers
26 views

Insert splash screen into multiple videos?

I've got around 100 videos that I've generated a unique splash screen for based on some metadata and the file name. The files are named "videoname.avi" and "videoname.png" and are in the same folder, ...
1
vote
0answers
190 views

OpenOffice Basic Change BackGround Color for Range Based on Text in Column 0

I'm trying to test each cell in column 0 "A" to see if it has specific text "Budget" "Living" "Savings" and if it does then change the row background color to a specific color for each. I am able to ...
0
votes
0answers
24 views

Windows: Scriptable “zoom in” possible?

I am wanting to automate "zooming in" to a specific area on the screen. For instance, there is a windows application that can not be resized or made full screen. I would like to "zoom in" to this ...
0
votes
3answers
122 views

Converting PDF to PDF/A? (for embedding fonts)

How do I convert PDF to PDF/A? - No preference of operating system to run the script or program. (this is for printing directly on my printer; however the printer requires print formats with fonts ...
1
vote
1answer
943 views

Join to Domain Script - Windows 7

I'm looking for a way to diss-join a machine from a domain and join a machine to a domain via scripts. I searched online and have found the following script that should join a machine to a domain but ...
0
votes
1answer
95 views

Ubuntu - Disk Duplication - Automation

I know very little when it comes to linux but I'm looking to construct a cheap disk duplicator out of an old server that we have. The server is currently running Ubuntu 12.04LTS and has 8 hot ...
0
votes
1answer
230 views

Changing the sequence numbers of files in Linux

Is it possible to write a script to rename a series of file as below: sol-temp_0010.png to sol-temp_1.png sol-temp_0015.png to sol-temp_2.png sol-temp_0020.png to sol-temp_3.png etc.?
1
vote
1answer
79 views

How to get user defined language in Notepad++ to follow master formatting?

I have successfully created a user defined language file in Notepad++ and this file has formatting, highlighting, etc. What I am hoping to do however is tie these into the main theme is. But it looks ...
0
votes
1answer
432 views

sudo: source: command not found when executing tcl as sudo

I have a test.tcl (has all permissions) which contains the following- #!/usr/bin/tclsh puts "hello, world" This is how I'm executing my tcl script- sudo source /opt/test.tcl I got the ...
0
votes
1answer
54 views

Multiple commands using a .command script at launch

I'm trying to figure out why this command script isn't working. killall Google\ Chrome; open /Application/Google\ Chrome.app -args --disable-restore-session-state . I am trying to kill any ...
0
votes
1answer
1k views

Batch Scripting - How to delete a subfolder (files/folders) over several directories

I need a batch file to traverse a directory structure that looks like this C:\CruiseControl\ProjectArtifacts\ProjectName1\Logs C:\CruiseControl\ProjectArtifacts\ProjectName1\Src ...
0
votes
1answer
235 views

Cron fails the script command

I am trying to capture a picture with my webcam and I need to log the output to check for errors, but cron is failing at this. I am able to do this from terminal, but cron running it doesn't work. ...
3
votes
1answer
823 views

Is there a script to add port forwarding rule in home router?

TL;DR: I am looking for a script or a cron job, which will periodically run on a linux host (fedora on raspberry pi) which will check if a port forwarding rule still exists in the router and add it if ...
0
votes
1answer
93 views

Need a script to delete all temp files beginning with ~$

A recent scan on our file server for temp files with ~$ appended to the start of the name produced nearly 1,000 results. These files' "Last Modified" dates go back to 2003 (so they are generally all ...
0
votes
1answer
61 views

What would an update mechanism look like in bash

I have to update a script compilation from time to time but I haven't any idea how to start a version check script in bash. I've got a version file with 3 vars: version=0, subversion=0 and ...
0
votes
2answers
51 views

How can I run a script locally from a remote server such as www.mysite.com/script.sh?

How can I run a script locally from a remote server such as www.mysite.com/script.sh I tried: . www.mysite.com/script.sh and it does not work.
1
vote
3answers
2k views

How to auto commit to my git repository using cron?

I look into a lot of answers about this subject, but something is wrong here, let me explain. I create this script, to make my cron cleaner :) #!/bin/bash cd ...
1
vote
2answers
188 views

Batch file to move files to directories in round-robin fashion

I am trying to have a batch file that moves ".doc" files to a folder. The trick is that i have three user folders named Mark, Luke and John that I want these files to go to. Example, aa.doc is in a ...
0
votes
3answers
603 views

Search .csv from within a batch file

I am looking to create a batch file that will search a .csv for a specific number, and then use the 2nd value in the csv as the input back into the batch file. Example: csv name= IP.csv .csv ...
3
votes
1answer
3k views

How can I avoid the “grep: Argument list too long” error?

I'm using Mac 10.7.5 and on a bash shell. I'm trying to find instances of a string in a group of files but keep getting this error Daves-MacBook-Pro:folder davea$ find . -name "*" | xargs grep ...
3
votes
1answer
66 views

Automatic VM Instance Install

I want to simplify setting up training computers for our trainers inhouse. The situation is we have an enterprise based software program (which runs with .net + SQL Server + IIS) and when our trainers ...
0
votes
0answers
37 views

Creating scripts in Outlook 2007

I have a shared mailbox and every person who has access has a category. Every mail received has to be read within three hours of inbox arrival. For this I have created a Field that counts down from ...
-2
votes
1answer
87 views

how to write a script that opens cmd and runs a command? [closed]

I would like to write a script that opens the cmd and runs some command that I wrote. How can I do it? and when I save the file - the ending is .txt? i'm not familiar with it so any help would be ...
2
votes
1answer
101 views

Clean up filenames using data from a text file

I need to clean up a bunch of folder file names. Possibly even the file titles as well. I was currently using this Perl script to do so but I ran into some problems. If the file name already has ...
1
vote
0answers
90 views

Add language to Windows XP automatically

I want to automate a process due to the number of computers I have. The problem is that I need to add languages to a large number of XP systems so I can type using French or Arabic keyboards without ...
2
votes
3answers
247 views

Bash script to print files that have a certain line length

I'm new to this… I need a script that receives a directory as a parameter and prints the names of files that have between 15 and 50 lines, but I don't know how use the wc output in an if-sentence: ...
-1
votes
0answers
15 views

Good general search term to find out how to do things in an automated way? [closed]

Often I need to do things, which are simple for a single user, doing it once, using keyboard and mouse. However, I have to automate it, to do it with a script, programatically. Example questions ...
0
votes
0answers
51 views

Windows script to log network information when network goes down

My mom's internet goes down intermittently while she's browsing the web. A little yellow caution triangle pops in her task bar and Google Chrome says "website not available." I would like to capture ...
0
votes
1answer
110 views

How to find the programming done for cells / worksheets in Excel, to be able to set precision?

I have a drawing in SolidEdge software, where the dimensions of the drawing are exported to Microsoft Excel. It has a column where various dimensions of the drawing are given in various forms in every ...
2
votes
2answers
608 views

Powershell Script to Find & Highlight Specific Files Based on Creation Date

I am trying to write a Powershell Script that checks a certain folder for .zip files. The .zip files contain information from certain backups. These .zip files lie within a folder tree for different ...
0
votes
2answers
4k views

How to install Nagios + Centreon in centOS 6?

I already tried many tutorials over the internet trying to setup nagios and centreon to work together in centOS 6.4. What I want is to run a script and it does everything, I should go to centreon web ...
0
votes
1answer
234 views

How can I both use and modify the history inside a bash script?

So I have the following bash script aliased as "fortunes": #!/bin/bash -i REPLY=; history -w /tmp/fortunes_history_backup; # save history ... history -c; # and clear it. while [ ! \( "$REPLY" = "q" ...
1
vote
1answer
185 views

How to start/stop motion on screen lock/unlock?

I installed motion in Fedora 17, and I want it to start when I lock the screen with control + alt + l, and stop when I unlock it. I found this to run/stop a script on screen lock: ...
2
votes
2answers
546 views

How do I obtain Windows command line report of total committed memory (commit charge)?

I want to have a small batch script which runs on a server and every hour logs memory statistics. I already have the script log the process-specific info I want via other tools, but I want to know of ...
0
votes
0answers
268 views

How to unwrap 80 character text

Many text filess around Internet are word split before line reaches 80th character. I understand it is desirable by those using 80 character terminals. However I like sending longer articles to my ...
0
votes
1answer
497 views

Automate creation of taskbar shortcuts

I have Windows 8 computers on a domain. I want to create a Group Policy Object to create taskbar shortcuts for users as they move onto different machines. I have created a batch file that will copy ...
-1
votes
1answer
119 views

Replacing a string in all config files across machines with a script [duplicate]

I have the below task and I am wondering what would be the best and quick way to do this. I am thinking scripting rather than a C# app but struggling with scripting in DOS. I wanted to use powershell ...
1
vote
1answer
59 views

SSH parameter help on Ubuntu Server

I have a variable setup like this: SSH_EXEC="ssh -X -o ControlPath=~/.ssh/master-$$ -o ControlPersist=60" The parameter in question is the -X, because if I then call this command within my local ...
2
votes
2answers
121 views

Is there a script that can retrieve the current Windows 7 security updates? [duplicate]

I need a way to download the windows 7 security updates for multiple computers that do not have Internet connections, so running the windows update is out. What I would like is a way that I can ...
0
votes
0answers
156 views

Running a Command in xterm Without the Window Closing [duplicate]

I am trying to figure out how to open an xterm and execute a command in the new window without the window closing. Ideally, I would like to be able to open an xterm, switch users, and source a .cshrc ...