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

Piped processes in upstart shell script continue running after stopping

I have an upstart script on my CentOS box that runs a shell script. The shell script runs a netcat command whose output is piped through a couple other commands and then ends up in a file. When I ...
0
votes
0answers
35 views

How to create a script to intelligently .zip numbered files?

I have a directory with a bunch of files with numbered file names (e.g., 002361). I'd like to write a script to regularly .zip them (or .rar, or .7z) based on their file names AND only update the ...
0
votes
1answer
117 views

Automate Update with script ( Flash, Java, Reader )

I'm deploying over 10-20 computers every week and have to update each computer manually. Is there a script that I could use that: Checks-Version, Downloads-New-Version, Updates-New-Version. I ...
1
vote
3answers
193 views

How can I run a Python 3 script?

I want to run a Python 3 script. I have looked in the official doc and FAQ, and they are the typical loss. I was looking for answers, I ended up with more questions. I have Windows and Linux. On ...
0
votes
0answers
21 views

How can a Nautilus script be run for an empty directory?

I have a Nautilus script that can create multiple directories at once using mkdir with the option -p. The script is effectively the following: directoryStructure="$(zenity --title "make directory ...
1
vote
1answer
165 views

Why does this script work as expected in 'curl', but not in the browser?

I have a script which when accessed with the HTTP protocol will send some data, pause for a few seconds, then send some more data, repeating until all the data is sent. When I access it in curl, it ...
0
votes
1answer
58 views

ahk script tweak for 2 instances

I’m trying to create two different hotkeys that launch two independent instances of an application. When the second one is open a “[2]” is added to the title of the Window, which is very useful to me. ...
0
votes
1answer
67 views

ahk WinMove not working in a faster machine

is it possible that in a faster machine AHK WinMove feature does not working and needs something else? I'm positive that the same script works in other slower computers, that means arrange my screens ...
0
votes
0answers
61 views

Run an interactive script with administrator privileges, before user login

Windows 7. I have a script which mount a TrueCrypt partition and share it across a LAN. Because this script must run with administrator (at least power user) privileges, I place it in gpedit.msc -> ...
1
vote
1answer
38 views

BASH Script: Why Do My Variables Not Work

I'm trying to use some script variables in a BASH script to my code more clear. However, for some reason, my variables are not being expanded/uses. Nothing simply happens when I use the variable to ...
1
vote
1answer
82 views

BinScope and ArgumentException: Illegal characters in path

I'm catching a System.ArgumentException: Illegal characters in path when trying to script BinScope from the command line. BinScope is an SDLC audit tool from Microsoft, and the full output is below. ...
0
votes
3answers
80 views

Automating User Input / KeyStroke For a Program

I've read about this problem on related posts found here at Superuser; however, my issue is slightly different and potentially difficult to solve: I am working with a phylogenetic program called ...
0
votes
0answers
46 views

Allow Tampermonkey scripts in ScriptSafe in Chrome

I am using Google Chrome with Tampermonkey and ScriptSafe extensions. ScriptSafe blocks all the scrpts installed in Tampermonkey. I am wondering if there is anyway to make ScriptSafe to allow ...
1
vote
1answer
98 views

How can I create a script to randomly play an audio file in a designated folder?

I'm attempting to use VoiceAttack to give a voice command to play a song. I'm looking to create a script to randomly play a .mp3 file from a specific folder. I'm on Windows 8.1 My scripting ...
-2
votes
3answers
587 views

Bash- How to make a Linux script file human unreadable? [closed]

I have seen many Linux scripts that are executable but cannot be read as they are in binary format. My question is how I can make my script not readable/binary format?
0
votes
2answers
161 views

How can I run a Rails server when I start Ubuntu?

I need to run this command cd /my/app/path&&rails s every time I start my Ubuntu virtual machine. I've tried to add it to /etc/rc.local file and also in /etc/init.d/rc.local but it ...
0
votes
1answer
56 views

Powershell script to open random video

I was looking for a way to open random video file in my folder which has about 400 videos (20 videos in 20 subfolders). I found a powershell script and managed it to work, but every time I run it I ...
0
votes
1answer
114 views

Use nbtstat to return list of host names in IP range?

In Windows 7 I'm using the command for /l %i in (1,1,254) do nbtstat -a xxx.xxx.xxx.%i to return host names based on a given IP range. But the output is so long and unfriendly. How could I improve ...
4
votes
1answer
64 views

Can I create a “file” that, when opened, actually gives the output of a command?

I've found myself in a couple of situations now where I'd like to have such a "file" that essentially runs a script whenever it's "opened", allowing me to "read" it's output. For example, I might ...
0
votes
1answer
75 views

Script for a batch file that runs a program for a specific period of time

I want a script for a batch file that makes a program run every 10 minutes for 5 seconds each time. In these 5 seconds, the program must be running on top of all the other windows, but out of focus so ...
0
votes
1answer
38 views

How can I run this Perl script in Windows?

I am trying to run a PERL script for the first time. Here it is : http://search.cpan.org/dist/HTML-ExtractMain/lib/HTML/ExtractMain.pm I have never used or worked with PERL before and I am finding ...
0
votes
0answers
15 views

How to check a range of zipped files

I am looking for any ideas how to check for particular entry in given range of time in logs. If I am checking logs just from one day, I can do the following: more /var/logs/log.08.12.log | grep ...
-3
votes
1answer
132 views

How to search a string and extract another string pattern from a text file using windows batch script

Consider out.txt file have the following format Display Variable; ID NAME value ===*==========*================ 201 Variavle 07Dec2014 Display Variable12; ID NAME value ...
1
vote
2answers
111 views

Is there a Windows script to disable & enable the Intel GPU?

So I've bought a new laptop with the Intel 4400 GPU. Which I'm trying to connect to an external monitor with hdmi, only the monitor gives me a no signal error. So I went on Google and found a ...
1
vote
1answer
32 views

Script to find files with length longer than 80 characters

I have around 20 C++ files in my folder that I want to check for line length but I don't want to manually go through all of them. Is there any script/program in Linux/Windows that I can use to check ...
0
votes
0answers
826 views

FireFox's NoScript equivalent for IE 11 in Windows 8.1

For my IE 11 in Windows 8, I need a tool I can use to disable/enable JavaScripts on various web pages dynamically when I open a web page - something similar to what the NoScript plugin for FireFox ...
-2
votes
2answers
50 views

How can I create a script in Unix with following requirements? [closed]

A script named /root/backup.sh on w01 that will backup the contents of /home The script will: Create a tar archive named /share/<YYYY><MM><DD>_w01.tar where YYYY represents the ...
0
votes
0answers
20 views

Running script after debian install

I would like to customize debian install to run a script (which will download and install asterisk, mariadb, java 8, etc...) and do some other wirings automatically. In the debian customization of ...
0
votes
0answers
123 views

how to bring network up at boot time in ubuntu 14.0.4

I am write one shell script which execute on every boot, Script is as below. service lsyncd stop /etc/init.d/networking force-reload ifconfig eth0 > /home/sachin/status.txt old="0.0.0.0"; ...
0
votes
0answers
102 views

Support with Python-docx 0.7.4 or with a script removing spaces in filename and replacing numbers [Mac]

I have written a Python program walking through a folder and opening some ".docx" files using the python-docx 0.7.(http://python-docx.readthedocs.org/en/latest/index.html) library. Now i have some ...
2
votes
0answers
87 views

Script to put Windows 8 to sleep and wake up in 5 seconds

How can I put Windows 8 to sleep(standby) and then wake up in 5 seconds? I know I can use psshutdown -d to sleep, but then how can it wake up on a timer?
0
votes
0answers
17 views

finding out when some file is released by the process, Windows

I was reading about of know what process (or PID) in Windows is using some file with Handle or Process Explorer. My doubt is when?, not who? I want to know when the file is released, and I can ...
0
votes
2answers
33 views

How to view the calling script on Linux [closed]

I am trying to write a script to help with computer security. I am trying to look for open ports, find the PID, and find what called it. I have it working, where my output looks something like this: ...
0
votes
0answers
129 views

Detect touch hardware using VBScript

I am looking for a way to detect installed touch hardware using VBScript. My script doesn't work. This script is intended to look for a pointing device and echo accordingly. On Error Resume ...
0
votes
2answers
28 views

Move files and folders to a subfolder

Hi I have a directory where I have many subfolders. In each subfolder, I have a folder called TEST along with other folders and files. Subfolder1>Test, other folders, files Subfolder2>Test, other ...
0
votes
0answers
120 views

Displayresolution + clone mode in Windows 8.1 in script at startup?

I want to force a dualscreen system ( 1: Monitor, 2: Projector) to a) set the dual screen clone mode for monitor and projector. b) set the screen resolution of both to 1280x800 This needs to be ...
1
vote
0answers
123 views

Automatically run executable files with third party program/script in Windows

It is possible to launch an exe file using a third party program through the context menu. My problem is that an exe file might be triggered by a script or by another application on which I don't ...
1
vote
2answers
26 views

Can I automatically restart a pc with a prompt to restart or postpone

What can I do so that I can have a pc restart at a particular time each night and it prompts the user to continue to restart or postpone with a specific time frame?
0
votes
0answers
152 views

Create empty MySQL database via batch file

I have read several answers here but can't see to get the syntax right. The task is to get a batch file that inputs a variable (db) and uses that variable to create an empty MySQL database. My ...
0
votes
1answer
220 views

Shell script force stop without waiting for the exit code

I have written a shell script checklick.sh on my CentOS box with the following content: #!/bin/sh # # description: check link through rtmpdump # . /etc/rc.d/init.d/functions ...
0
votes
0answers
49 views

How can I make Outlook auto redirect emails to email address in body of email?

I would like to redirect a message received from a specific email to another email address. The email address to which the message will be redirected to will never be the same. I have looked through ...
0
votes
1answer
48 views

How can i download .exe file from web and run it automatic

I need to create some script (maybe .bat/.vbs or something else) or something else that will download and open the file on double-click. Can you say how can i do this? Example: I double-click on file ...
0
votes
0answers
18 views

How can I make sure program A quits/can not be started if program B is started/is tried started?

I want to be sure that a program A can not run at the same time as program B as they can interfere with each other. I would preferably make a windows script that I can automatically launch at system ...
0
votes
0answers
42 views

Windows Script Host

My batch file runs on my PC, but when I run it on the server, it calls the Windows Script Host (WSH) which seems to hang the process. There are no settings for the WSH. when I kill the WSH my batch ...
0
votes
1answer
229 views

Script to download files from SSH Server

Is it possible to create a script that follow the same commands FileZilla executes when connecting to an ssh server? When I login manually using FileZilla I get the following message for the ...
0
votes
2answers
67 views

Parse out specific parameter from python script

I have a chage output that I formatted myself called accounts. It basically has the name of the user listed as a section and then the information below it (which are the parameters). I would like to ...
3
votes
1answer
139 views

Map a network drive to be used by a service

I am trying to map a network drive (the WD My Cloud HDD) to be used by a service (CrashPlan backup software) in Windows 8, something that I have achieved with this script: net use X: ...
3
votes
2answers
332 views

Restart-Computer and hold script

I'm running a Powershell script that requires a reboot in the middle of the script. After the reboot, the script is executing some commands (that can't be executed before the reboot!). I'm rebooting ...
4
votes
1answer
561 views

Unlock PC with Windows Task Scheduler

I need to set up a Scheduled Task to unlock Windows 7 PC at specific time. And second Task, to lock at other specific time. Is this possible by cmd.exe command, or I need to use some third party ...
0
votes
2answers
103 views

How can I automate the deletion of all files in a specific folder on a daily basis?

I have a media center and I would like to set up a script/automation that deletes all files in a specific folder once a day. I know that I can do this in the Microsoft Task Scheduler with a .bat ...