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
vote
3answers
5k views

Export installed certificate and private key from a command line remotely in Windows using something besides the certmgr.MSC tool

I need to be able to remotely export an installed computer certificate with the full certificate chain and private keys on a Windows server. The cert is used for IIS, and I want to use it for an ...
0
votes
1answer
22 views

How to manage the same script on many computers at once?

I am a student doing research in multi-agent systems. I have a network of 4 raspberry pi cameras that I am using to do some vision processing and combining the results using some algorithms developed ...
2
votes
2answers
8k views

How to automate Checkpoint firewalls rules implementation?

I HATE CP with a passion beyond belief... I mean, why, WHY you couldn't include a command line interface that allows me to grep a CSV file in which I'm requested rules, format them properly and then ...
1
vote
1answer
43 views

Toggle network share on Windows 7

I need help with mounting a samba share with a shortcut/button. I want to be able to mount a share and unmount it with the same button. Here is the pseudo code i had in mind. Requirements are simple: ...
1
vote
1answer
59 views

Adding date to the name of multiple files in multiple folders

I have a directory which contains 400+ subfolders. In each of this subfolders a new file appears every day. Each new file has the same name as the file that appeared in the same folder yesterday. Each ...
0
votes
1answer
32 views

how to write a shell script to take password automattically after the execution of command

#!/bin/bash cd /var/SUNWdsee/ds6/bin ./dsconf show-repl-agmt-status -e suffix Hostname:389 Above is my script. After the execution of the last line it will prompt for password in screen. I need to ...
-3
votes
1answer
22 views

Clicking link in Chrome without it opening

It seems that many websites nowadays have some code, that when you first open the site and click anywhere on it, it opens a new tab, usually with some kind of advertisement which you manually have to ...
1
vote
2answers
5k 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 ...
0
votes
0answers
65 views

Need help building a shutdown task

I'm running Windows 7 Pro and need help writing a vbscript/wscript that, upon the user trying to shut down the computer, will check a specific directory for .xml files. If files exist, it will run a ...
0
votes
2answers
40 views

How can I delete rest of the line after a second the same specific character on string?

dagaga2.com:8ddagd1:dbcc:eLXLBdRdd?a'badagahaha dadadagh.com:299515:dgan6hhna:992969199269196 dad2agh.com:299515:dganhna:992969199269196 dadada5uwuwgh.com:299ju515:dgaenhna:9929691998d269196 ...
0
votes
0answers
9 views

Parse text from iTunes

I need to find a way to parse some text from an OS X app, specifically iTunes. What I need to do is go to an Application's page and parse the reviews from it. I know there may be better ways, but the ...
5
votes
3answers
7k views

How do I configure Firefox through a script?

I'm looking to configure the following Firefox settings through a script (VBS or batch) default home page default search engine disable auto update Is this possible?
2
votes
1answer
340 views

Removing AD Group members according to their memberships to certain groups in the same OU

Our AD groups for Websense filtering has been set up with very little flexibility for policy management. There are only two groups for "Permit all" web browsing category. Now I need to create over 20 ...
0
votes
0answers
11 views

cronjob not finding commands [duplicate]

I am running (and also new to) OS X El Capitan. I have a user cronjob that is using some basic commands that I got via brew. wget and s3cmd I have the cronjob executing a shel script in my user bin, ...
1
vote
0answers
33 views

inotify does run twice

I wanted to write a script that triggers some code when a file gets changed (meaning the content changes or the file gets overwritten by file with the same name) in a specific directory (or in a ...
1
vote
1answer
976 views

How can I stop a PowerShell script from running?

I have (so far unsuccessfully) tried to install SharePoint on my Windows 7/8.1 laptop. It fails when installing a particular prerequisite (Windows Identification something-or-other). But that's not ...
0
votes
3answers
184 views

my first linux script won't run

I am trying to write my first linux script (running on chromebook in devmode). Here it is: #!/bin/bash echo 'hello world' This is stored in ~/Downloads/app/run. When I try to run it I get the ...
0
votes
0answers
19 views

need a ping script.sh that checks pingable ip's on lan and stops at last “alive”

I have a bash script on my Debian 8 32 bit that checks what devices are pingable. simple script name"checkip.sh #!/bin/bash fping -g 192.168.1.1 192.168.1.50 The problem is it continues to check ...
1
vote
2answers
134 views

Script to merge a specific line of multiple .txt files into one .txt file

I have ~800 .txt files. I need extract the name of each file, and one line inside the file, and export it to a new .txt file. The line I need to copy will always start with "System Boot Time:" I'd ...
0
votes
0answers
22 views

Check which user changed which file with inotifywait

I would like to write a script which uploads a file to ownCloud (through the user that changed the file) if it was changed (written over or changed content) in a specific directory. I figured I would ...
0
votes
1answer
81 views

How to run determine current directory as parameter and pass to script activated from context menu

not sure the title is entirely adequate so let me explain a little clearer. I have an existing powershell script which deletes backups of specific file types. What I want to be able to do is right ...
0
votes
1answer
38 views

restart bash script on exit(1) from php script?

I have a php script that works as long as the internet is on. When problems occur, it exits with code 1. the code in windows looks like this: :start php myScript.php IF %ERRORLEVEL% NEQ 0( ECHO ...
0
votes
1answer
20 views

Apple Script: cannot call id3tag from script with “do shell script”

Trying to rename mp3s from an apple script which will be part of a larger script including Audio Hijacker. set folder_p to "/Users/me/Music/" set folder_path to POSIX path of folder_p set file_path ...
0
votes
1answer
32 views

Restarting an application upon its closing

I'd like to turn some Windows (7, 8, 10) PCs into indie arcade setups for an event. I really want it to be fool proof. Plugging in controllers and launching a game is easy enough, but games have exit ...
1
vote
3answers
735 views

Rename folder using script, variables from excel doc

Linux File System I have a directory with 1500 folders. I am looking to use an excel document that has the 1500 folder names in one column and a unique id in the next. I am looking to script it so ...
1
vote
1answer
212 views

Script - Lenovo Battery Recall

Problem: LenovoBattery.exe fails when called via batch file. Is there a way to make it work? Details: Lenovo has expanded its voluntary recall of notebook batteries. They request the industry to run ...
5
votes
3answers
5k views

Simplest way to check for dynamic IP change

What would be the easiest way to find, with a script, if my IP address has changed? Background info: I have a standard home cable modem connexion, and my ISP assigns me a dynamic IP. It changes ...
6
votes
4answers
9k views

How do I autorun applications after mounting a TrueCrypt container?

I would like my TrueCrypt virtual drive to act as a newly inserted USB drive or CD/DVD by executing commands in the partition's autorun.inf file. I've read several suggestions online including ...
0
votes
2answers
3k views

Need a sample script to perform an automated action on a Cisco router via ZOC SSH

Does anymone show me a script sample using the software "ZOC Terminal" (version 6.2) to perform an simple automatic action on a router, let's say a reboot or change of daylight savings time or ...
0
votes
0answers
20 views

Removing “Network Device” which was manually added via script

I have a site on GoDaddy which uses the cpanel software as part of the hosting service. I downloaded their visual basic script to connect to a "Web disk" but now I want it removed. Anyone know how I ...
3
votes
1answer
3k views

How to burn a cd (files not iso) from the command line in Windows 7

I have used robocopy and a script to copy files from various resources. I now want to have my script automatically burn the files I copied to a cd. I'm looking for a command. I have tried xcopy but I ...
0
votes
0answers
20 views

How to close a program when connecting to a specific wifi on Windows

I have a small download limit on my home wifi. Everytime I open my laptop dropbox starts and starts syncing consuming my download limit. I don't want to remove dropbox from my automatic startup list ...
100
votes
7answers
44k views

What is the difference between executing a bash script and sourcing a bash script?

What is the difference between executing a bash script like A and sourcing a bash script like B? A >./myscript B >source myscript
1
vote
1answer
63 views

How to set one password for all net users in cmd for batch script?

Im writing a windows batch script and I need to set all the users to a certain password? I know that I can do net user to see all users on the computer and I can do net user username password to set ...
1
vote
1answer
87 views

How do I change the folder this script saves a downloaded video to?

I'm using HotStarLiveStreamer https://github.com/biezom/hotstarsportslivestreamer and I'm having trouble understanding how I can modify the .bat file script to suit my purposes. @ echo off call ...
0
votes
1answer
74 views

Cant get Windows Script File to close after Telnet

Below is the Current Script I have for my current little project. <job> <script language="VBScript"> Option Explicit On Error Resume Next Dim WshShell set ...
4
votes
4answers
2k views

How to clear balloon popup from bash

I am setting a notification with notify-send in a script. The only problem is that when the script is called several times, all the notifications are added to a notification stack and only called one ...
17
votes
4answers
68k views

How can I run a command after boot?

I would like to run the simple shell command echo 1 > /proc/sys/kernel/sysrq at each boot, to enable the sysrq keys. When in boot should this be done, and where should I put a script to do it?
1
vote
1answer
491 views

Win7 unlock & logout after x minutes

I have been asked to investigate some functionality for a number of shared PCs running Win7 on a local network. Basically people are logging on to the PCs and locking them in the morning and walking ...
0
votes
2answers
115 views

How to get HTML file as a content to mail (shell script)

I am new to shell script, I have an HTML file which contains table data. Now I need to send this file to mail. mail -s "test" abc.com <test.html Currently I am getting the raw HTML code for the ...
1
vote
7answers
3k views

How to use ssh from shell script without waiting for password?

I can not use public key method. I also don't want to use expect script. I searched this site for solution but everybody is talking about these solutions. Is there any other way like command line ...
1
vote
1answer
60 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 ...
1
vote
1answer
45 views

Prevent open -a Terminal.app from automatically exiting on Mac OS X

On my Mac OSX 10.9 Mavericks, I wrote a small bash script to open a log file for a terminal game application I'm writing so I can see print statements: #!/bin/bash printf '\e[3;0;0t' ...
5
votes
7answers
11k views

Launch synergy client on boot in Mac OS X

I have a mac as a secondary machine at work. Currently I use synergy on my main machine to share its keyboard and mouse with the mac. I created a launch agent for my user to launch synergy when I ...
0
votes
1answer
170 views

Scripting parallel FTP downloads (multiple connections) on Windows

I need a scripting solution to download several (more then 100) websites by FTP for backup purposes. For each website I want a scripting solution which supports 10 parallel connections to only one ...
0
votes
0answers
73 views

FFmpeg script to convert all WebM files in a folder to Gif, and then delete the WebM files

I'm using FFmpeg with DirectoryMonitor, a folder watching program. When a webm is added to the folder i want to execute a script to convert all webm files in that folder to gif, and then delete those ...
1
vote
2answers
818 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 ...
12
votes
3answers
11k 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
16 views

Stop bash script with any key

I'm writing a script which I want to stop with any key I choose. After pressing the key, my intention is to complete all my commands at that moment and start su. I've tried adding a & to my ...
1
vote
1answer
164 views

Is it possible to automate Notepad++, specifically the search and replace across files?

Is it possible to automate Notepad++, specifically the search and replace across files? I want to be able to automate the search and replacement of placeholder values across a number of file types, ...