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
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
18 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 ...
95
votes
7answers
42k 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
49 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
73 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
60 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
66k 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
458 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
94 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
57 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
39 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
10k 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
119 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
62 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
746 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 ...
11
votes
3answers
10k 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
14 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
107 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, ...
1
vote
2answers
49 views

How to batch “find-n-replace”in doc-files?

I have multiple .doc files with the following structure: [useless text #1] [useful text] [useless text #2] Blocks of useless text are the same across files. How do I batch-delete these useless ...
0
votes
2answers
104 views

What language and how to test script that will run in android terminal app

I want to write a script that can run in a terminal app on an android device. I have basic questions about getting started. Background: I have a Windows batch file that (basically) pulls folders ...
2
votes
3answers
3k views

Is there a way to run Javascript without a browser, like a shell or batch script?

Is there a way one could run Javascript the way Python, Bash, Windows Batch or other scripting languages are run? File access and other library functions would be nice but are not required - I'm just ...
0
votes
1answer
41 views

How to overwrite an echo/printf line with another one? (Making it start at the center of the screen)

I want to write a script which outputs sentences I choose. I want them to appear in the center of the screen: output the first one, and then make the second one appear over the first. Here's my code: ...
0
votes
0answers
21 views

Script in for ffmpeg import-export macro that changes text lines

Was pointed here from video network for the question. I was thinking setting up list of files from folder in excel, all with .mp4. Around 4000 lines in total. Column A - original file name Column ...
1
vote
1answer
106 views

Send E-Mail from Powershell Script to Multiple Recipients based on ActiveDirectory User

I have a script that I would like to dynamically send an email containing some info and go to certain people based on who in the company is running the script thanks to ActiveDirectory. I have ...
0
votes
2answers
123 views

Bash Script to generate <name> and pass this as command line argument to programm

I have an python script which gets 1 command line argument python arg Now I want a bash-script which: calls python arg & with the argument arg=000 make this x-times so therefore: python ...
0
votes
2answers
41 views

Running a script when I exit a program

I want to identify when a specific program is being shut down, and run a script when it does. Is there a way to do that on Windows? The thing I had in mind is running automated git commit + push ...
0
votes
0answers
45 views

Soft Link/Hard Link Script for OneDrive

My problem is the following: I had redirected all my Users/Documents, /Pictures, /Videos, /Music folders to another Drive, but also merged them with my relocated OneDrive. Everything was fine and all ...
1
vote
2answers
69 views

What is the maximum value of a numeric bash shell variable?

I'm curious as to what happens when a numeric variable in bash is incremented up without purposely stopping it. How large can the number get? Will it overflow and become negative and just continue to ...
1
vote
1answer
57 views

How to prevent “source” in a bash script from passing the script's arguments?

These questions address the functionality of source: What is the difference between executing a bash script and sourcing a bash script? What does 'source' do? but I'm confused as to why ...
0
votes
0answers
33 views

Batch Delete User Files every 2 Weeks

I need a Batch-Script which delete Private User Files every 2 Weeks. User Files Admin, Public and a Domain-Account "dJas" shouldn't be deleted. This Script crashes Windows @echo off & setlocal ...
0
votes
0answers
12 views

Checking if file exists to launch different programs

I use the following code to check for a file named loaded in the shared folder.This works when the file is placed in the local dir but it does not write the file to the shared folder. What I'm i doing ...
1
vote
1answer
54 views

BASH Script: Why Do My Variables Not Work

I'm trying to use some script variables in a BASH script to make my code clearer. However, for some reason, my variables are not being expanded/used. Nothing happens when I use the variable with the ...
30
votes
6answers
23k views

zsh with Cygwin

How can I configure zsh to be the default shell under Cygwin?
0
votes
1answer
34 views

Turn each group of multiple lines separated by empty line into one line?

I have a file of many groups of lines, with blank line separating the "groups" of lines. I want to put each group of lines into one line separated by space. input line1 line2 line3 ---blank line- ...
1
vote
1answer
101 views

Script to check Computer Model and Download BIOS File

I've just started working with WindowsScripting and would like some help figuring out how to write a Script that would check the model of a Computer and store the result in Variable in the Bat file. ...
0
votes
0answers
3 views

[Windows]Automatically run script only when application is run? [duplicate]

I have a script generated by FreeFileSync that backs up (via versioning) Firefox's profile directory every hour. How can I have this script run when Firefox is started and terminate when Firefox is ...
6
votes
4answers
8k views

How-to limit Unix FIND results number

Is there a way to limit the number of results returned by the FIND command on an unix system? We are having performance issue due to an unsually large number of files in some directories. I'm tryging ...
0
votes
1answer
35 views

XCOPY with a little twist

not sure if this is asked before but I need to move files from one location to another with a little twist. I have the following script written: @ECHO OFF set source=C:\folder1\folder2 set ...
0
votes
1answer
25 views

How to create a “function” for terminal to run

I have about 10 terminal commands that execute syncing with a Git repository and a live-server. How can I boil that down into single command? Is this a use case for scripting? Steps include: ...
2
votes
1answer
105 views

Powershell script to clean up folders

There's a need to do a weekly cleanup of FTP user account mailboxes on our server and it has about 50 user accounts defined. Below is an example of the FTP user mailbox folder structure which each ...
1
vote
1answer
37 views

How to launch this particular script from any desktop at any location?

This part seems to be the code to modify: Set fol = fso.GetFolder("c:\TEST") How can I change that so that it works on any computer from any location/path? Would I need to integrate an additional ...
20
votes
6answers
69k views

Automatically run a script when I log on to Windows

How can I automatically run a script when I log on to Windows? I'd like to run something like this whenever I log into my computer: echo %USERNAME% logged on at %DATE% %TIME% >> log.txt A ...
3
votes
2answers
33k views

Automate file upload in Filezilla using script [duplicate]

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 ...
0
votes
2answers
1k views

How do I concatenate strings from a list in a bash script?

As an example: List="A B C D" for I in $List do OUT=$OUT" -$I" done When I run this the result is: " -A -B -C -D" but want it to be: "-A -B -C -D" How do I concatenate without the ...
0
votes
0answers
32 views

Using Github to Store Files for Retrieval via Local Script

I'm trying to find a solution for contracted users who are not on our domain to be able to automatically pull down files that will overwrite local files on their PC via a batch or vbs script that they ...
1
vote
1answer
4k views

Unable to authenticate sftp password using winscp command line in Windows 2008 R2

I am following the example at http://winscp.net/eng/docs/scripting to automate the transfer of files from my PC to a sftp server however each time I include a password it fails to authenticate. I am ...