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
vote
3answers
2k views

Linux get single bandwidth usage sample

What I want to do is to write a script that gathers some information (like cpu temperature and bandwidth usage) and logs it into a file. I can't figure out how to get a single sample of the current ...
1
vote
1answer
749 views

String manipulation in Grub2

One of the new features of Grub2 is scriptability. At my work we're using it to great affect. However, I recent stumbled on a terrible short coming. There isn't any string manipulation or ...
1
vote
3answers
2k views

How can I script making a backup of recently modified files in Bash?

I have written this backup script that looks in a file and copies recent files into a folder. #!/usr/bin/bash # the number of days to do the backup for. days=2; # the files to backup. ...
1
vote
3answers
1k views

RSS feed reader that supports filtering? [closed]

In the past I have been using Akregator and GoogleReader to read my RSS feeds. The latter is particularly interesting as I am not right to a single computer and that it supports social sharing. ...
0
votes
1answer
34 views

How to detect bi-directional link state

I have the following scenario: PC1 (Windows 10 Home) connected to LAN-only network (currently using a dynamic IP address) If I try to use a static IP, the connection will occasionally drop half the ...
0
votes
1answer
34 views

Add shortcut to SmcFanControl?

SmcFanControl is an application on OS X that lets you create profiles for the fan and increase/decrease their speed as you wish. The problem, there's no shortcut on the app, to change the profile you ...
0
votes
1answer
387 views

How can I over-ride Windows10 default DNS Servers to use OpenVPN assigned DNS servers

A problem has arisen with Windows 10 in that it always uses it's local DNS servers (as well as VPN assigned DNS servers) for DNS resolving, which in turn leads to a DNS leakage scenario. Details ...
0
votes
2answers
193 views

Loop inside EOF - UNIX SCRIPTING

I am writing a script to automatic start up of an application whenever we found error in logs. so #/bin/bash if [ grep -c 'error' logs -eq 0 ] ;then exit else start <<EOF ## start is a ...
0
votes
0answers
19 views

CentOs How to run a command on performance drop

I'm looking for a way to execute a command (in my case something that drops all connections that are mot Italians) when my server's performance drops and it starts lagging. I looked at inotifywait ...
0
votes
1answer
273 views

How to start GUI application with upstart?

I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me... I have an GUI application. I want to start this ...
0
votes
1answer
258 views

Postgresql starup script for second instance?

I need to run my second postgresql instance when linux boots. I added this command (like in postgresql documentation) in rc.local: /usr/lib/postgresql/9.1/bin/pg_ctl start -l logfile -D ...
0
votes
1answer
719 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
2answers
577 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 ...
0
votes
1answer
4k views

How can I use a bash script to run nmap and capture both IP and hostname?

I want to scan my network; and return an output like this: Network Scan for 192.168.0.* 192.168.0.1 computer1 192.168.0.2 computer2 192.168.0.3 computer5 echo Network Scan nmap -sP -n ...
0
votes
2answers
626 views

Linux rename using parameters and spaces?

Is it possible, in Linux, to rename a file from something without spaces to something containing spaces? I know I can create directories and files with spaces by doing: mkdir "new dir" and: touch ...