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

How can I queue a script to run the next time a system is up and connected to the internet?

I'm using mailsend (on a Mac) to send mail from the command line. I'd like to set this up such that I can execute a send command, but if my system is disconnected from the internet, that command is ...
-2
votes
1answer
152 views

Batch file to copy a file at random to another folder

I need a batch file: Given folder A containing .txt files; e.g., C:\A\a.txt C:\A\b.txt C:\A\c.txt C:\A\d.txt and folder B (which is empty), I need the batch script to copy one randomly chosen file ...
1
vote
1answer
169 views

How do I obtain statistics about sent email from Mail.app?

I use the Mail.app in OS X Lion. I would like to determine statistics about all emails sent within a timeframe (in this case, from 2010 to current). In particular, I'd like histograms for emails per ...
0
votes
0answers
126 views

Windows batch script: Manual power up vs Wake on Lan (WOL)

OK, I have a (win 7) desktop computer with WOL set up so I can turn it on remotely, it works fine. Next thing, on this computer I have a batch script, which runs at startup and starts various apps, ...
2
votes
2answers
649 views

Linux script that indicates time the server was offline?

Below is data taken from my dedicated server: root@namhost [~]# last root pts/0 XXX Tue May 18 09:46 still logged in root pts/0 XXX Mon May 17 08:51 - 12:18 (03:26) reboot ...
0
votes
0answers
16 views

How to split long Google searches and combine them later?

I have a list of keywords, which change regularly. I would like to search Google for new occurrences of pairs of these keywords. keyword1, keyword2 keyword1, keyword3 I can construct a query ...
0
votes
1answer
21 views

Edit file from boot iso Arch Linux

I've messed up a startup script on my Arch Linux machine and I cannot boot into KDE anymore to disable it. Is there a way to delete (or move) that file from where it is so that the script will not ...
0
votes
1answer
21 views

Backing up recursively is not copying directories

I have the following line in a script to backup and it is not recursively copying all the directories, it gets the files but just lumps them all together. Can anyone tell me what is wrong with it? ...
1
vote
5answers
14k views

How to manually stop a Python script that runs continuously on linux

I have a Python script that is running and continuously dumping errors into a log file. I want to edit the script and run it again, but don't know how to stop the script. I'm currently logged on ...
1
vote
2answers
100 views

Running the script on startup (ubuntu)

I have this script named startupcss I placed it on /etc/init.d then add the service update-rc.d startupcss defaults but when I try to start the service service startupcss start I get this error ...
7
votes
4answers
15k views

echo newline character not working in bash

I have bash script which has lots of echo statements and also I aliased echo to echo -e both in .bash_profile and .bashrc, so that new lines are printed properly for a statement like echo ...
1
vote
2answers
930 views

How to redirect script output to a text file and continue despite log-out

What is the difference between: nohup bin/admin/release.sh > /users/john/release_output 2>&1 & and bin/admin/release.sh > /users/john/release_output & I want to run ...
0
votes
1answer
377 views

Executing PHP script from command-line

It has been a while since I did any scripting with php. Now that I'm back at it, I find I'm missing something simple. Currently, the only way I am able to run my scripts is with the php command in ...
0
votes
0answers
35 views

Batch Script to ZIP Together Files With Same Names

I have 314 vector images I'm looking to submit to the various stock image sites I'm a contributor to, but a number of these require that the vectors be bundled into a ZIP folder with a JPEG preview ...
0
votes
1answer
135 views

VLC bash transcoding script destination directory

Well, I have such transcoding script: #!/bin/bash acodec="vorb" arate="256" ext="ogg" vlc="/usr/bin/vlc" fmt="mp3" for a in *$fmt; do $vlc -I dummy -vvv "$a" --sout ...
0
votes
2answers
204 views

Linux move files from specific directory one directory up and delete empty folder

I need to move files out from a directory inside a directory inside a directory and remove folder that I move them from. I would need a recursive script. The directory structure: ...
1
vote
0answers
1k 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
25 views

Switcher bash script

I want an executable script that changes screen configuration from 1 to 2 or from 2 to 1. I would need a boolean or a variable where the state is saved. It's that possible? Otherwise, how can I check ...
1
vote
1answer
978 views

Run scripts after establishing PPPoE connection in Ubuntu

I need to change some configuration after a PPPoE connection has been established. (Change /etc/resolv.conf, add routes.) I made a script, moved it to the /etc/ppp/ip-up.d/ and made it executable, ...
2
votes
2answers
133 views

Is there a tool like `script` (Linux/Solaris/etc) for Windows?

Perhaps the worst-named tool in the *nix world, script is extremely handy when you want to capture all the output of a terminal session. Is there a tool like it for Windows? Specifically, without ...
0
votes
1answer
64 views

MAC Rename files and move them automatically scripting

I want a shell script that runs on a Mac, that when ran, looks for a few things and transfers video files to a specific location on another drive. So when I put in an SD card, I want the script to ...
0
votes
1answer
79 views

Windows firewall - block all incoming connections enable/disable - CREATE SCRIPT

Is it possible to create script which enable/disable the first checkbox of windows 7 firewall settings (Block all incoming connections....)?
1
vote
1answer
18 views

Is there a DBus command for adding a program start button to a KDE plasma panel?

There was a nice command in KDE3 that allowed my to add a program start button to a kicker panel programmatically: dcop kicker $PANEL addNonKDEAppButton "$PROGRAM_NAME" "$PROGRAM_DESCRIPTION" ...
-1
votes
2answers
206 views

Run a Script before shutdown or reboot windows 7

I need a registry entry to a run once script at shutdown or reboot. I needs cleanup sensitive data after an installation. So even if the installation failed or got interrupted, i may not leave data ...
4
votes
1answer
1k views

noscript, how to allow script on one domain only?

Some forums allow direct embedding of YouTube videos, and it's slowing down my browsing a lot when a user posts several videos in a single post. I want to allow YouTube's script only on youtube.com, ...
1
vote
1answer
77 views

linux: monitor logfile for a string and execute script

I want to monitor a logfile (syslog) on my linux debian box. So if there is a new entry with a secific string, i want to execute a script. The strings are "alarm start" and "alarm end" So it should ...
0
votes
1answer
31 views

Script not working when run automatically

This script (parts of it) runs perfectly when invoked manually from the Terminal: #!/bin/bash [[ "`ps -e | grep -c $(basename $0)`" -gt "2" ]] && echo -e "`basename $0`: Mutiple instances ...
0
votes
0answers
46 views

Bash Script Display Remote Screen Session to User

I'm kind of new to bash scripting and I'm having trouble figuring out how to accomplish this. I'm working on a script that is designed to backup and manage a java application that runs within a ...
0
votes
1answer
452 views

windows script to copy text from one file into a new file

I am noob at coding! I am trying to create a windows script that I can copy text from one file into another. My main goal is to find lines in the text with "started processing" and "file". I am hoping ...
0
votes
0answers
31 views

Automating my PC setup builds

The company that I work for orders bog standard computers from Dell. We then set these up with user and machine settings and then install our software on it to sell to out customers. I've set up ...
1
vote
2answers
56 views

A button to copy your email address to clipboard in Mac OS

My e-mail address is long and every time i get asked to insert it somewhere, i spend time writing it and reading it twice before i submit it and still sometimes i send the wrong e-mail address. It ...
0
votes
0answers
38 views

Automating SMTP Configuration

The following is an excerpt from a series of instructions I am following as a list of company procedures they would like me to automate. Is the following achievable through command line/batch, and if ...
-4
votes
1answer
63 views

Can someone help to make this script [closed]

Can please someone help me to make script for multi screen command at startup here is what it is cd /home/bhop1/serverfiles screen ./srcds_run -console -game cstrike -tickrate 100 -pingboost 2 +map ...
0
votes
0answers
72 views

How to automate software registration via batch or script

We use a program called vspace created by ncomputing. This allows for example 4 stations on a single host machine. So, each time this is installed we have to fill out the registration form which pops ...
0
votes
0answers
44 views

Batch file to add specific string in a XML file and zip it to TAR afterwards

To start, I'm not a real hardcore programmer so bear with me. I searched the web for help and I got already some steps further to completion. What I'm missing, how to add a specific line after ...
-1
votes
2answers
113 views

windows 7 turn off sounds via cmd line or powershell

Im looking for a way to write a script hat will turn off sounds. The sounds i would like to turn off are the start navigation sound and the play windows start up sound. is there any script that can ...
0
votes
1answer
42 views

rsync --backup-dir not getting changed data - instead it is going to the original backup location

I'm not sure why this is not working as expected. I have a full rsync backup of /scripts/source in /scripts/full and want to put differential backup into /scripts/diff However, when a file is added ...
1
vote
1answer
90 views

Using Greasemonkey Scripts without Greasemonkey

I'm running Firefox in Linux x86_64. I'm wondering if it is possible to use the Greasemonkey scripts without using Greasemonkey. If the source of the scripts are available, is it possible to use them ...
0
votes
2answers
57 views

List of MAC addresses for 10 machines

I need to list of MAC addresses for a 10 computers having Windows 7 installed on them. These are named in a series like training1 - training10. There IP addresses are on DHCP mode and update every ...
0
votes
2answers
25 views

add text (and possibly images) to illustrator via script

I'm hoping to create (or better yet, find) a script which can populate an illustrator file or the like with text from another file. The goal is to produce a printable sheet of prototype ...
0
votes
1answer
88 views

ControlC doesn't stop .cmd script in Windows7 CMD window

I work with several Windows7-64 systems. In all but one, typing ^C into a CMD window running a .cmd file, invariably (and expectedly) stops the program. More importantly, if the .cmd script launched ...
0
votes
1answer
37 views

Trace web redirection in bash script

I want to make a script to download the image at best resolution (not the preview image) from a deviantART link, as if I clicked the "Download" button. However, it seems that deviantART redirect the ...
0
votes
2answers
69 views

How can I get a script to run constantly on Mac OS X?

I would like to do this: When the application VLC is open and I press the space bar, it pauses the video and an itunes starts to play. Then spacebar again would resume the workout video and pause my ...
-1
votes
1answer
53 views

Is there a script to change ip address to bypass filtering?

Is there a script to change ip address to bypass internet filtering? as I know programs like freegate change the ip address to bypass internet firewalls.I want to write a script to do it by myself. ...
1
vote
1answer
150 views

Is it possible to autocrop black borders of a video with ffmpeg?

I think it has a "blackness" video filter, which can determine if a picture sequence is black. Maybe it also has a filter to determine crop values automatically to remove black borders form edges of a ...
0
votes
0answers
21 views

I need a dynamic script for changing Host IPs depending on computer name that I can shoot over the network

Does anyone know how to make a Batch/Script, that I can modify, for looking up the host computer name and build the IP and gateway off of it. we have a simple setup of computer name refers to ...
0
votes
0answers
16 views

Script automatic user creation on a multipoint Server

Is it possible using a script to create users automatically? Example: An Excel file with a column (Name) and column (Name) The script uses this data to create a login and generates a random password ...
0
votes
0answers
17 views

Ways, means, options & approaches to auto click “more..” links/ buttons on opened webpages/ urls?

Different ways and means to auto click ..more.. links/ buttons on opened webpages/ urls? When I go to events like this on Meetup or Even brite I like to review who are the people attending and try ...
2
votes
1answer
163 views

Variable in WinSCP script

I'm asked to automate some SFTP download processes via WinSCP. I'm not familiar with WinSCP scripting. ftprun.cmd: C:\Program Files\WinSCP\winscp.com" /script=D:\testsftp\ftpscript.txt ...
0
votes
1answer
64 views

Batch file to open 4 or 6 internet explorer screens and place them by dividing the desktop equally

I intend to write a script that can open 4-6 IE screens that can be automatically be placed on the desktop. So essentially all of them will get equal space on the desktop. I am aware of the command ...