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
1answer
58 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
67 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
45 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
22 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: ...
11
votes
4answers
22k 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
15 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 ...
2
votes
1answer
56 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
12k 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
75 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
36 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
69 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
19 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
43 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 }'` ...
0
votes
1answer
63 views

Running a script from ssh, logging out and continuing the script

The overall question here is - how do I automate sshing into a machine, running a script, and exiting without killing the script? I know that this has been answered several times, but I'm not having ...
5
votes
2answers
11k views

How can I delete rest of the line after a specific string?

I'm looking for a way to search for a specific string e.g. '=UUID:' and delete it and all following characters per line. I would prefer a way/macro/addon for notepad++. But all other tools or scripts ...
0
votes
1answer
600 views

Install a Teamviewer Host Silently with Custom Password

So our company has the custom Teamviewer hosts that we can run silently with the /S switch. The issue is that we can't connect due to it not setting a password that we know. Does anyone have any ...
1
vote
1answer
34 views

How do I identify shell script execution vs dot execution

I'm writing a bash script that needs to run on the current process for it to be useful. That is, I want to make sure that the script was invoked with source script.sh or . ./script.sh and not ...
7
votes
4answers
17k views

How do I compare two files with a shell 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 it should output two files are different and exit. The files ...
1
vote
1answer
72 views

Creating a script to open and save a file

I currently have about five thousand 2D drawings, under many directories on one server, and all of them have a .prt extension. These files were created in the 90's using a software called CADKey. ...
3
votes
2answers
3k views

How can you automatically run a script after connecting to a VPN on OS X?

I have configured the VPN connection in OS X 10.7.3, but since the network I'm connecting to uses a corporate proxy, has custom Maven repository servers, and other network-specific settings (remote ...
0
votes
1answer
92 views

How do I write a batch script that iterates through all png files in all subfolders and does an action?

I'm looking to build a small batch script that executes the command line of pngout.exe So far I've got only this down for %i in (*.png) do "g:\myfiles\_pngout.exe" "%i" /s0 /c6 However, for that ...
0
votes
0answers
61 views

Remove from the transfer list when seeding completes

Remove from the transfer list when seeding completes + Remove Data File... When the torrent finishes downloading, hazel starts to process. The only problem Is I would like to seed. So I use the ...
4
votes
4answers
129 views

Download a pdf from a website every 24 hours?

I recently found G24, a pdf that The Guardian updates regularly with news summaries, which I can then print out. Is there a method to download said pdf every 24 hours? It has a static link, as they ...
0
votes
3answers
54 views

Copy completed files larger than 1024M to another directory

I am using transmission-daemon. These are on torrent completion environment variables supported by transmission-daemon as shown here. In the directory of the completed download, find and copy any ...
4
votes
2answers
954 views

How can I tell if OS X is connected to a VPN network from the command line?

How can I tell if OS X is connected to a VPN network from the command line? By running ifconfig without any arguments when I am connected, I see that there is a utun0 interface which appears to be ...
2
votes
1answer
101 views

Clean up filenames using data from a text file

I need to clean up a bunch of folder file names. Possibly even the file titles as well. I was currently using this Perl script to do so but I ran into some problems. If the file name already has ...
1
vote
0answers
44 views

Gimp script does not have permission to write a jpeg file

I'm trying to run a GIMP script to perform Error Level Analysis. I've downloaded the script (a `.scm file) from here. It does show up in the menu (Image -> Error Level Analysis), shows a dialog, ...
0
votes
1answer
173 views

SSH could not create directory /home/USERNAME/.ssh

My script is executing the below command: command = os.system('rdiff-backup --exclude "**.dropbox**" --exclude "**.ini**" --remote-schema "ssh -o ...
0
votes
1answer
14 views

Get a typing effect in a Google Doc via script?

Not totally sure if this is the right SE site for the question, but here goes. I want to have a publicly viewable Google Doc which is modified programmatically (a script somewhere) and others viewing ...
0
votes
1answer
843 views

ImageMagick's “import” command line program failing to take a screenshot from CRON script

Hello I wrote a simple command line script which is suppose to take my screenshot every 5 minutes. (using ImageMagick's "import" program) here is the script (shottr.sh): #!/bin/sh ...
1
vote
0answers
40 views

Creating multiple screens in a for loop to run parellel programs and sending commands to each

Before flagging this questions as redundant, i have read and tried every answer to similar questions with no success I have this loop where it traverses a directory structure, and runs a program ...
0
votes
0answers
21 views

Scan picture by folder by month

I bought a new printer HP pro 8600. With my old printer I could scan pictures,for every month there would be a folder by the name of the month and the pictures would be inside of this folder. The new ...
0
votes
1answer
175 views

Interact with remote “shell” from background script via SSH

I need to emulate the following with a script which is invoked by a web service run from a Linux server: Access remote AIX server via SSH Log into a Cache instance (if that's unfamiliar, pretend ...
0
votes
0answers
39 views

Batch Files - Script

I have a little .cmd script that executes few commands like mapping network drive, output some info to log file and copy the file on network including renaming the title based on date/time. This ...
0
votes
0answers
146 views

PsExec and invalid handles

I am trying to use a windows batch script that uses PsExec to execute commands on a remote machine. Periodically it has "invalid handle" and the script then fails. The script has not altered or ...
0
votes
2answers
88 views

Linux move files from specific directory one directory up and delete empty folder

I need to move files out from directory inside directory inside directory and remove folder that i move them from. I would need recursive script. Directory structure: ...
0
votes
1answer
70 views

How to extract the filename without the extension from a full path?

I'm trying to right my first bash script, and at one point a filename is passed to the script as $1. I need to extract the file name without the extension. Currently, I'm assuming that all extensions ...
4
votes
7answers
11k views

How to convert .xlsx to .txt?

I want to know if there is a Linux tool or a script available to convert .xlsx file to .txt.
3
votes
4answers
10k views

How do I make a script run upon startup of the Ubuntu machine?

I want to run /home/myuser/go.py How do I make that run in the background, everytime my linux machine boots up?
1
vote
1answer
668 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
1answer
63 views

Is there a way to find out if a Windows 7 workstation has updates turned off in the control panel?

I have a domain with a group policy to run updates every night at 3AM. If the computer is turned off, the next time a user logs into the computer, the updates are downloaded. When the users shuts ...
0
votes
2answers
129 views

Creating a simple custom apt-get/config script

As I play more and more with Ubuntu, I'm starting to see how I can automate the majority of the repetitive commands that I perform whenever I reinstall the operating system. Thus far, it's just one ...
3
votes
1answer
97 views

#!/bin/bash -e :: what is `-e`? other arguments?

I am a shell script coder that always opt to use shell as top level as part of my belt in creating website apps on the fly and have relied on my bash scripts if I want a project to be implemented ...
-1
votes
1answer
73 views

Execute command prompt file (.cmd) from within a PowerShell script?

What command do I need to put in a .ps1 file to execute setup.cmd and make it a forced install? I've tried to execute this command in powershell and its working: PS C:\> c:\setup.cmd ...
2
votes
3answers
104 views

How can I find folders containg x files of a particular type and output those paths on OSX

I have this script for OSX for finding folders that only contain one file, and if that file is an audio file outputting the path of the audio file find "$1" -type d -exec sh -c '[[ $(find "$0" ...
0
votes
1answer
90 views

VLC bash transcoding script destination directory

Well, I have such transcoding script: #!/bin/bash acodec="vorb" arate="256" ext="ogg" vlc="/usr/bin/vlc" fmt="mp3" for a in *$fmt; do $vlc -I dummy -vvv "$a" --sout ...
10
votes
2answers
709 views

What's the difference between the following cmd scripts?

I've tried launching several programs through a batch file and encountered problems but that is in the past. I'm relatively new to scripts and command lines and this would be my question: What's the ...