An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.
0
votes
0answers
6 views
ImageMagick Script Error: ': No such file or directory @ error/blob.c/OpenBlob/2644
I am trying to run the following script in terminal:
mogrify -resize 900x10000 *.JPG
mogrify -resize 900x10000 *.jpg
for f in *.JPG
do
echo "<tr><td><img ...
51
votes
5answers
2k views
How do perform commands in another folder, without repeating the folder path?
I was wondering if there's any clever way to do copy and move operations, or if there's a command to duplicate a file, without having to do a cd, then mv after, at the same folder.
For example, I ...
2
votes
0answers
11 views
File Maker Script Relative Cell Value
I'm new to FileMaker as well as Database administration in general.
In my table, every Record contains a link to an Adobe Illustrator file and two Photosho files. The layout speciies a button for ...
-1
votes
0answers
21 views
bash script merge and python slicing [closed]
here's my issue
I have 2 files generated in linux that has common output and were produced across multiple hosts with the same setup/configs. These files do some simple reporting on resource ...
1
vote
2answers
46 views
Script to disconnect mapped network location
I have a user who needs to map a certain network location to drive O:. Every so often, this drive loses it's map to O:, but will show up under different letters, such as H:, K:, and L:. The normal ...
0
votes
1answer
16 views
Writing a tcsh script to copy files specified in first argument to a specific directory
I'm trying to write a script in tcsh that will copy select files that I specify at the command line from one directory to another without having to write out the entire path of each file.
Also, to ...
0
votes
1answer
42 views
The outputs of ps and top do not match
I have a situation where I have a process, say script.pl (here it is), which seems to stick around in the output to ps auxw | grep script.pl, sometimes when load is heavy it sticks around for several ...
0
votes
0answers
18 views
Cannot run script automatically when connected to a network
I'm running an HP Mini notebook with Lubuntu 13.04.
I made a script that makes a text file with a list of nearest wifi signals, sends it to my Gmail account (with mutt) and then deletes the text file ...
0
votes
1answer
38 views
Shortcut for toggling the space bar's function
I'm trying to make an AutoHotkey script for making Ctrl+Space toggle the space bar's function. The default function is space. When Ctrl+Space is pressed, the function changes to em space. Search em ...
0
votes
1answer
20 views
Scriptable IRC client with per-channel encoding and autoperform settings
I'm looking for an IRC client that would let me set different encoding per-channel, not just per-network. It should be scriptable.
Currently I see those options
ChatZilla. Has the per-channel ...
1
vote
0answers
15 views
To know what's inside a Powershell cmdlet
Specifically I need to know how the Restart-Service cmdlet works.
For e.g when i'm writing
Restart-Service myservice1, myservice2
I want to know how it flows.
Does it stop both services before ...
1
vote
0answers
11 views
Photoshop scripting. Opening & Saving overlapping image stacks
I’ve been getting more and more into star photography and have recently been trying to develop a new style of stacking the photos and creating time-lapse videos from the stacked photos.
Example: ...
1
vote
2answers
26 views
Run python script from Finder rather than edit?
Max OS X. When I double-click on a python script it opens in the default editor. How might I make it so that when I double-click, or choose the script from Applications, it executes from the python ...
0
votes
2answers
41 views
bash - execute cmd2 each time cmd1 stdout yields specific string
I'm trying to run
WID=`xdotool search "Inbox" | head -1`
xdotool windowactivate $WID
xdotool key Up
each time stdout of
$ CAMEL_DEBUG=all evolution
yields "starting idle".
I've come up with ...
0
votes
0answers
14 views
How to Create One Installation Package from Multiple Debian Packages?
I have multiple Debian packages required to install Wine and Winetricks. I'd like to create a new package that will enable a user to click only once or twice (double click) and start a shell script ...
0
votes
1answer
53 views
Find, prune and delete files under Linux
find . -path '/mnt/ftp/ben/brc' -prune -o -iregex '.*\.\(docx\|xls\|txt\|pdf\|xlsm\|doc\|xlsx\|CVS\|csv\)$' -mtime +730 -delete
I need all docx, xls, txt, xlms, doc files older than 2 years from ...
-5
votes
3answers
72 views
Shell script that reads a file and executes a command
I want to write a script which reads a file and executes a command for each row in the file. This command contains a variable for which we need to pass each row in the file.
File has only one column ...
1
vote
2answers
57 views
How can I write a script to count files modified within a particular month?
I use a PowerShell command to count ZIP files modified within the past 30-ish days, that goes something like this:
(gci "\\servername\sharename\foldername\subfoldername\*.zip" | where ...
0
votes
1answer
31 views
How can I use a bash script to run nmap and capture both IP and hostname?
I want to scan my network; and return an output like this:
Network Scan for 192.168.0.*
192.168.0.1 computer1
192.168.0.2 computer2
192.168.0.3 computer5
echo Network Scan
nmap -sP -n ...
0
votes
0answers
11 views
Copy and email Etherpad content regularly
I use Piratapad as a todo list for our printshop with 100+ members, and would like to once a month copy all active issues from the list and email it out to our members. What would be the simples way ...
0
votes
0answers
8 views
Restart VNC on the same display from child script
I'm trying to write a script or program that is indented to be run by a normal user within a VNC session. The script queries the VNC server and some other system features and depending on certain ...
0
votes
1answer
64 views
Autohotkey - Want to launch program and bring it's window to the front
I want an Autohotkey script which launches a new instance of Chrome and brings that new window to the forefront (active window).
My script is:
#c::
Run "C:\Program Files ...
0
votes
1answer
21 views
Parse nmap output from vbscript to return only OS
I found a utility called nmap that queries an IP address and returns the (likely) operating system. In my tests it has worked perfectly. I'd like to embed it into a vbscript and call it as a ...
0
votes
2answers
59 views
Writing Unix script (bash) that creates a directory in the location specified at the command line
I currently have a Unix script (written in bash) that executes several commands to modify a group of files, which I specify with an flist containing their paths. The general idea of the script is to ...
-4
votes
0answers
34 views
Gmail Simulation Script Needed
So, every time someone applies to become an AM, they go through a 4 stage process. The third stage is what we call AM Simulations. At the beginning of the week, they're introduced to a team of 4 ...
0
votes
0answers
20 views
how to avoid this tesseract error! Cancelled repeat of length 0 due to Joined
Cancelled repeat of length 0 due to Joined
I am feeding thousands of jpg files into tesseract and for most of them it works fine, but sometimes tesseract gives the above error, and terminates my ...
1
vote
1answer
60 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, ...
0
votes
2answers
117 views
Bash script fails with “syntax error in conditional expression”
I'm new to bash scripting, and I just want to do a simple little thing, but everything I read online seems to not work for me!
So I have this script here:
#!/bin/bash
if [[ $1 = "32"]]
then
...
1
vote
1answer
52 views
Running script on boot
I'm trying to run a Python script on startup on a Raspberry Pi. I know that this can be accomplished by adding to various files. I plan to add to bashrc (worked previously, on similar attempts), but I ...
0
votes
1answer
23 views
sfdisk partition size in bytes
Kind of homework related so further reading is always appreciated!
Using sfdisk I have to specify the size of certain partitions in bytes.
For this I used
sfdisk -lub /dev/sdd
Which lists the ...
1
vote
2answers
105 views
Howto start an interactive script at ubuntu startup?
Based on Ubuntu core 12.04, I have prepared a bootable DVD. After booting (to console only), I can login as a user and start a script for installation of an embedded device:
sudo install_script
In ...
0
votes
1answer
44 views
How can i automatically (silently) copy files off removable devices?
I'm looking for a way to automatically have my computer copy all files (or specific files based on extension) from removable devices plugged in (USB sticks/HDDs/phones etc) to a designated folder on ...
1
vote
1answer
71 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
7 views
Script with path in Filemaker Pro 12
I'm using OS X 10.6 & Filemaker Pro 12; I'd like to have a script in FM to automatically open a .pdf file from a container field using Preview (dumping the file on the desktop) but it has to be ...
1
vote
0answers
21 views
How to get the page and paragraph number for all comments and tracked changes?
I have marked up a document with comments and tracked changes in Word 2010. However, I've been asked to restructure those comments and tracked changes to a single document with page numbers AND ...
0
votes
0answers
11 views
Run script when process exits on Windows?
Is there an easy way to trigger a script or executable when a process finishes or errors out?
I know there are plenty of 3rd party monitoring apps, and we're currently using a couple of those but ...
0
votes
1answer
41 views
rsync --exclude not excluding
I'm using rsync on Ubuntu 12.04 LTS with the following script to back up all of /, however, whenever I run the script (as root), the directory /backup is included, when it should be excluded:
...
0
votes
1answer
56 views
Crontab doesn't run my script Ubuntu
My script is located in /opt/restart-hlasic.sh
restart-hlasic.sh contains:
#!/bin/bash
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/
SERVER="XXX"
...
1
vote
1answer
63 views
What scripting/programming languages are default on Mac OSX?
I was wondering what programming or scripting languages come pre-installed on OSX? Particularly programs that can be run from the command line.
I'm planning on parsing some CSS, and outputting an ...
1
vote
1answer
42 views
Save login and password in secure location accessible from bash script
could anyone please list some options to save a set of credentials somewhere on a server where a bash file could access them? The script needs the credentials to log in to a server and collect data. ...
0
votes
0answers
37 views
Windows Terminal Emulator with powerful scripting language
I have to deal with a legacy application exposing a CHUI (Character UI, i.e. VT100) on Solaris.
Users access this via terminal emulation from Windows desktops.
They use macros (sequences of characters ...
1
vote
1answer
69 views
Unattended installation of a .pkg file in Haiku
Is there a way to do this from the command-line, additionally being able to specify the destination partition?
I tried to create an empty partition, and install the package onto that, so I could just ...
3
votes
1answer
23 views
Customize action when button is pressed on an external harddrive
I have a Transcend StoreJet external harddrive. It has a button on the outer shell which is used for synchronizing folders and files when it is pressed. There is a software that enables this function. ...
1
vote
0answers
41 views
bash add array to plist
I'm making a installable package via Cydia that will write com.intelliborn.intelliscreenx
to this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
0
votes
0answers
18 views
Liveheader/Curl script for reconnecting Netgear WNR2000V1 router
I need a Liveheader/Curl script for reconnecting my Netgear WNR2000V1 router for a program called jDownloader. I've tried asking on the official forums, but I haven't gotten a useful reply. Can anyone ...
0
votes
1answer
52 views
removing special characters from entire directory structure
I would like to know whether it is possible to REMOVE special characters recursively in powershell from all files in an entire directory structure?
for example if I have a file called:
my ...
0
votes
0answers
50 views
How can I tell if OS X is connected to a VPN network from the command line?
How can I tell if OS X is connected to a VPN network from the command line?
By running ifconfig without any arguments when I am connected, I see that there is a utun0 interface which appears to be ...
1
vote
0answers
53 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 ...
2
votes
1answer
40 views
Are script errors enabled by default in internet explorer?
I'm developing a website and I'm using a program called IETester to test by website on IE. However, when using IETester I get a script error about every 5 seconds, most likely due to some ...
4
votes
3answers
126 views
Windows 7 - How to run a script at shutdown but not at logoff
I was wondering if anyone knows how to configure a Windows 7 x64 Enterprise install that is on a domain to run a script if the user attempts to shutdown the computer - but I dont want the script to ...
