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
2answers
94 views

How can I get a script to run constantly on Mac OS X?

I would like to do this: When the application VLC is open and I press the space bar, it pauses the video and an itunes starts to play. Then spacebar again would resume the workout video and pause my ...
0
votes
0answers
142 views

How to run adb command through a script

As the title says, I'm trying to find how to run adb commands through a pre-written script (such as how .bat and .vbs files work) so I can make a semi automatic program to pull some files from my ...
0
votes
0answers
11 views

Accessing a context menu through script in OSX

I want to access a context menu item from a script to integrate with a workflow in OSX. Specifically, I want to access the "Share dropbox link" programmatically to obtain the public url of a file. Any ...
0
votes
1answer
143 views

Postgresql starup script for second instance?

I need to run my second postgresql instance when linux boots. I added this command (like in postgresql documentation) in rc.local: /usr/lib/postgresql/9.1/bin/pg_ctl start -l logfile -D ...
0
votes
0answers
320 views

How to add a startup/shutdown script to the GPO from the command line

I need to add startup and shutdown scripts from a CLI through a Powershell/Python/CMD script. Ideally, I would like to have the same functionality as gpedit.msc, but it is important that the tasks of ...
1
vote
1answer
118 views

Is there a script "to log remote users off and after log them off to delete their profiles?

I found 6 simple scripts (.bat and .vbs) for remote pcs (Win XP and 7) to Clean Profile properly and faultlessly: Script: sending Ping to check Remote PC On or Off (.bat) Script: checking who logged ...
1
vote
0answers
60 views

Script to fire fn + f6 every time computer starts?

My laptop's touchpad has malfunctioned. Every time I start the computer, I have to manually press the keys fn+f6 to shut it off. How can I create a script which does this automatically on every start? ...
0
votes
1answer
953 views

Updating Chrubuntu 14.04 kernel on Acer C7 (currently 3.4.0)

There was another, similar question on this here, but it's for old ubuntu versions, and the script no longer works. While installing, the script works fine until: + vbutil_kernel --verify /dev/sda6 ...
0
votes
0answers
28 views

Script to email administrator when a duplicate IP is found on the network

I know this is a bit of a custom requirement but I was hoping someone currently has (or can put together) a script that checks for duplicate IP addresses on a network (something that might occur when ...
1
vote
1answer
444 views

script to delete duplicate files using md5

I want to write a script to find duplicate files in a given directory and delete the copy depending on the hashcode. When I run the script it deletes the copy and the original file. Here's my code: ...
0
votes
1answer
80 views

Solaris: a simple script does not work, single command does

In my Solaris Illumos, I run a simple script: update_drv -a -i '[myhardware]' [driver] svcadm disable stmf svccfg import /mypath/myconfig svcadm enable stmf It does not work and gives me no ...
0
votes
1answer
277 views

Script to enable/disable IPv4 on a specific network adapter Win 7

For reasons I don't wish to get in to at the moment I need to occasionally disable Internet Protocol Version 4 (IPv4) on my wireless card, then enable it some time later. Currently I go into the ...
2
votes
0answers
35 views

Testing RDP connections

Given hostname (+ portnumber) + username + password, how do I get a yes/no answer to the question: Can I connect to host with username+password? from the commandline or a script? Is this possible? ...
0
votes
1answer
87 views

Popup notification for microhone mute

I need to create a script or a batch file to show a notification-like balloon (or a message or icon) when my microphone is muted and unmuted. I understand this can be achieved by task scheduled but I ...
1
vote
1answer
53 views

extract file content to mutliple files base on match pattern

I am new to unix. I would like to process this file. PP_NAME_1 jprovider|J Driver Provider|${J_DRIVER_PATH}/jcc;${J_DRIVER_PATH}/jcc_license_cu|${J_DRIVER_NATIVEPATH}|com.jcc.Connection ...
0
votes
1answer
130 views

Firefox with Firebug Sometimes Hangs in JSON Calls

Please see this: http://gisdev.clemson.edu/fireflies/ On my Windows 7 machine with Firefox 29 if I click on the year 2013 radio button (toward top right) then Firefox sometimes hangs and gives a ...
0
votes
1answer
64 views

How to use find to fill in variable in Shell script

I am making simple Shell script form some boring-ever-repeating job. Script changes directory correctly, and now I want to run other scripts based on argument I typed when running script. Other ...
2
votes
1answer
206 views

Powershell LastWriteTime is incorrect

I am running the following script to create directories based on the first 9 characters in the filenames in the directory and then moving te files into these directories based on their filenames. dir ...
0
votes
3answers
1k views

How to display “Please Wait” while GPO startup script is running?

I have a GPO that calls a batch file as a startup script (Computer Configuration -> Policies -> Windows Settings -> Scripts -> Startup) which takes a moment to finish what it's supposed to ...
0
votes
1answer
109 views

7-zip -v switch will fail to use cpu properly?

I have been using this script for years, back from when above 2 cores was a challenge in 7z and I had just offered myself a shiny i7: "C:\Program Files\7-Zip\7z.exe" u -m5=lzma2 -mmt=8 %1.7z %1 ...
1
vote
1answer
126 views

Terminal command to include currently logged on user

I am trying to write a script that makes our network (active directory) users local administrator on their macs. I have the script that will do this: dseditgroup -o edit -n /Local/Default -a ...
1
vote
1answer
74 views

ScriptBrowser for Powershell won't run

I'm trying to run ScriptBrowser for Powershell, but it won't run for me when I click on the shortcut (nothing happens). I tried right clicking on the shortcut to see what it is running, but instead of ...
0
votes
1answer
292 views

Best way to provision vSphere VMs remotely

Edit: Sorry, should have mentioned this upfront: looking for a Linux-only solution here. I'm looking for a way to automate the process of provisioning vSphere VMs remotely. I'm wondering what is ...
2
votes
1answer
116 views

Delete all files older than a specific file name?

I want to be able to look for the most recent file ending in .backup, and delete ALL files that are older than that file (but of course keep newer files). Here is an example of a directory listing ...
0
votes
1answer
47 views

mIRC parsing a name

Asked originally: http://stackoverflow.com/questions/23419961/mirc-parsing-for-a-name So I've been getting a bothersome someone who keeps using my nickname. What I want to be able to do is perform ...
0
votes
0answers
29 views

Combining a bunch of find commands into one command or script.

I was wondering how to combine a bunch of find commands into one. This is the list of find commands I want to run and in the order. find /path/to/folder/ -name '*Sample*' -exec rm -rf {} \; find ...
0
votes
2answers
143 views

Can I create a Chocolatey installer automatically based on my currently installed applications? How?

I intend to reinstall Windows on my computer soon and I'd like to make the process of reinstalling all of my applications as seamless as possible. I know you can create a Chocolatey script that can be ...
0
votes
1answer
234 views

Open browser window at specified screen / coordinates

A customer has a 6-screen setup for each workstation and would like various pages of a web app to be opened automatically in each of the screens on startup or invoking a shortcut. (The target web ...
2
votes
1answer
56 views

Start the script with sudo

I am trying to start the virtual machine(ORACLE VIRTUALBOX) using this script(script name:start_vm001.sh). START_VM=`/usr/bin/VBoxHeadless --startvm testvm001` EXECUTE_VM=`exec ...
-1
votes
1answer
105 views

Get value on perl script from another perl script [closed]

I have two perl scripts. The first perl script call another perl script, and then I want to get the result from the other script and use it in the first script to made a condition. I use: ...
2
votes
2answers
91 views

Windows: How to start application when the other finishes

I would like to launch an application automatically, always when some other application finishes. Is it even possible to perform? My specific situation is: User connects to remote desktop and then, ...
0
votes
0answers
33 views

Look for app/cache and app/logs directory and apply rules in /var/www/html

I need some help creating some bash script that help me on my development server by running this commands: HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | ...
0
votes
0answers
15 views

Run a service action with a file from a shell script

I use CloudApp and it has installed a handy service called “Upload to CloudApp”. I'm writing a build script that I want to hook into this service. Every time it is run I want it to upload the file ...
0
votes
0answers
194 views

Write a small script to extract ms-exchange audit logs in csv format?

Background I'm using ms-exchange 2013 in my environment, and have a separate siem box which analyze logs produced by different systems (i.e exchange). The logs for exchange are internally stored and ...
0
votes
0answers
30 views

creating a script or some way to realist items on ksl.com/classifieds?

Hi all I don't know if this is the place to ask this question but I am wondering if there is some way to make a script or some action to be able to relist items on auction websites like ...
0
votes
1answer
282 views

running for loop - but wait for string of words in log file to continue

so far I have this: for each in {01..10} ; do ./sb0$each/tomcat_sb0$each start;done that will start my apps at once, but I want it to wait until it reads one line in a file, what's the easiest way ...
3
votes
1answer
163 views

Specify the shell variant in Emacs local variables for the file

How can I specify the shell variant for a file in that file's Emacs local variables, when the file is not a standalone program? Emacs allows me to specify that a shell include file should be opened ...
0
votes
1answer
119 views

Cannot unzip with zip command line

I am having difficult unpacking a zip to a specific directory. I am trying to get all contents of subdirectory of the zipped file and not the parent directory. This is parent directory within zip ...
2
votes
1answer
129 views

Script: forward all emails from inbox, after users sends 'request' (Outlook 2003)

I am looking for a Outlook (2003) script. What I need: I want to forward all my emails from mailbox-A (from a PC) to mailbox-B (on my phone). The catch is: This rule should only run, when I send a ...
0
votes
2answers
57 views

Making PS1 prompt refreshable

I want my prompt to be changed based on an output of a certain command. and based on the command result to add a color. example: run the command: cphaprob stat | grep local | awk '{ print $NF }'` ...
11
votes
6answers
20k views

Delete all files from a folder and its sub folders

I want to remove all files from a folder structure, so I'm left with an empty folder structure. Can this be achieved in either batch or VBScript scripting? I have tried a very basic batch command, ...
0
votes
1answer
93 views

MAC Rename files and move them automatically scripting

I want a shell script that runs on a Mac, that when ran, looks for a few things and transfers video files to a specific location on another drive. So when I put in an SD card, I want the script to ...
0
votes
1answer
61 views

Getopts - command with multiple options

I have a command script i'm making and wondering how do i go about combining multiple options the general usage of the command is as follows: Usage: myCommand [-fpr] [-n count] [-s size] [-u user] ...
0
votes
1answer
167 views

Running a script from ssh, logging out and continuing the script

The overall question here is - how do I automate sshing into a machine, running a script, and exiting without killing the script? I know that this has been answered several times, but I'm not having ...
1
vote
1answer
70 views

How do I identify shell script execution vs dot execution

I'm writing a bash script that needs to run on the current process for it to be useful. That is, I want to make sure that the script was invoked with source script.sh or . ./script.sh and not ...
1
vote
1answer
220 views

Creating a script to open and save a file

I currently have about five thousand 2D drawings, under many directories on one server, and all of them have a .prt extension. These files were created in the 90's using a software called CADKey. ...
0
votes
1answer
461 views

How do I write a batch script that iterates through all png files in all subfolders and does an action?

I'm looking to build a small batch script that executes the command line of pngout.exe So far I've got only this down for %i in (*.png) do "g:\myfiles\_pngout.exe" "%i" /s0 /c6 However, for that ...
3
votes
1answer
3k views

Install a Teamviewer host silently with custom password

Our company has the custom Teamviewer hosts that we can run silently with the /S switch. The issue is that we can't connect due to it not setting a password that we know. Does anyone have any thoughts ...
1
vote
0answers
128 views

Gimp script does not have permission to write a jpeg file

I'm trying to run a GIMP script to perform Error Level Analysis. I've downloaded the script (a `.scm file) from here. It does show up in the menu (Image -> Error Level Analysis), shows a dialog, ...
1
vote
1answer
2k views

SSH could not create directory /home/USERNAME/.ssh

My script is executing the below command: command = os.system('rdiff-backup --exclude "**.dropbox**" --exclude "**.ini**" --remote-schema "ssh -o ...