Questions tagged [script]

An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.

Filter by
Sorted by
Tagged with
1 vote
1 answer
11k 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 ...
Eric's user avatar
  • 13
1 vote
1 answer
2k 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 /...
Martin Gross's user avatar
1 vote
1 answer
91 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 ...
user299158's user avatar
0 votes
1 answer
813 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 ...
user274484's user avatar
0 votes
1 answer
351 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]" filenumber=$(($...
kolonel's user avatar
  • 185
2 votes
2 answers
18k 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 ...
user2723297's user avatar
5 votes
2 answers
142k views

Automate file upload in FileZilla using a script [duplicate]

Consider: D:\Program Files\FileZilla FTP Client\filezilla.exe -c 0/GG/DG/ -a "K:\YY\XXXXX\AAAA\BB\idS.txt" This code doesn't work as it says: "PATH NOT FOUND" K:\YY\XXXXX\AAAA\BB\idS.txt However ...
user295071's user avatar
1 vote
1 answer
2k 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?
David's user avatar
  • 9,334
0 votes
1 answer
2k 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 ...
Kip's user avatar
  • 376
0 votes
1 answer
461 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 some ...
wcale's user avatar
  • 3
1 vote
2 answers
56 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 ...
porton's user avatar
  • 311
0 votes
1 answer
1k 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 @...
Ugo's user avatar
  • 349
0 votes
1 answer
963 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 ...
user292925's user avatar
4 votes
3 answers
36k 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 ...
Garrett Dumas's user avatar
3 votes
2 answers
1k 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 D-Link ...
Sopalajo de Arrierez's user avatar
0 votes
1 answer
837 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: <...
ThunderToes's user avatar
0 votes
2 answers
181 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 ...
malfy's user avatar
  • 209
2 votes
0 answers
2k 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 ...
dillmo's user avatar
  • 3,031
2 votes
1 answer
2k 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 ...
Edik Mkoyan's user avatar
0 votes
1 answer
17k 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, ...
user1776193's user avatar
2 votes
1 answer
4k 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 ...
user2723297's user avatar
1 vote
1 answer
10k 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 ...
user2723297's user avatar
5 votes
3 answers
6k 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 ?
der_wolle's user avatar
  • 151
-1 votes
2 answers
121 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 $HOME/Dropbox/...
Carlos Castillo's user avatar
0 votes
1 answer
34 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 ...
cbrulak's user avatar
  • 321
0 votes
1 answer
144 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?
Benjamin Jones's user avatar
0 votes
0 answers
180 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: /data/music/Artist_-...
AaronJAnderson's user avatar
0 votes
1 answer
217 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 ...
SSV's user avatar
  • 103
2 votes
2 answers
4k 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 ...
Blake's user avatar
  • 21
6 votes
2 answers
12k 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 ...
Ari's user avatar
  • 61
1 vote
1 answer
298 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") User=...
Austin's user avatar
  • 11
1 vote
1 answer
724 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 ...
hichris123's user avatar
0 votes
1 answer
815 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 ...
Jeffrey Lebowski's user avatar
3 votes
2 answers
2k 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 ...
mothman11's user avatar
0 votes
1 answer
170 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 ...
James Robert Casey Jones's user avatar
4 votes
2 answers
27k views

How can a PowerShell script be automatically run on startup?

I have a PowerShell script to monitor an image folder. I need it to run automatically on startup. I tried to use MSConfig, but I could not find it in that list. How can I have the script ...
qinking126's user avatar
0 votes
1 answer
394 views

How to let any user without root change specific network(qdisc) settings?

I have made a simple router from a Linux PC, for the purpose of simulating poor network conditions using qdisc (netem and tbf). Now, I want to allow any user to activate specific presets that I have ...
Pjotr Slump's user avatar
0 votes
1 answer
133 views

How can I run a command at login?

I would like to run a command at login on my Fedora 19 GNU/Linux system. What is the best way to do this? Note: i am using the GUI. Thus, I could not simply place the commands in my .zshrc file. They ...
Demi's user avatar
  • 818
1 vote
2 answers
1k views

How to log output of a part of a shell script

I'm looking for a concise solution for logging the output of a part of a shell script to a file. Additionally, I still want to be able to follow the life output on screen. From the man pages of "bash"...
Carsten Scholtes's user avatar
0 votes
1 answer
2k views

Script to run after joining domain

Is there a possibility to do this? I want to run a script that defines my network drivers and runs an .exe after it joined the domain.
joostmakaay's user avatar
1 vote
1 answer
2k views

Trying to make a symbolic link to a Powershell script

I'm trying to create a symbolic link with mklink through a Powershell script to a Powershell script on a remote server. this link should come on the desktop of all users. if(!(test-path -path \$...
willemdh's user avatar
  • 123
1 vote
0 answers
2k views

Automatically mounting an encrypted USB disk at boot

I've followed these steps to set up an encrypted USB hard disk on Lubuntu 13.10, and these to unlock it with a keyfile instead of a passphrase. I now have a disk /dev/disk/by-uuid/32f692ec-e22c-49d3-...
Rena's user avatar
  • 183
34 votes
3 answers
178k views

How can I run a command after boot?

I would like to run the simple shell command echo 1 > /proc/sys/kernel/sysrq at each boot, to enable the sysrq keys. When in boot should this be done, and where should I put a script to do it?
Demi's user avatar
  • 818
2 votes
2 answers
122 views

if find ext then cp parent dir else echo not found

So far I have come up with this. if ls -1 ~/Downloads/*.mkv >/dev/null 2>&1 then echo 1 else echo 0 fi But what I would like to do is to then copy the parent dir of the ...
David Custer's user avatar
-1 votes
1 answer
123 views

change a .bat file to omit extensions when listing files in win 7

dir /b > filenames.txt Re named to .bat gives me file names with ext, I want to list without extensions, Any ideas anybody
user278975's user avatar
0 votes
1 answer
88 views

How to convert image text to normal text with a tool or a script

I would like to know whether is there any tool or a script to recognise the text which is in .png format and get the output as a plain text.
user1345837's user avatar
0 votes
4 answers
1k views

ubuntu script no such file /etc/init.d/ script

i'm trying to run this script at start up but this is constantly giving me error that /etc/init.d/put_ubuntu_users: 14: /etc/init.d/put_ubuntu_users: cannot open ~/data.txt: No such file This is my ...
Fatima Zohra's user avatar
1 vote
1 answer
7k views

windows script to copy text from one file into a new file

I am noob at coding! I am trying to create a windows script that I can copy text from one file into another. My main goal is to find lines in the text with "started processing" and "file". I am hoping ...
Sam's user avatar
  • 11
3 votes
1 answer
3k views

Simplest setup on Windows to send HTTP request, get and apply regex to response, and write match(es) to output file

I'd like to write a script that records the size of the close votes review queue on SO (currently ~95.5k), polling just a few times an hour, so I could plot a general trend. I know what I'm going to ...
Andrew Cheong's user avatar
3 votes
1 answer
14k 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 ...
vrtigo1's user avatar
  • 103

1
33 34
35
36 37
55