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
3answers
37 views

Have the command prompt launch an application like Notepad and block until it is closed

I have a Batch script I essentially want it to present the user with a notepad window opened with a configuration file for the user to edit each time they run the script, and I want the Command Prompt ...
0
votes
0answers
8 views

Linux Mint 17.1: Execute script when shutting down or rebooting

Under Linux Mint 17.1, the InSync app slowdown every shut down and reboot actions. If InSync is not running, Linux Mint shuts down is less than 5s, if InSync is running it shuts down in 60s cause ...
0
votes
1answer
27 views

Generate an error log from Powershell

I created a script to assist in mass editing permissions inside an extensive folder structure, based off a list inside a CSV file. The script works as expected, but for several of the folders, I know ...
1
vote
0answers
15 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: ...
0
votes
1answer
33 views

Counting specific words within a batch of Word documents

I need a count of the number of times an acronym (e.g. ‘ABC’) is used in a collection of word documents. The acronym is always three letters and in block caps. All the word documents are contained ...
1
vote
1answer
29 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.
1
vote
0answers
18 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' ...
1
vote
3answers
14 views

using tr from coreutils for windows

I have to transform contents of file from \ to \\ on Windows in script. So I got Coreutils and tried to use tr \ \\ < file_in > file_out on Windows CMD, but \ in file_out remainde \ instead of ...
0
votes
1answer
31 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 ...
0
votes
1answer
32 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
29 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 ...
3
votes
2answers
74 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 ...
2
votes
1answer
13 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: ...
2
votes
2answers
32 views

How can I find what a Windows PC thinks its name is, given its IP?

How can I find out what a remote Windows PC thinks its host name is, given its IP? From Windows cmd.exe or a Linux shell. I'm not interested what a DNS server thinks the host name is for an IP, just ...
0
votes
0answers
15 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 ...
0
votes
1answer
41 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 ...
2
votes
1answer
135 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 ...
0
votes
0answers
9 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
10 views

GPO Office Installation - Script runs on PC, How could I get it to appear when a user logs in? [migrated]

I currently have a GPO created that installs Office 2010 for users during startup of the PC. This script is set to run for specific PCs. Is there any way that I can get the script to appear and run ...
0
votes
0answers
8 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 ...
0
votes
0answers
8 views

creating a script for editing a “my_clippings.txt” from Kindle

I'm looking for a way that would allow me to erase all unnecessary stuff from the "my_clippings.txt" on kindle. Usually I copy and paste my citations from a book to a onenote notebook, in order to ...
0
votes
1answer
19 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
21 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 ...
-2
votes
0answers
23 views

run multiple commands from a file after logging into putty from a bat filee [duplicate]

I have written a bat file in which I have the following: putty.exe -t -load "ABC" -l username -pw password -m "C:\Users\pathasai\Desktop\abc.txt" In my abc.txt I have written some commands which I ...
1
vote
1answer
92 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
26 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
45 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 ...
0
votes
0answers
8 views

Is there a system to generate odt documents from a markup-like language? [migrated]

I would like (well, am forced by my work environment) to create ODT documents (really MS word docs, but we can get there from ODT). However, I don't like the WYSIWYG document creation paradigm. I like ...
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
19 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 ...
0
votes
1answer
20 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 ...
1
vote
0answers
41 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 ...
1
vote
0answers
12 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
37 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.
-1
votes
4answers
49 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
votes
2answers
59 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
26 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 ...
0
votes
3answers
27 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
1answer
18 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
2answers
73 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
25 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
2answers
66 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
31 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
0answers
14 views

Wget which stops when it has a download limit

I have over 200 wget in screens on my server. I set a download limit in each low wget: --limit-rate=1K. The only problem is that after one hundred seconds, he considers as a finished one, so this ...
0
votes
2answers
186 views

export installed certificate and private key from a command line remotely in windows using something besides the certmgr.MSC tool

I need to be able to remotely export with the full cert chain and private keys an installed computer certificate on a windows server. The cert is used for IIS, and I want to use it for an apache ...
0
votes
1answer
35 views

Powershell No Logon Servers Available

I have one deployment server A, my local machine B and the server I'm accessing C. When I'm running a test script from B -> C it's successful. When I'm running that same script from A -> C it fails, I ...
0
votes
1answer
29 views

Script to delete all non-admins with launchd or logout script on OS X

I've found a number of articles that touch on this subject but they are not running for me or perhaps because they are years old they do not work OS X 10.10 Yosemite. In short we run Deep Freeze but ...
0
votes
0answers
31 views

OS X Script to delete all non admins with launchd or logout script

I've found a number of articles that touch on this subject but they are not running for me or perhaps because they are years old they do not work OS X 10.10 Yosemite. In short we run Deep Freeze but ...
0
votes
0answers
39 views

When a USB is plugged in, automatically backup files to USB on a mac

I have a USB with the name Backup USB, when I plug it in, it should copy over the entire directory (and recursive directories) ~/Documents/uni/ to the USB. I understand I could use Dropbox, Google ...
1
vote
1answer
101 views

How to run a bash script and display any output in Conky?

The Bash script I’d like to run in Conky is a loop so only needs to be run once. It’s a monitoring script in case my VoIP router goes down. ${execi 3600 /home/justin/pingvoip} Conky doesn’t want ...