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)

46
votes
6answers
13k 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
0
votes
0answers
51 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? ...
1
vote
0answers
48 views

Script to fire fn + f6 every time computer starts?

My laptop's touchpad has malfunctioned. Every time I start the computer, I have to manually press the keys fn+f6 to shut it off. How can I create a script which does this automatically on every start? ...
0
votes
1answer
191 views

Updating Chrubuntu 14.04 kernel on Acer C7 (currently 3.4.0)

There was another, similar question on this here, but it's for old ubuntu versions, and the script no longer works. While installing, the script works fine until: + vbutil_kernel --verify /dev/sda6 ...
0
votes
2answers
69 views

Can I create a Chocolatey installer automatically based on my currently installed applications? How?

I intend to reinstall Windows on my computer soon and I'd like to make the process of reinstalling all of my applications as seamless as possible. I know you can create a Chocolatey script that can be ...
0
votes
0answers
24 views

Script to email administrator when a duplicate IP is found on the network

I know this is a bit of a custom requirement but I was hoping someone currently has (or can put together) a script that checks for duplicate IP addresses on a network (something that might occur when ...
0
votes
1answer
39 views

Solaris: a simple script does not work, single command does

In my Solaris Illumos, I run a simple script: update_drv -a -i '[myhardware]' [driver] svcadm disable stmf svccfg import /mypath/myconfig svcadm enable stmf It does not work and gives me no ...
0
votes
1answer
64 views

script to delete duplicate files using md5

I want to write a script to find duplicate files in a given directory and delete the copy depending on the hashcode. When I run the script it deletes the copy and the original file. Here's my code: ...
0
votes
1answer
109 views

Script to enable/disable IPv4 on a specific network adapter Win 7

For reasons I don't wish to get in to at the moment I need to occasionally disable Internet Protocol Version 4 (IPv4) on my wireless card, then enable it some time later. Currently I go into the ...
1
vote
3answers
2k views

Any book recommended for learning bash script?

I have learned Java, C++, python. But recently I need to write some bash script. Is there any book for learning bash script? Not bash command.
2
votes
0answers
28 views

Testing RDP connections

Given hostname (+ portnumber) + username + password, how do I get a yes/no answer to the question: Can I connect to host with username+password? from the commandline or a script? Is this possible? ...
2
votes
1answer
1k 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 ...
0
votes
1answer
31 views

Popup notification for microhone mute

I need to create a script or a batch file to show a notification-like balloon (or a message or icon) when my microphone is muted and unmuted. I understand this can be achieved by task scheduled but I ...
0
votes
1answer
43 views

7-zip -v switch will fail to use cpu properly?

I have been using this script for years, back from when above 2 cores was a challenge in 7z and I had just offered myself a shiny i7: "C:\Program Files\7-Zip\7z.exe" u -m5=lzma2 -mmt=8 %1.7z %1 ...
1
vote
1answer
28 views

extract file content to mutliple files base on match pattern

I am new to unix. I would like to process this file. PP_NAME_1 jprovider|J Driver Provider|${J_DRIVER_PATH}/jcc;${J_DRIVER_PATH}/jcc_license_cu|${J_DRIVER_NATIVEPATH}|com.jcc.Connection ...
0
votes
1answer
28 views

Firefox with Firebug Sometimes Hangs in JSON Calls

Please see this: http://gisdev.clemson.edu/fireflies/ On my Windows 7 machine with Firefox 29 if I click on the year 2013 radio button (toward top right) then Firefox sometimes hangs and gives a ...
0
votes
1answer
31 views

How to use find to fill in variable in Shell script

I am making simple Shell script form some boring-ever-repeating job. Script changes directory correctly, and now I want to run other scripts based on argument I typed when running script. Other ...
2
votes
1answer
79 views

Powershell LastWriteTime is incorrect

I am running the following script to create directories based on the first 9 characters in the filenames in the directory and then moving te files into these directories based on their filenames. dir ...
0
votes
1answer
42 views

Getopts - command with multiple options

I have a command script i'm making and wondering how do i go about combining multiple options the general usage of the command is as follows: Usage: myCommand [-fpr] [-n count] [-s size] [-u user] ...
1
vote
1answer
109 views

Run Scribus script without GUI

I'd like to run a script to do some PDF manipulation in Scribus non-interactively, but I can't find documentation to say definitely whether this is possible, and if so, how.
0
votes
1answer
39 views

Best way to provision vSphere VMs remotely

Edit: Sorry, should have mentioned this upfront: looking for a Linux-only solution here. I'm looking for a way to automate the process of provisioning vSphere VMs remotely. I'm wondering what is ...
0
votes
2answers
73 views

How to display “Please Wait” while GPO startup script is running?

I have a GPO that calls a batch file as a startup script (Computer Configuration -> Policies -> Windows Settings -> Scripts -> Startup) which takes a moment to finish what it's supposed to ...
1
vote
1answer
36 views

ScriptBrowser for Powershell won't run

I'm trying to run ScriptBrowser for Powershell, but it won't run for me when I click on the shortcut (nothing happens). I tried right clicking on the shortcut to see what it is running, but instead of ...
14
votes
3answers
2k views

Multiple standard input? How?

From this commandlinefu post: $ diff <(wget -q -O - URL1) <(wget -q -O - URL2) Seems like multiple standard inputs but---if I remember my Linux Porgramming course correctly---this can't be ...
1
vote
1answer
42 views

Terminal command to include currently logged on user

I am trying to write a script that makes our network (active directory) users local administrator on their macs. I have the script that will do this: dseditgroup -o edit -n /Local/Default -a ...
5
votes
3answers
12k views

Does anyone have a Mac Terminal script to remove hidden files?

My car stereo can play music from USB flash drives, so I asked about copying MP3s from an iTunes playlist. That worked fine, but my stereo wouldn't play the MP3 files. I eventually put the flash ...
31
votes
12answers
52k views

Which command can I use to recursively rename or move a file in Windows?

What command in Windows emulates the recursive move / rename command from Unix?
2
votes
2answers
59 views

Windows: How to start application when the other finishes

I would like to launch an application automatically, always when some other application finishes. Is it even possible to perform? My specific situation is: User connects to remote desktop and then, ...
5
votes
2answers
10k views

How to list manually installed software packages in Ubuntu? [duplicate]

Possible Duplicate: How do you track which packages were installed on Ubuntu (Linux)? Hello, I'm using apt-get install to install various software on my PC. I have a handful of PCs that ...
1
vote
1answer
42 views

Delete all files older than a specific file name?

I want to be able to look for the most recent file ending in .backup, and delete ALL files that are older than that file (but of course keep newer files). Here is an example of a directory listing ...
0
votes
0answers
156 views

Running a Command in xterm Without the Window Closing [duplicate]

I am trying to figure out how to open an xterm and execute a command in the new window without the window closing. Ideally, I would like to be able to open an xterm, switch users, and source a .cshrc ...
7
votes
6answers
14k views

When to use Bash and when to use Perl/Python/Ruby?

We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
0
votes
1answer
31 views

mIRC parsing a name

Asked originally: http://stackoverflow.com/questions/23419961/mirc-parsing-for-a-name So I've been getting a bothersome someone who keeps using my nickname. What I want to be able to do is perform ...
0
votes
0answers
27 views

Combining a bunch of find commands into one command or script.

I was wondering how to combine a bunch of find commands into one. This is the list of find commands I want to run and in the order. find /path/to/folder/ -name '*Sample*' -exec rm -rf {} \; find ...
0
votes
1answer
71 views

Open browser window at specified screen / coordinates

A customer has a 6-screen setup for each workstation and would like various pages of a web app to be opened automatically in each of the screens on startup or invoking a shortcut. (The target web ...
2
votes
1answer
71 views

Script: forward all emails from inbox, after users sends 'request' (Outlook 2003)

I am looking for a Outlook (2003) script. What I need: I want to forward all my emails from mailbox-A (from a PC) to mailbox-B (on my phone). The catch is: This rule should only run, when I send a ...
2
votes
1answer
47 views

Start the script with sudo

I am trying to start the virtual machine(ORACLE VIRTUALBOX) using this script(script name:start_vm001.sh). START_VM=`/usr/bin/VBoxHeadless --startvm testvm001` EXECUTE_VM=`exec ...
-1
votes
1answer
32 views

Get value on perl script from another perl script [closed]

I have two perl scripts. The first perl script call another perl script, and then I want to get the result from the other script and use it in the first script to made a condition. I use: ...
12
votes
4answers
23k views

Change DNS with script

I need to frequently change the DNS server address, and for now I do it by opening 'network and sharing center' - 'local area connection' - properties - ipv4 - and then type the DNS numbers. Is there ...
5
votes
3answers
2k views

Delete all Files from Folder and Sub Folders

I'm wanting to remove all files from a folder structure so I'm left with an empty folder structure. Can this be achieved in either Batch or VBS scripting? I have tried a very basic batch command but ...
0
votes
0answers
17 views

Look for app/cache and app/logs directory and apply rules in /var/www/html

I need some help creating some bash script that help me on my development server by running this commands: HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | ...
0
votes
0answers
13 views

Run a service action with a file from a shell script

I use CloudApp and it has installed a handy service called “Upload to CloudApp”. I'm writing a build script that I want to hook into this service. Every time it is run I want it to upload the file ...
3
votes
1answer
67 views

Specify the shell variant in Emacs local variables for the file

How can I specify the shell variant for a file in that file's Emacs local variables, when the file is not a standalone program? Emacs allows me to specify that a shell include file should be opened ...
6
votes
2answers
13k views

PHP script can't run bash script. sh: Permission denied

I'm trying to exec a .sh script from PHP, however it is not executing. I checked the error logs, and I'm getting the 'sh: Permission denied' error. I checked under which user php is being run, and ...
0
votes
0answers
92 views

Write a small script to extract ms-exchange audit logs in csv format?

Background I'm using ms-exchange 2013 in my environment, and have a separate siem box which analyze logs produced by different systems (i.e exchange). The logs for exchange are internally stored and ...
0
votes
1answer
41 views

running for loop - but wait for string of words in log file to continue

so far I have this: for each in {01..10} ; do ./sb0$each/tomcat_sb0$each start;done that will start my apps at once, but I want it to wait until it reads one line in a file, what's the easiest way ...
0
votes
1answer
73 views

Cannot unzip with zip command line

I am having difficult unpacking a zip to a specific directory. I am trying to get all contents of subdirectory of the zipped file and not the parent directory. This is parent directory within zip ...
0
votes
0answers
21 views

creating a script or some way to realist items on ksl.com/classifieds?

Hi all I don't know if this is the place to ask this question but I am wondering if there is some way to make a script or some action to be able to relist items on auction websites like ...
13
votes
4answers
3k views

How to sync GreaseMonkey scripts between computers?

I have some great greasemonkey scripts for FireFox and would ideally have a way to sync them between computers. To some degree, it would even be nice to be able to deploy the scripts to PC's across a ...
0
votes
2answers
44 views

Making PS1 prompt refreshable

I want my prompt to be changed based on an output of a certain command. and based on the command result to add a color. example: run the command: cphaprob stat | grep local | awk '{ print $NF }'` ...