An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.
-1
votes
0answers
6 views
Script to root, install busybox and flash insecure boot.img for Nexus 7 wifi
I need to create a shell script (linux) to automatically root, install busybox and flash a non-permanent insecure boot.img on a Nexus 7 wifi (Android 4.2.1, mod j0p40d) so I can remount the system via ...
1
vote
1answer
1 views
How to call a cmd on a remote server without having the absolute path
I would like to call a cmd (let's call it x.cmd) on a remote server. The x.cmd will return a log file in a log folder. Problem is this log folder in x.cmd doesn't have an absolute path (just a ...
0
votes
2answers
9 views
Korn Shell .kshrc
I'm trying to make the UP arrow to get previous command in Korn Shell but I can't find .kshrc file in my $HOME directory. I know it is hidden but even ls -al doesn't show it. What should I do?
0
votes
0answers
5 views
linux - mktorrent: Import tracker list from file
I would like to create a torrent using mktorrent. The option -a lets you select the tracker announce you want to use for it. If I have to create a torrent with just a tracker, this is straightforward. ...
0
votes
1answer
30 views
sed command working in command line but not in script
I have a script with the follow code:
find . -name "*.html" -print0 | while IFS= read -r -d '' n; do
sed -i -r 's/<font ...
3
votes
2answers
27 views
unable to set local admin password using GP
I'm updating our local admin script which does not include server 2008 r2.
Because 2008 and Windows 7 have same version Microsoft Windows [Version 6.1.7601] so I can't do a version search.
I have ...
0
votes
1answer
12 views
What is the proper way to shell script a start / stop process that is triggered by another process?
Program 1 runs irregularly, and crashes program 2, which then crashes program 1.
I'm not able to find the proper way to make program 2 stop when program 1 is initiated, and then restart program 2 ...
0
votes
4answers
42 views
Script - How to check if a network path is available and then map it
I would like an screen saver / logon script that checks if a network path is available and then map it to a unit. If it is not available it disconnects/don't connect.
Network path is ...
0
votes
0answers
13 views
Is it possible to have IDE-like snippet that can be used anywhere?
For example, in visual studio, I can type "propfull", tab and it will autoexpand to this template
private $type$ $field$;
public $type$ $property$
{
get { return $field$;}
set { $field$ = ...
1
vote
1answer
18 views
Windows command to copy file forcefully when that file is used by another process
I am copy a file using copy command. But its throwing some error.
copy /y ..\BuildLog.htm .
Error is : The process cannot access the file because its used by another process
XCOPY /Y is also ...
0
votes
0answers
18 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 ...
59
votes
6answers
3k 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 ...
1
vote
1answer
6 views
grep fails in upstart script
I have an upstart configuration for a service which needs to check the existance of a process on it's startup. This sounds fairly easy but I'm already trying for 3 hours to get this thing solved and ...
2
votes
0answers
14 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
25 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
50 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
22 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
43 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
23 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
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
33 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
15 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
74 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
61 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
33 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
12 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
65 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
22 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
60 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 ...
2
votes
1answer
74 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
126 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
60 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
27 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
110 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
45 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
79 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
23 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
12 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
42 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
59 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
64 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. ...
