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
15 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
0answers
14 views

Suppress tooltips on a specific web page?

At this website: https://www.youtube.com/user/RussiaToday, when hovering the mouse over the list of video thumbnails, a tooltip appears which says "This will open in a new window". This tooltip is ...
1
vote
1answer
6k views

Batch file script for Enable & disable the “use automatic Configuration Script”

My intention is to create a .bat file that toggles the check box of "use automatic Configuration Script" in Internet Settings. The following is my script @echo OFF setlocal ENABLEEXTENSIONS set ...
0
votes
1answer
27 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 ...
6
votes
5answers
6k views

Run a script when Windows resumes from suspend/hibernate state?

Is there a way to have Windows (XP, Vista and 7) run a script when a machine returns from hibernate/suspend mode? It would be okay with me if the script runs after the user unlocks a locked session ...
-3
votes
1answer
28 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 ...
-5
votes
0answers
14 views

Auto-delete a watched video file on a Mac [closed]

I'm trying to make a script or find a way to delete a video file after I watched it. If I tag it with something(a color or a comment) after I watched it automatically I could then use hazel, for ...
0
votes
1answer
10 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 ...
2
votes
1answer
1k views

Force 64bit WScript to run .vbs

I'm trying to run a .vbs script under 64Bit. When I run this script manually it will execute properly, but when launched by something else, it will run under 32bit and won't execute properly. Here's ...
2
votes
1answer
2k 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 ...
3
votes
0answers
39 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 ...
-1
votes
1answer
29 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
24 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 ...
1
vote
1answer
5k views

Calling PowerShell functions in another scripts

I have a script with a number of functions (not just functions but also other code). I would like to create another script that uses one of the functions in the main script. Here is a sample of what ...
0
votes
1answer
4k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
0
votes
0answers
12 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 ...
0
votes
1answer
3k views

Local group policy logon startup script not executing

This is for Windows 7 I have a .bat and .vbs file in a folder. The .bat runs the .vbs script. In the Local Policy Group editor, under Windows Settings/Scripts I added a reference to the .bat file in ...
7
votes
5answers
11k 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, ...
1
vote
2answers
3k 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
32 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
17 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
20 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 ...
7
votes
2answers
6k views

How to execute a script on sleep, hibernate, resume, and shutdown

I keep alot of my classwork documents hosted on dropbox as well as my personal site for remote storage. This helps alot since I switch between an iPad, laptop and desktop, so there are no worries ...
0
votes
0answers
46 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 ...
-2
votes
2answers
48 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 ...
5
votes
4answers
2k views

Hook into linux mount/umount event

is there a way to provide post-mount and pre-umount scripts in Linux? I am trying to do some scripts on storage media when mounted and before umounting (eg, for synching). Any help appreciated.
0
votes
2answers
995 views

Using sqlplus as tnsping alternative

Is it possible to use sqlplus as an alternative for tnsping since tnsping wasn't installed with the oracle setup. I simply want to check via batch script, whether the definitions from the tnsnames.ora ...
2
votes
2answers
3k views

Unable to remove network printers via script in Windows 7

I've tried removing several network printers via rundll32 printui.dll, PrintUIEntry /dn /dd /q /n \\SERVER\PRINTER also tried the /dl but nada and WSHNetwork.RemovePrinterConnection ...
0
votes
1answer
40 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
2answers
158 views

Update a sqlite database while select into a while loop

There is a bash script that will do "some magic"™ to files which will be referenced to a sqlite database and after doing "some magic"™ the database should be updated. Here are the simplified code ...
1
vote
0answers
6k views

Run a batch file on a remote computer as administrator

I am trying to run a batch file (to install some software) on a remote computer. To do this, I am using PSExec. psexec.exe \\COMPUTER C:\swsetup\install.bat This works fine, apart from some of ...
0
votes
1answer
366 views

Using START /wait with MozBackup batch scripts

OS: Windows 7 64-bit I have three batch files. FirefoxBackup.bat ThunderbirdBackup.bat Firefox_Thunderbird_Backup.bat The script inside Firefox_Thunderbird_Backup.bat is shown below: @echo off ...
4
votes
3answers
764 views

Windows Startup and Shutdown scripts

In the group-policy editor, I see an option to add scripts to be executed on Startup and another option for scripts to be executed on Shutdown. Are these intended for personal use? And if so, are ...
0
votes
0answers
15 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 ...
2
votes
1answer
193 views

VBScript how to detect hardware plugged in?

I tried searching but I can't seem to be find anything besides USB detection. I want to make a script that detects when the speaker and microphone ports has a device plugged in. Is this possible to ...
0
votes
0answers
25 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
17 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
57 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
2answers
27 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
13 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
0answers
38 views

Maintain screen session when executing shell script on boot

Solved: I solved this problem by introducing a delay before executing the script: @reboot sleep 60; /root/start_server.sh On Ubuntu 14.04, I have a crontab entry set to run on reboot: @reboot ...
1
vote
0answers
64 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 ...
2
votes
2answers
7k views

Automate file upload in Filezilla using script

D:\Program Files\FileZilla FTP Client\filezilla.exe -c 0/GG/DG/ -a "K:\YY\XXXXX\AAAA\BB\idS.txt" This code doesn't work as it says "PATH NOT FOUND" K:\YY\XXXXX\AAAA\BB\idS.txt However D:\Program ...
3
votes
1answer
4k views

How to add a network (IP) printer using command line or a script?

My company will be deploying a bunch of laptops that will be used during a seminar for people to sign up for services on our website. At the end of the signup process they will need to print out a ...
0
votes
2answers
21 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
3answers
4k views

How to Find User Name and IP address of users Logged on a Remote System

How can I find user name(of the local machine) of the last logged on user on a remote system. Is there any command or script we can use? I am able to capture IP address of the local machine of the ...
0
votes
0answers
29 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
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
1answer
2k views

List Mapped Drives of All Users

I often have to replicate the mapping of drives of one machine to another. While I know how to easily output the data for the CURRENT user I have not found a way of doing this for others who are not ...
0
votes
0answers
34 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 ...