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
1 view

Automate placing custom svg inside template svg for printing a variety of posters

I have to print a number of different posters, each with a template and then a custom graphic within a container. If I can get the id of the container within inkscape, how can I script cycling through ...
0
votes
0answers
2 views

Specify schema from the Linux CLI when running script with psql

There's a lot of information out already on how to choose the schema and import a script from the psql CLI, but I have a use-case where it would be more advantageous for me to be able to choose the ...
1
vote
2answers
23 views

Can I delete only the first matching line using sed?

I have a file testfile.txt containing pippo=x pluto=y 1234=z I'd like to delete only the first line matching /^[a-z]\+=/ (the first line in this example). I've tried with the following command but ...
0
votes
0answers
17 views

ping results exported to .csv to multiple rows and columns

I have a script that I run to ping multiple Ip addresses. It works just fine with everything that I have in it the way I want it. The problem is the export. I need "Router" to Start in Column "A" ...
0
votes
0answers
16 views

How can I use the START command to open Netlimiter's NLClientApp.exe in minimized mode?

I have placed this 3-line script in my Startup folder: @ECHO OFF TIMEOUT /T 45 START "" /MIN "C:\Program Files\Locktime Software\NetLimiter 4\NLClientApp.exe" I want to delay the start time of ...
1
vote
1answer
12k 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 ...
5
votes
4answers
3k views

Modify Conky to handle variable length values

I currently experimenting with DWM and Conky to create a minimal looking desktop to use for coding and things like that. I've got something nice going on, but there's something I'm having an issue ...
2
votes
1answer
22 views

How to delete a file from a command in a shell file for /etc/init.d?

I have a about question working with /etc/init.d shell script. All I want to do is delete a file from a command inside the shell script like so: case $1 in stop) echo "Stopping" rm -f /var/run/...
-2
votes
0answers
21 views

Python excel handler

I have an existing python program to handle an excel file and its working fine. I need to modify this program to add some more features. when I am adding some code in it(leave about adding code just ...
0
votes
0answers
38 views

Automate Exporting of Outlook Calendar to CSV

Is it possible to create a powershell or cmd script that will automatically export Outlook's calendar to a CSV file? Edit: There is a way to do so from within Outlook, but I was wanting an example as ...
2
votes
1answer
4k views

Powershell Script to SFTP New files

I have a script here that SFTP's files from one location to another, the script works fine however I'd like to change the script so that it only copies files that are not already present. Bit of a ...
6
votes
4answers
3k 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.
-2
votes
1answer
24 views

file_put_contents is not overwrite / overwrite context option not specified

I heard that file_put_contents overwrite the file if it exist ? That's what i want but it doesn't work. What do? $contentsAnnonces = file_get_contents("http://website1.fr/file.xml"); $...
-3
votes
0answers
40 views

Execute php script online from Terminal [closed]

Is there any way to execute a php script from terminal ? The idea is that i upload script on my ftp server and then i execute the script with his URL on terminal app. i need to check the error while ...
2
votes
2answers
5k 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
1answer
896 views

How to run script before starting vpn connection?

I need to run a bash script BEFORE connecting to a vpn (which I do by clicking the network manager applet). I need this script because when connecting to the vpn the routes are incorrect. The script ...
2
votes
0answers
25 views

Mass export of Yahoo Messenger server-stored conversation history [on hold]

Starting with version 11, the conversations are stored server-side (other similar questions are mainly referring to the older versions, where the archives were stored locally). As the application ...
0
votes
1answer
22 views

Run and edit a Perl/Python/non-Powershell - Script in Powershell_ISE (Windows Server)

I am on a Windows Server (2012) with Powershell_ISE and befor installing additional software I wanted to edit and test a script in the Powershell_ISE (it's a better native solution than using notepad +...
1
vote
1answer
1k views

Windows batch file or script to load exported Wi-Fi XML profiles onto a new laptop

This probably is as simple as reconfiguring the standard code used by MS for the same thing but .. I hope maybe someone has already done it. You can easily export a Wi-Fi profile to a USB including ...
0
votes
0answers
21 views

Script on router with DD-WRT can't be executed because it isn't found

I have a netgear nighhawk r7000 router with the DD-WRT "Kong Mod" release: 04-19-2016. I was trying to block ads directly on the router with pixelserv following this tutorial http://www.howtogeek.com/...
0
votes
0answers
17 views

When Click Reply, Insert Email Signature from Reply Email to Reply Body Email

I am trying to create a script that when I click reply to an email it will pull the specific signature details from the previous email and insert it in to my new body. The signature always starts and ...
31
votes
7answers
24k views

zsh with Cygwin

How can I configure zsh to be the default shell under Cygwin?
234
votes
27answers
131k views

How to execute a command whenever a file changes?

I want a quick and simple way to execute a command whenever a file changes. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with ...
1
vote
0answers
29 views

how the macchanger script actually works

How does the macchanger script in KALI Linux work? I believe that it changes the MAC of the interface in RAM so that the spoofed MAC is attached to the packet until the system is reset. How does the ...
-2
votes
0answers
25 views

copy in Perl script

I am looking for a script which can copy a file which is selected by the user and edits the file as below requirement. I have tried this but unable read the user input and copy the file form the ...
0
votes
1answer
8 views

How can I add lua support to grub2, or at least file copy functionality?

I am trying to add lua support to grub2 and having a devil of a time finding info on how to do that. The links provided in the answer to (String manipulation in Grub2) no longer have any lua ...
0
votes
3answers
3k views

Batch script to append record to csv files

I have a bunch of stock data in csv's that I am backtesting trading strategies on. The problem is that my strategy buys the open market price if a signal was found yesterday, unfortunately my data is ...
1
vote
0answers
19 views

Is it possible to copy files with grub2 scripting?

I am trying to work out a few details for a dual boot, public use (i.e. public library context) that runs Windows 7 and Linux. I am using Windows 7 and Linux Mint. Windows 7 runs on a VHD file (...
1
vote
1answer
791 views

String manipulation in Grub2

One of the new features of Grub2 is scriptability. At my work we're using it to great affect. However, I recent stumbled on a terrible short coming. There isn't any string manipulation or ...
1
vote
1answer
23 views

Working with different implementations of cp across different environments

So I figured GNU's cp is different than OSX's (BSD). While OSX copies the contents of a directory that ends with a slash, or the directory itself without the slash, GNU/Linux just treats somedir and ...
2
votes
2answers
1k 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 ...
-1
votes
0answers
25 views

download data from website using scripting

I need to download data from following webpage: https://www.nseindia.com/corporates/corporateHome.html?id=eqFinResults. The issue is that there are more than 2000 possible values of companies and 2 ...
7
votes
3answers
11k views

Recorder for AutoIt

Does anyone know where to find the latest AutoIt recorder? The one here does not work. It does not find RWSettings.alg and I do not know what that is. Any help will be appreciated.
0
votes
0answers
22 views

Duplicate Desktop on 1 and 3 through script

I support ClearCube equipment that are 2 floors up from where I work. Since where I work doesn't have the software to actually manage them if something goes wrong I have to run upstairs to the rack ...
0
votes
2answers
4k 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 ...
4
votes
3answers
6k views

Is there a way to get access to a window handle in windows using WSH, or WMI or similar?

Is there a way to get access to a window handle in windows using WSH, or WMI or similar? I just want to flag a window as always-on-top. Ideally I'd use windows script host for this. (Should also be ...
1
vote
1answer
39 views

Send separate attachements in Outlook 2010 to separate email addresses

I have separate attachments I want to send out to 70 different email addresses. Is there some kind of macro or script one can run to make this possible instead of having to send each email one by one?
1
vote
1answer
25 views

Send Password in ssh script

I made a script called sshconnect for some users, that takes 2 variables , usertype and sitenumber so users use the script to ssh to that sitenumber with the usertype. For example the user type the ...
0
votes
2answers
53 views

executing script manually works, but not in task scheduler

I have troubles with the task scheduler in windows 7 Pro. I want to run a script. Manual execution works perfectely, the task manager does nothing. Part of the script is setting the focus onto a ...
1
vote
0answers
15 views

alias to programs in cmd? Where are they stored?

How do I add "shortcuts" (aliases) into cmd? For example the shortcut to HypersnapDX. On one computer I can simply enter HypSnap6.exe and Hypersnap openes. From any location. On the other computer ...
-2
votes
2answers
38 views

What's the use of a script that is run after login? [closed]

In several different network computers (school/company/...), I noticed that a script is run in the terminal after logging in with your personal account. Why would a network administrator run a script? ...
1
vote
1answer
60 views

Merging Multiple Text File Data, but Specific Lines to Another

I have several Textfiles with a header of no interest and some relevant data. I want a new file with all the important data: Example: File1 has text: Created on 02.02.2016 Country: Chile Figure of ...
0
votes
0answers
40 views

DD-WRT: Script for IP checking and openVPN reconnect

Router: TPLINK ARCHER-C7 v2 Firmware: DD-WRT v3.0-r28072 std (11/02/15) Service: OpenVPN client Issue: Sometimes a least favorable VPN server is assigned, it always provides very slow connection ...
3
votes
2answers
36k views

Automate file upload in FileZilla using a script [duplicate]

Consider: 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 ...
1
vote
0answers
13 views

Script that start/stop programs based on if connected to wlan or not

I would like a script that automatically enables Surveillance station on my Synology NAS when i leave home (my phone dissconnect from my WLAN). Do you have any idea how to solve this? Python?
4
votes
3answers
7k views

How can you automatically run a script after connecting to a VPN on OS X?

I have configured the VPN connection in OS X 10.7.3, but since the network I'm connecting to uses a corporate proxy, has custom Maven repository servers, and other network-specific settings (remote ...
17
votes
4answers
71k 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?
0
votes
1answer
65 views

Combine custom run command and macro in Notepad++ 6.8

Following very useful guidance by Friedrich Huebler on integrating Stata with Notepad++ I've added a set of run commands that are assigned to: F9 - run selected line F10 - run the whole file I in ...
0
votes
1answer
4k views

Rename a Mapped Network Drive via CMD

I map a network drive via command line. Once this drive is mapped, it appears under My Computer with the full path. How can I rename the mapped drive using command prompt? I have used the "full ...
-1
votes
0answers
29 views

Is it possible to change a computer name via batch file on Windows 7 Enterprise

I"m on a domain and all my stations have a computer name of 1220-"last three digits of the IPv4" I'm running 64x windows 7 enterprise. Is it possible to run a batch file to have all the computers ...