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
votes
1answer
60 views

Batch Launcher With Variables

This batch launcher was created so that batch files won't launch a command prompt window... Now that i'm adding more variables to it, it's not working... I'm launching the VBScript like so; wscript ...
2
votes
2answers
38 views

quotes around filenames confuse bash script

I am writing a script that applies a command to loads of files. The way I automate this boils down to #!/bin bash for in_file in ${PWD}/*/*/*.txt; do out_file="${in_file//in/out}" ...
1
vote
3answers
40 views

Is there a tool that could help me use my Linux scripts in Windows? [duplicate]

I am new here. I would like to know if there is a tool that would help me use my Linux scripts in Windows? I am more comfortable with Linux commands than Windows. I also tried to download a software ...
1
vote
3answers
81 views

Tool to record an interactive bash session to shell script

Is there a tool to record an interactive shell session to a shell script? For example if we entered in a terminal: interactive2sh reconfig_foo vim /etc/foo.cfg ibar^ESC:q /etc/init.d/foo restart ...
0
votes
1answer
22 views

Troubleshooting HTTPD permission denied errors?

I'm attempting to run a grep within a shell script file from my web browswer (it's called from a PHP file). I'm able to run the shell script on the command line but when I attempt to run it through ...
0
votes
1answer
31 views

Delete all login.keychain files

Does anyone know a way to script the deletion all login.keychain files from all user directories on Mac OS X? This is a lab environment bound to AD, and when a user changes their password, without ...
0
votes
0answers
63 views

find command with exec sh doesn't work in shell script but in commandline (raspberrypi)

I want to find "old" folders in /volume1/photo/ipcam which are named like "????-??-??" and move corresponding folders within dropbox (with the same directory structure /ipcam/...) to the subfolder ...
0
votes
0answers
23 views

how to hook the start of a virtualbox VM with a script

I would like a script to be runned when I start a virtualbox VM, in order to update the configuration of the VM automatically from some information on the host. This is for testing. If the host is ...
1
vote
1answer
71 views

How to create destination directory structure dynamically when using mv with wildcards in bash?

I'm pretty new to BASH scripting and I'm looking for an elegant way to solve my task: In a given directory certain files regularly have to be sorted into subfolders. The name of the files has a fixed ...
0
votes
0answers
16 views

goto inside alias is working only in one way

Why this is not working? #!/bin/csh goto skip_background run_in_background2: echo inside background goto back_from_backgroung skip_background: echo skipped alias run_in_backgroundx 'echo aliass \ ...
1
vote
1answer
51 views

Search for a directory and delete it

I want to search the c: drive for the existence of directory called XYZ. Then I want to delete it and all of it's contents. There will be multiple directories named XYZ at different levels in the ...
0
votes
0answers
27 views

How to end unix app using terminal script

I'm piggybacking on this post: How do I close an OS X application from the command line using a alias defined in my .bash_profile? I am trying this to close a unix executable. But it doesn't work. ...
0
votes
1answer
49 views

How to run a batch script which is on a server, but it should be run on a PC remotely

There are many batch scripts on one of our servers that are shared to everyone. These are scripts like Robocopying, portable apps, etc. I am in tech support, and when someone asks me (for example) "I ...
0
votes
1answer
30 views

Check for syntax of BSUB in bash script

I am trying to submit a job via bsub linux utility using this bash script titple launchparse.sh: #!/bin/bash #BSUB -W 80:0 #BSUB -R rusage[mem=4000] #BSUB -J "myarray[101-150]" ...
0
votes
1answer
319 views

How to automate Checkpoint firewalls rules implementation?

I HATE CP with a passion beyond belief... I mean, why, WHY you couldn't include a command line interface that allows me to grep a CSV file in which I'm requested rules, format them properly and then ...
2
votes
1answer
39 views

Simple find and copy script for linux [closed]

I'm quite a newbie to scripts in Linux. What im trying to get is a simple script that finds a file by its exact name, then copy that file to a different folder. So Essentially it should work like ...
0
votes
1answer
52 views

How can I run a batch file only one time per comptuer?

I have a batch file that I want to push out to make some changes, but the changes take a while and only need to be done one time, how can I manage this?
0
votes
0answers
33 views

Starting a Script with Nohup inside another Script

I have a server that runs several scripts, and every once in a while we receive an autogenerated alert mail saying that some are stopped. (It doesn't matter the reason.) Then we manually start all ...
0
votes
0answers
61 views

Robocopy From Folder A - Only differences between Folder A and Folder B, to Folder C?

I have a system setup where 2 folders on separate drives / locations are normally mirrored via DFRS. This works perfectly and I have no issues with this. However, the system that owns these files (a ...
0
votes
1answer
28 views

Linux firing subshell and stopping whole script

How to make it work? #!/bin/csh newgrp user_grp2 echo ok "echo ok" is not executed until I write exit in the console. This is sample code. How to make it work? I ask in another way: when i run ...
1
vote
2answers
19 views

How to interrupt my script?

I use the following script (which I start from at command) as an alarm: #! /bin/sh set -m while true; do paplay /usr/share/sounds/phone.wav done & I want to bind a key to stop this alarm. Please ...
0
votes
1answer
97 views

Using START /wait with MozBackup batch scripts

OS: Windows 7 64-bit I have three batch files. FirefoxBackup.bat ThunderbirdBackup.bat Firefox_Thunderbird_Backup.bat The script inside Firefox_Thunderbird_Backup.bat is shown below: @echo off ...
0
votes
1answer
51 views

Rename a dynamic folder in windows using batch script?

C:\Users\xxxx\Downloads\CarepointServiceR2_CarepointServiceR2_**109**_artifacts The Number which is highlighted is dynamically changed each and every day.I have to rename this like ...
2
votes
1answer
385 views

BGinfo not updating desktop

I have attempted every method of automating bginfo to run at logon unsuccessfully on my Windows 2012 R2 server. I though it was a scripting issue until I manually specified the path to write the image ...
0
votes
0answers
31 views

Powershell not exiting when called from Orchestrator

I'm trying to run a powershell script from orchestrator. The script works fine from my interactive prompt but when run from a orchestrator runbook it never exits and the overall runbook appears to be ...
2
votes
2answers
70 views

Is it possible to execute scripts on embedded linux devices (i.e: DSL routers)?

Folks, I wanna find a generic way to run a (simple bash) script on boot sequence of a router with embedded Linux. I have read about ways to do this on devices like: DD-WRT OpenWRT any NAS like ...
0
votes
0answers
26 views

List of LangID KLID input layouts codes for Windows 7/2008

There is one similar list for Windows XP/2003 here. Is anybody aware of a version of such list for Windows 2008/7 mentioning valid input locale ID strings for all languages and keyboard layouts? ...
0
votes
1answer
48 views

In Html What is the difference between the “id” and “name” of an element? [closed]

I would have posted this to StackOverflow but I'm currently unable to post questions there so I was wondering what is the difference between the ID section and the Name section on tags such as: ...
0
votes
2answers
37 views

How can I swap a file in and out of a directory, in windows 7?

My brother and I play this game on the same computer, but we have different in-game configs Our in-game key binds and some other settings are different, and the game does not support separate ...
1
vote
0answers
50 views

Modify URL Before It Is Loaded On Google Chrome

Every time I load a YouTube video, I find myself first appending &hd=1 to the end of the URL so that the video plays in HD automatically. Over time, this gets annoying, so I would like it to be ...
0
votes
0answers
62 views

Cygwin can't execute Shell script

I am trying to execute a Shell script using Cygwin. When I type this in the Cygwin terminal: sh build-native.sh I get this: build-native.sh: line 2: ndk-build: command not found It's a script ...
1
vote
1answer
145 views

Powershell: how to get logged-in users list in active directory?

I need to generate this table: Computer | User | last log in date(never) This one asks for username for each user account and returns only ad server name against which the user was last ...
0
votes
1answer
670 views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
2
votes
1answer
125 views

Autoit: run a program selected with FileOpenDialog?

I need to make a script that allows a user to run a software with certain parameters (that should be typed in). So, first step, select the exe. Second, a text input box should allow the user to enter ...
0
votes
1answer
246 views

How to refer to a file in %APPDATA%\Folder in AutoIt?

I need to refer to a file in AutoIt, let's call its location %APPDATA%\folder\file.txt How can I call to it in AutoIt? I've seen %APPDATA% referred as @AppDataCommonDir in it, but I can't get the ...
0
votes
0answers
96 views

AHK script that can loop sending keys

I'm trying to make AHK scripts but seems I'm inexperienced at this and can't get anything to work. I have 2 windows of Chrome open at same time: one I'm using and other inactive in the background. I ...
0
votes
1answer
32 views

Save session using shell command in KDE

I can save my KDE session using the KDE start menu. But how could I achieve to save my session by shell command ?
0
votes
0answers
19 views

How can I get a list of incoming Radmin connections?

I have a growing problem where users are connecting to production servers (as they should), performing work, and closing the Radmin Window without logging out of Windows. Asking people to change has ...
-1
votes
2answers
52 views

Is Dropbox a good place for my shell scripts? [closed]

I know the "official" place for my own shell scripts is the $HOME/bin folder. But i would like to use a Dropbox folder instead and then just simply append it to my $PATH. Something like ...
0
votes
1answer
16 views

automatically launch/open a file when it changes

OS: OS X Lion Shell: zsh I'd like to automatically launch/open a file when it changes. Background: i'm working on a windows vm, generating pdfs. Syncing via dropbox and when a file changes on ...
0
votes
1answer
46 views

Log IP address obtained by DHCP Server-Ubuntu Desktop

Would there be a way I could write a script that records the dhcp IP's that the computer running Ubuntu obtains everytime it obtains a new IP?
0
votes
0answers
43 views

Keep music library (apple lossless) in sync and converted as another format (flac)

My music library is arranged like: /data/music/Artist_-_Album[alac]/*.m4a I need to be able to keep a copy of these in another format (apple lossless) and I'd want that like: ...
0
votes
1answer
52 views

Bash two text files comparision script

Given two files, I want to write a shell script that reads each line from file1 and checks if it is there in file2. If a line is not found in file2 it should keep it lets say in a table TAB1. Also, if ...
0
votes
1answer
63 views

“Listen to device” Autohotkey need advice to finish

In all honesty I have no idea what I'm doing and I could really use some help I'm trying to turn "Listen to microphone" on and off with the use of the "end" key and have a desktop shortcut. I've done ...
1
vote
2answers
59 views

How to Add Scripts to Path?

I've stored commonly used powershell scripts at %USERPROFILE%\Bin. I created a USER_BIN environment variable which I added to the user PATH environment variable via Control Panel > System and ...
1
vote
1answer
61 views

Set IP Address based on User Name

So I have a script from my old XP installation that sets the IP address based on what the username is. Here is the script: 'Get Username set objNetwork = wscript.CreateObject("wscritp.network") ...
1
vote
1answer
60 views

Send HTTP request to website with password and username, then record results

I need to record certain numbers (temperature and others) from a web-based monitoring service (LaCrosse Alerts). However, you must login to use this service. I have an account, and am starting to ...
0
votes
1answer
61 views

Simple bash gpg update script

I have a text file in which I save all my important personal data like all my accounts' passwords and my credit cards' PINs in case I forget those. Obviously, that file needs to be encrypted, so I ...
0
votes
2answers
67 views

Script to copy text including today's date into clipboard

I'd like to know if its possible in Windows for a script (or similar) to be written that will copy today's date and specific text into the clipboad, in the following format: dd/mm/yy - xx - xxx ...
0
votes
1answer
37 views

Create script to login and change time on unix Darwin

I work for a non-profit and recently had to take on some sysadmin responsibilities, and and it is a new area for me. We have a Apple X Server that is running Darwin, and from time to time, especially ...