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
2answers
13 views

Removing default printers via command line

For a company I have to remove the default printers(fax, onenote, ...). Manually you would do this in control panel, right clicking it, and do remove printer. Using i.e.: printui.exe /dd /m "Send to ...
0
votes
0answers
16 views

DD-WRT: Script for IP checking and openVPN reconnect

Router: TPLINK ARCHER-C7 v2 Firmware: DD-WRT v3.0-r28072 std (11/02/15) Service: OpenVPN client Issue: Sometimes a least favorable VPN server is assigned, it always provides very slow connection ...
-1
votes
1answer
13 views

How to write a script to write root shell in file.log?

I use loger to write in file.log,but I can't execute the script.sh.I do it with bash script.sh and ./script.sh but I receive message bash: ./script.sh: Permission denied
-1
votes
0answers
10 views

create file with users input

How to create a new file which is created and modified at the same time, with the users input. for example: !/bin/bash echo "which Doc" read Doc echo "which DNS_FLG" read DNS This should read ...
0
votes
0answers
10 views

How to create a script to wipe user's post history on a Xenforo forum? [migrated]

Apparently Xenforo doesn't offer a way to mass-delete user's threads and messages, each message has to be removed individually. I'm asking how to do this as an admin.
0
votes
1answer
18 views

Implementing changes via script

Learning stage of understanding script. I have to make these below change on every new system. So I created these script, unfortunately it isn't working. I want to understand that if the user input ...
0
votes
4answers
39 views

Bash background process still blocking script flow in subshell

I am trying to do something that involves scripts calling other scripts in subshells to capture their output. One of the scripts needs to have a side effect of starting a background process. This all ...
-1
votes
1answer
16 views

simulate(trigger) CTRL key press with click event

I am working on some kind of script. It needs to remain on the same tab when performing click event but clicked link should open in new tab. I can use Ctrl + Click but how to press CTRL ...
0
votes
0answers
20 views

Need help writing Linux script to automate moving files when flash drive is inserted

I am trying to use a Raspberry Pi running Raspbian to automatically move (not copy) the contents of Folder A (local) to Folder B (on SD card via USB to SD card reader) automatically when the ...
1
vote
1answer
24 views

Linux bash script for oldest file in a folder + return value if folder is empty

I am using SUSE Linux Enterprise Server 11 (x86_64) I need to find a folders oldest file and print it out in unixtime. I did get the job done with this one liner: find $1 -maxdepth 1 -type f | xargs ...
-1
votes
0answers
31 views

command doesn't stop when finds a hit? [closed]

I use ncrack and this is the code I use inside a bat file and this are all my 6 pass lists: Ncrack running 1 pass then 2'nd pass then 3'rd pass etc....but.. ncrack --user Admin -P pass1.txt ...
0
votes
2answers
26 views

How to use crontab to launch scripts

I have created a script (which I already tested if it works) and I want to use crontab to launch it everytime my pc reboots. I created these script called test.sh just for fun and it's pretty easy: ...
0
votes
1answer
24 views

Script not running on resume/wakeup in Ubuntu

I have a script named 999_thaw_flash.sh in my /etc/pm/sleep.d The script follows like this :- export DISPLAY=:0 #!/bin/bash case "{$1}" in resume|thaw) lynx --dump link1 >> file1 lynx ...
1
vote
2answers
37 views

Custom script run with sudo - command not found

Problem: Running a script as sudo returns sudo: mount-remove-hiberfile: command not found Info: Scripts folder: '/scripts' (all my custom scripts are kept here) My User: 'cybex' ...
0
votes
0answers
10 views

Batch converting .rar to .7z - path variable?

I found someone who had written a very nice batch script to convert .zip to .7z, and im attempting to make it convert .rar to 7z. I am able to get the script to work but I cannot figure out where the ...
-1
votes
0answers
18 views

Get the last Microsoft published update, within a script [duplicate]

I have a Powershell script that I use to monitor several machines. Among elements checked, I have the installed Windows OS and the last update installed using : $listeMAJ = Get-HotFix -ComputerName ...
0
votes
1answer
13 views

Where to save scripts on DD-WRT power-less-safe?

i have saved script into /tmp folder but when router lost power, file was deleted. Is there any safer variant to save? I need to run this script every minute by cron.
-1
votes
1answer
45 views

Why does this “find” command scan all directories?

I only want to recursively scan Documents and not leave that "parent" folder. My script scans recursively my entire file system, and I am not sure what element of this script is causing that to ...
1
vote
1answer
26 views

Bat script for a set of csv files in a folder

How to store a value in a variable and load that variable as a new column in a file using a batch script? The above link is used to read a date field and write it to all the records in a csv file. I ...
1
vote
1answer
34 views

How to run a sequence of bash scripts one at a time in Linux?

I have several bash scripts, or rather one script that has to be run multiple times. This script accepts several command line arguments and does something with them. I need to run this script ...
0
votes
1answer
16 views

ffmpeg local expansion and running a command within

Big time n00b question.. I just can't quite figure out what I'm doing wrong. Here is my .bat file: @ECHO OFF SETLOCAL set /p Input= Drop file here, and click enter. set file=%Input% FOR %%i IN ...
-1
votes
1answer
26 views

A video player that auto-plays videos in sequence while skipping certain parts

There is a TV show I like; I have its episodes stored as video files on my SSD. Each video file is about 24 minutes long, but only 20 minutes of that is the actual episode; the rest is intro, outro, ...
0
votes
1answer
24 views

Debian Scripting to remove the logging during apt-get install

I'm trying to remove the log that debian puts out after you apt-get install something Ign http://ftp.uk.debian.org jessie InRelease Hit http://ftp.uk.debian.org jessie-updates InRelease Get:1 ...
-1
votes
0answers
42 views

Launching processes while I sleep

I am an absolute newbie to any advanced working with PC, so I need your help and I hope there is someone who can help me. What I need is "something", that would do work for me while I sleep. My ...
0
votes
1answer
21 views

Can we install a package through a shell script? [duplicate]

I'm trying to write a shell script so that when I reinstall my Ubuntu again. I could just run script and retain all the packages. And I'm planning to pass password in form of argument. My question ...
1
vote
1answer
20 views

How to conveniently save a plain image in GIMP?

Ever since the move to first class image editing file formats, it is always a pain when I am 100% sure I want to just crop one image and not care about it. I have already copied it and don't want the ...
0
votes
0answers
38 views

Looking to rename large amount of files using bat script

I'm still pretty new to the use of powershell, scripts, and the like, so I'm sorry that I don't have some form of script to start with. All I have is the specifics on my problem. I have a large ...
0
votes
0answers
44 views

Automatically create subfolders by date and move files into subfolder at the end of the day

I use the software iSpy to record audio and I have set it up to save the recordings to a folder. The problem is that there is no organization at all, so I have thousands of audio recordings in one ...
0
votes
1answer
34 views

ubuntu 12.04 nmcli doesn't list connections under one no-login user

I am running bacula as my backup system and I would like to run a script before some backup jobs to establish a VPN connection and access some servers that don't have public IPs. I have configured a ...
0
votes
0answers
12 views

How do I avoid getting prompted for a password when I run this script?

I’m using Amazon Linux. If I login as my “otheruser” user, and create a script, test.sh, with this text sleep 5 ; sudo reboot now I can login and run the script like so … [davea@mydevbox ~]$ sudo ...
0
votes
0answers
13 views

Errors in script which runs on boot

I have made an installer script of my architecture which runs on boot, and I added it to chkconfig: #!/bin/bash # # chkconfig: 2345 99 30 # description: Product Installer Service # if [ -f ...
0
votes
0answers
12 views

daemon script on windows

I need to have a script that watches a certain ftp folder, and whenever it sees any files in it, perform some operations on it. I was thinking of using a simple script, like power shell and make sure ...
0
votes
1answer
32 views

Modifying script to capture login/shutdown times in Windows

For some time now I've been using this script to view my login time for a particular computer: Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = ...
0
votes
1answer
67 views

How do I remove file extensions from all files on Mac?

I have a bunch of files with arbitrary extensions OVER (i.e., after) the old extensions; e.g.: a10.lua.c76c8a36-6f80-4b5e-b6a4-ed7c6817ca2e boneaxe.gif.e65e71e9-69e6-4d64-8648-1d6a9c8c7a1f All of ...
1
vote
1answer
32 views

Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
29
votes
8answers
7k views

Is it possible to restart a computer in response to an email notification?

I'm looking for a way to reboot machines after getting an email notification. The setup I want to use this on is a render farm. We have 5 boxes with 8 Nvidia GTX 980Ti in them. They're running ...
0
votes
0answers
27 views

How to determine (in a given time span in the PAST) which were the top CPU-using processes?

Short question: How do I determine which were the top processes hogging the CPU (Windows 7 Home Premium quad-core laptop) in a period of time which started 15 minutes ago and ended 01 second ago ? ...
1
vote
1answer
22 views

Access to line arguments in shell script

I wonder if there is possible to access full command line call in shell script. In my script I need to pass it further. I find that there are $@ and $* accessors, but it do not pass all the ...
-6
votes
1answer
33 views

converting shell script to bash script

can anyone help me by converting this shell script to bash script pl. my shell scrpit is as follows #!/bin/bash ...
2
votes
1answer
1k views

script for installing the service pack for the corresponding windows version

I'm creating a script for installing the service pack for the corresponding windows version. So I want the script to determine the Windows version I'm on and the service pack installed and then ...
0
votes
0answers
20 views

How to create script to change audio device in SIP Phone on Windows 7

I hope I am posting in the right place, if there is somewhere more suitable, please point me in the right direction! Here is the picture describing what I want to accomplish with a hotkey or a ...
0
votes
1answer
34 views

Get 'No rule to make target 'modules'. ' on make file

While I am installing the driver of Realtek RTL8192EU chipset (0bda:818b) form this package and, follow the how-to-install.txt , I got error while running sudo ./install.sh [tjm@ArchPad ...
0
votes
1answer
25 views

How do I properly configure conditional actions with user input in VBS with MsgBox?

Today I started trying to create my own custom Dialog boxes for Windows. I'm able to use a shortcut/wscript.exe to run a VBS file with the following: (please ignore the dialog. I know that Drive C: ...
0
votes
1answer
37 views

Control excessive outbound traffic

Ubuntu server is sending outbound request excessively. I am not sure why this happening. Following is the output I am getting for tcpdump root@demotrt:~# tcpdump -n -n port 53 tcpdump: verbose ...
0
votes
1answer
44 views

How do you make a list/file for pacman to install from?

I am trying to move from one arch install a (partitioned one) to another (a less-partitioned one) on my computer and I want a similar set up. So I was wondering if there was a simple way to get pacman ...
0
votes
1answer
22 views

why after subtraction is an extra space generated in a batch script?

I am trying to copy my dbf file into a backup folder every Monday. If the Monday is not greater then 7 then it will copy previous month file. When I subtract 1 from the month it adds an extra space. ...
2
votes
2answers
34 views

Nesting IF in Windows Bat file

I am having some difficulty in understanding how the Nested IF works in windows .bat script. What I wish to achieve is as follows. I shall be passing two parameters to a bat file IF first parameter = ...
4
votes
1answer
48 views

Batch script to delete specific folders

I want to be able to run a script at a parent folder that contains other folders, the script will delete all the folders of a certain name. So for example to remove all the bin folders and only them: ...
0
votes
0answers
34 views

Google Script to Copy Rows Containing Todays Date To Another Sheet

I have the following script that works just fine, except i now need it to copy all rows in "Dashboard" column A that has that has "today's" date (current date), beginning in row 13. Note, the ...
0
votes
1answer
17 views

Script Shell Division Operation

Here is my script: #!/bin/bash nb_lines=30 expr 100 / $nb_lines ./test1.sh 3 1) How can i change this script to have '3.33333333' ? Variable 1 2) How can i change this script to have '4' (round ...