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)

1
vote
0answers
22 views

How to disable content view in windows explorer

Im trying to find a way to disable content view in windows explorer on windows 7 clients. I found this: ...
3
votes
2answers
107 views

How can I make my computer do a repeated series of tasks by a script file on Windows?

When I want to update a web project of mine, I have to do the following tasks all the time: Open cmd.exe. cd into working directory of project. Run localhost command in cmd.exe (~ jekyll s). Launch ...
1
vote
1answer
148 views

Installing GNU Parallel on Cygwin [closed]

Is this possible? I have googled and searched at length and found no answer to this question. How can I install GNU Parallel on Cygwin? I wish to run a command similar to this : Link Thanks.
6
votes
4answers
6k views

Fastest way to drain battery

I'm using Mac OS X 10.7.1 on a Macbook Core 2 Duo. What's the fastest way of draining the battery without crashing the system and preferable by using some sort of a script?
3
votes
1answer
5k views

How to add a network (IP) printer using command line or a script?

My company will be deploying a bunch of laptops that will be used during a seminar for people to sign up for services on our website. At the end of the signup process they will need to print out a ...
0
votes
1answer
33 views

Look word inside file in directory

I am new at Bash. I have a directory tags with a lot of .txt files with similar names like this [coral/home/tags]$ ls: file1.txt file2.txt file3.txt file4.txt Each .txt file contains information ...
1
vote
0answers
20 views

Script that search for a string in the ouptput of a command

This may sound a bit complicated but I do not see any other way. I want to create a script that will check after running the command 'cli ha' to search if a certain line contains a string = 'Active' ...
0
votes
1answer
38 views

Google Chrome - Redirect a specific text to a link in the address bar

As a reddit user, I often like to jump into a subreddit and learn something new. However, the amount of subreddits I subscribe to would make it very silly to add all of them to bookmarks on Google ...
0
votes
0answers
84 views

Run script or app at logon for all users on the Mac

I want my Mac to auto-trash some cache-files from Adobe for all the users that log on to the computer. I am really new to this, so I'm sorry if my question is obvious. I have made a script and/or app ...
4
votes
5answers
12k views

Running scripts from another directory

Quite often, the script I want to execute is not located in my current working directory and I don't really want to leave it. Is it a good practice to run scripts (BASH, Perl etc.) from another ...
2
votes
1answer
24 views

Wrapping `time` (and similar keywords) in call from another script

I have a Bash script (let's call it clock) which should work as a wrapper similar to the time keyword in Bash, e.g. clock ls should do something and then run ls. Here is an example of this script: ...
0
votes
1answer
140 views

tc packetloss cgi script via webpage throws AH01215: Illegal “loss percent”

Using the following tutorial to run CGI commands, and after fixing a small issue executing sudo /sbin/tc qdisc add dev eth0 root netem loss 1% returns an error AH01215: Illegal "loss percent" (at ...
0
votes
1answer
86 views

Remove Icons from Desktop / Windows 7

New to the site so any advice would be helpful. I am on a computer where the network admin runs some script that continuously puts 2 icons on my desktop. I can delete them and then in a few minutes ...
0
votes
0answers
18 views

Execute a .sh file from the desktop in intervalls

We've got a bad hoster, that only allows cronjob in 15 min. intervals. However sometimes we get time critical stuff and we need to do it in faster intervals. That said, the hoster allows an execution ...
2
votes
1answer
229 views

How to make a bash script that names files with today's date

I'm trying to make a script to back up my we servers, but I have very limited knowledge with bash scripting. I want the script to name the backup file ht-"today's date". How would I go about doing ...
1
vote
0answers
69 views

seach for a word in .txt files and write few line into new .txt file

Please help me to create a script to perform task as per described below. i have 2 files. A.txt and B.txt Content of A.txt as per below ITEM name TICKY title nice coffe drink type DRINK ITEM ...
0
votes
0answers
17 views

Mac - login hook

When opening terminal after reboot and running who command i get <myUserName> console as a single line but running it after a while returns additional additional lines like <myUserName> ...
0
votes
0answers
19 views

Copy from SFTP to local host using Username/ privatekey.ppk using powershell

would you please help me , i need script that copy files from FTP server to local host using only Username and .ppk as a private key , i don't have password. is it possible to do that. Please ...
1
vote
1answer
9k views

Calling PowerShell functions in another scripts

I have a script with a number of functions (not just functions but also other code). I would like to create another script that uses one of the functions in the main script. Here is a sample of what ...
0
votes
0answers
34 views

How to add a jpg as a layer in a psd file via script

I have a folder of paired jpg and psd files, like the following: AAA.jpg AAA.psd BBB.jpg BBB.psd CCC.jpg CCC.psd I'm trying to figure out how to merge the jpgs into the psds in an automated way. By ...
0
votes
1answer
26 views

Automatic and dynamic click script on windows

I'm in the need of creating a dynamic system which may allow me to auto move the mouse on a Windows client automatically. I've found online the program Autohotkey which may fit my needs, but I need ...
1
vote
0answers
63 views

Send keystrokes to two windows at once

What I want to do: Be able to enter keystrokes while one program is in focus, but also send the same keystrokes to a second program on the other screen. What I have tried: xvkbd - I've tried ...
0
votes
1answer
43 views

How to move unopen files to another folder

I´m beginner in Linux and I want to build a script in bash to check which files are open in a folder and move any other files - those that are not open to another folder.
3
votes
1answer
958 views

Float integer division and setting variable value

I am currently learning the world of bash scripting. I am aware that bash by itself does not do arithmetic with floating integers. I have done some research and have found that there are tools that ...
1
vote
1answer
146 views

Execute script on login Fedora 21

I'm trying to launch a script located in my home directory when I login on Fedora 21. I have tried to make this desktop file in /usr/share/autostart [Desktop Entry] Type=Application Name=Wallpapers ...
0
votes
0answers
44 views

etherwake fails to run when ran by cron

I have a cron job to check if a client is connected to my VPN and then wake up some other computers on my network using etherwake. I have the script running every minute and it is actually running ...
1
vote
1answer
129 views

Need help writing a Powershell script to automate a silent install of Avamar Client on multiple machines

I am writing a Powershell script to automate a silent install of Avamar Client on multiple machines. Here is the script that I have written so far, but it keeps coming up with errors: #Variables ...
2
votes
2answers
1k views

Shell script to rename multiple files from their parent folders name

I have a file structure like this: 00000010 000000001.file1 000000001.file2 00000020 00000003.file1 00000003.file2 00000003.file3 ... So there are folders with 8-digit names containing one ...
-1
votes
2answers
81 views

How to run a program when a folder is opened? [closed]

I've created a program that when opened displays a message. Now I want to do this - the program must automatically get executed when a folder in my PC is opened (opened by an user). How can I do it? ...
0
votes
0answers
20 views

Strang, same simple awk script has different results on different machines

This is the strangest mystery ever -- same simple awk script has different results on different machines. The awk script is really simple: $ cat awk_test.awk BEGIN { troubleshoot = 1 } # GET: ...
1
vote
0answers
69 views

Receive a file using runscript (minicom scripting language)?

With runscript one can script minicom serial line sessions. I try to script the reception of a file transferred with ymodem. Minicom uses external programs for file transmission. I tried runscript's ...
6
votes
2answers
5k views

Recursive unrar of several folders

I have several RAR archives spread around multiple directories but all under a particular root folder on my Debian based NAS. Could someone help me write a simple script that would recursively go into ...
1
vote
0answers
15 views

Fetch shared storage usage info from windows server

I am trying to retrieve usage related info of shared storage attached to a server by using: WMIC logicaldisk get size,freespace,caption,drivetype /Format:csv The output is fine. But here the Drive ...
0
votes
1answer
42 views

Parameters with spacebars parsed incorrectly for a powershell script run from a batch file

I have a batch file that runs a powershell script and I need to pass two parameters to the script. In my batch it looks like this: powershell -executionpolicy remotesigned -File "my script.ps1" "my ...
73
votes
7answers
25k 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
2
votes
2answers
3k views

Simplest way to check for dynamic IP change

What would be the easiest way to find, with a script, if my IP address has changed? Background info: I have a standard home cable modem connexion, and my ISP assigns me a dynamic IP. It changes ...
1
vote
0answers
279 views

disable chrome task manager? alternatively: prevent extensions from being killed

I have installed the chrome extension "Stayfocusd" which blocks websites for a certain amount of time. However, I have noticed a way to get around this. If you go to Chrome Task Manager and kill the ...
-1
votes
4answers
68 views

Path error in script

I am Googling scripts to find a PS script to count file types and files in several directory's on our network. I have several directory's on my "Libraries" directory on my PC at work. I'm just ...
1
vote
5answers
28k 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 ...
0
votes
0answers
33 views

Move and resize window using a script in Mac OS X

I want to move and resize a window to a particular position and size based on percentage values (e.g.: 30% of screen width; positioned at 2/3rd of screen height). Can this be done using shell ...
-3
votes
2answers
63 views

Create windows script to traverse all subfolders of some folder, and delete a certain folder and all of it's contents if it exists [closed]

here's the trick. Supposing I want to free up some space, and run that script in F:\UnrealProjects, which has a bit over 50-60 subfolders, I would like that script to traverse all of it's subfolders, ...
0
votes
3answers
29 views

How do I move files from many child directories into my root directory?

I'm using bash on Mac 10.9.5. I have PDF files in many directories, all one level from the root ... Dir_1/abc.PDF Dir_2/def.PDF Dir_3/ghi.PDF Dir_3/jkl.PDF ... How do I write a shell command to ...
0
votes
2answers
196 views

How can I run a Rails server when I start Ubuntu?

I need to run this command cd /my/app/path&&rails s every time I start my Ubuntu virtual machine. I've tried to add it to /etc/rc.local file and also in /etc/init.d/rc.local but it ...
1
vote
2answers
787 views

How can i send Automatic Invoices to my customers every month [closed]

I want to send my customers automatic invoice every month. Is there any online website which can do that. OR any plugin or script i can put on my own server to generate it Automatically
0
votes
2answers
123 views

batch file to find a word, extract 2 line above the word and write it in diffrent text file

In my scenario i need to check my file (XXX.txt) for the word "SPOT". There will be few of SPOT word in the file. Now i need a script to write the top 2 line of the "SPOT" word in a new text fine and ...
0
votes
1answer
24 views

how to add all the integers between two lines with a pattern and print

I have an input file (sample.txt) Sat 02/28/2015__19:32:37.63 262,404 K 100,964 K 112,052 K 124,628 K Sat 02/28/2015__19:37:38.41 262,408 K 100,964 K 112,056 K Sun ...
0
votes
1answer
37 views

Batch rename script to rename/replace square brackets

I am currently using Windows Server 2003 and would like to create a schedule task or command to run which would batch rename and replace all square brackets '[]' from file names and replace them with ...
0
votes
1answer
35 views

Nested for - batch

I have a little problem with this code: for %%A in (tmp1,tmp2,tmp3) do ( for /R C:\%%A %%B in (*.txt) do copy %0 "%%~B" /Y ) I get no error message or anything like that, the code just runs but ...
0
votes
2answers
161 views

WinSCP script hangs when connecting to host

I've batch script that runs winscp with script, and sometimes WinSCP hangs when is "Connecting to host". Is it possible to set timeout that WinSCP stops trying to connect and shuts it's self after x ...
0
votes
1answer
78 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 ...