Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [automation]

The use of control systems to reduce the need for human work. Related to automatic systems.

-1
votes
1answer
28 views

Can I automatically turn on my hotspot when ethernet is plugged in?

My router is quite a distance from my work space, but I have an ethernet cable running that distance. When I plug it into my laptop, is there a way to automatically turn on the laptop's hotspot so ...
0
votes
0answers
13 views

How can I define Ubuntu workspace configuration as code?

Is there any more or less suitable tooling for the scenario described below? Imagine the following scenario (upon this question, but here Ubuntu-specific): You have a standard work environment, 4 ...
0
votes
0answers
11 views

Start script after file is placed in folder

Hi so my younger brother was in a bad car crash a while back and has lost all of his motor skills. With that I've been trying to automate encoding Anime and labeling, like he would do prior to the ...
0
votes
0answers
76 views

How can I install IronAHK on Ubuntu LTS 18.04?

I am trying to install Linux equivalent of Autohotkey on Ubuntu LTS 18.04. a) I have followed the following guide: Building IronAHK from source on Ubuntu I have tried these: sudo apt-get -y ...
1
vote
0answers
43 views

Creating Script to Automatically & Periodically Save Open (Focused) Files

I would like a way of saving open files outside of the program in which they're open--a robust and simple way of doubly ensuring that highly important files are locally saved. Would it be possible, ...
0
votes
0answers
31 views

Open Tor from specific Firefox urls

I have Firefox and Tor installed on my Ubuntu 18.04. Day to day I mostly use Firefox, but in some specific cases I want to open a webpage using Tor. For example, say I want to open askubuntu.com in ...
1
vote
1answer
25 views

Start a server using a shell script

Now, I need to start the server like this. $./server.start I have to this every time I start and logged into my machine. It would be so good if there is a script which does the same automatically ...
0
votes
0answers
30 views

Execute a script every day 5:00 [duplicate]

I'm running tf2 server on my ubuntu computer, and I would like to run an auto update in every morning at 5:00. So this script should first close the running tf2 server, then go back to the "steamcmd" ...
2
votes
2answers
70 views

Are there any commands I can use to ensure that the NTP service is running and is also responsive?

Are there any commands I can use to ensure that the NTP service is running and is also responsive? What I am planning to do it have some monitory & remediation scrip to ensure that a couple of ...
0
votes
0answers
17 views

If active window is file manager then store selected files in variable

I am trying to port a script from AHK script for Windows to Python script for Ubuntu. Desired behavior (1) If user presses F5 when active window is explorer it displays message "explorer is active"....
0
votes
0answers
17 views

Ubuntu 16.04 post_install script automation fails

I am trying to automate post provision script via chef-client to run on Ubuntu 16.04 provisioned Virtual Machine but my script just stops randomly without any error trace. When I manually ssh into the ...
0
votes
0answers
58 views

Is it possible to automate interaction with an application using bash?

We have a graphical application deployed on ubuntu server 16.04. Sometimes certain things on this application seize to work properly. I'm probably stretching for a long shot but is there anyway I ...
0
votes
0answers
20 views

Auto click in a bouton in an HTML page in Ubuntu server

I want login on my youtube channel and inject ad on my livestream, API of google dont be able for inject ad on a live stream, my question is : Is it possible to inject an advertisement through an ...
0
votes
0answers
29 views

Set networking so as to turn Wi-Fi on/off when X process is started/interrupted

my aim is to set (through scripts/daemons/whatever piece of software might help) my laptop networking (Wi-Fi in my case) so as to turn on automatically when I start software X (Firefox in my case), ...
0
votes
1answer
1k views

What am I missing to automate my 18.04 install?

I am trying to automate my install of Ubuntu 18.04. This is how my current boot paramters look like (forgive me but it's long) boot=casper auto-install/enable=true console-setup/ask_detect=false ...
0
votes
1answer
45 views

Background process

I have the below script - #!/bin/bash xset -dpms xset s off openbox-session & start-pulseaudio-x11 xsetroot -cursor_name left_ptr /usr/bin/nm-connection-editor openfortivpn gw.itsecurelink.com:...
3
votes
1answer
51 views

Code capture automated

I am doing a project, where we need a video of the python script being written in the editor. We have 100+ scripts, so we need automation. Is there a program, in which the input is your python script ...
0
votes
0answers
59 views

using Terminal command by clicking on a link in an email?

Can I send someone an email with a link, that opens the Terminal and installs Wine on Ubuntu 16.04? I did it on my own system with the commands below, but I'd like to make it simple for someone... ...
2
votes
0answers
157 views

Why does xdotool seem to fail in Ubuntu with gnome 3?

I'm using gnome 3 with Ubuntu 17.10. I'm trying to open my text-editor of choice and gnome-terminal on startup and have them snap to the right resp. left corner of the screen, as seen in the picture ...
1
vote
1answer
99 views

using “at” to run python script at a specific time not working

I am trying to run this script at 7am PST every morning. The command I am using in testing is: echo "python checker.py" | at 8:40 PM Which fails. When I check the at -clog I get the following ...
1
vote
1answer
161 views

Reconnect VPN after Suspend

I have a VPN configured in Ubuntu and set to autoconnect when the system starts. But when I come back from the suspend state, the VPN is always disconnected and I have to reconnect manually. Is there ...
0
votes
1answer
113 views

Randoop on Ubuntu/Eclipse-oxygen

I need to write unite tests for my project (being developed in Java 8) using Randoop, how can I configure Randoop on Ubuntu system? I am using Ubuntu 16.04, and Eclipse Oxygen.
0
votes
1answer
49 views

Shell scripting automation

I just wanted to know that is there any process by which we can automate the process of fetching the server logs periodically by running some cron-jobs and saving the logs directly as a zipped file/...
0
votes
0answers
11 views

How can i run a script when i get a notification [duplicate]

I have a script that makes my keyboard flash and i would like if it was run every time i get a notification. So that my keyboard is flashes every time i get a notification the command I am trying to ...
-1
votes
1answer
777 views

How-to: An unattended installation of Ubuntu 16.04 on a disk with existing OS

I had a task of deploying Ubuntu Desktop 16.04 on multiple machines with Windows 10 on them. Of course, to accomplish the task efficiently, I needed to find a way to install automatically. I asked ...
-1
votes
1answer
1k views

/etc/ansible/ansible.cfg has all configurations commented out. How is ansible working?

for background and context: I'm a network engineer by trade, and I did not come up through the traditional "systems" or "IT" path in my career, but now I'm working on learning network automation and ...
0
votes
1answer
75 views

OOB configuration management software for Nginx and PHP-FPM?

I have a question regarding configuration management (automation) of Nginx and PHP-FPM: 1) To allow full gzip functionality on Nginx I execute: sed -i "s/# gzip_/gzip_/g" /etc/nginx/nginx.conf 2) ...
0
votes
1answer
76 views

Further automating Ubuntu-Nginx-WordPress server environment establishment script?

With the following script I create a Ubuntu-Nginx-WordPress based environment. How could I further automate (hence shorten) the amount of code in that script? add-apt-repository ppa:certbot/certbot -...
1
vote
1answer
25 views

Log if process is active or not

I'm trying to make a web page which shows if a process is active or not, but how can I automate the process check and write that to a .txt or .html file so I can show it on my site?
-3
votes
2answers
272 views

Unattended-upgrade — update everything out of everytihng silently without any barriers

I installed unattended-upgrade via apt-get installl unattended-upgrade, then came to configure it with dpkg-reconfigure unattended-upgrade. I then came into the following screen with the saying: ...
0
votes
0answers
17 views

Automatically record screen

I am recording my screen using SimpleScreenRecorder, but after the recording, I have to manually stop the recording and save the video. Can this process be automatized. Is there a way to do it through ...
1
vote
1answer
78 views

script to log idle time of xserver

The following is a script to calculate the idle time of a machine. The script is supposed to check xserver idle time at a time interval of 1 minutes and log the result to a location via cronjob. But ...
-2
votes
1answer
365 views

How to use ssh to remotely signal a Ubuntu 16.04 system to speak out audible alerts without using incron

Brief: The question is about whether I should modify my Ubuntu 16.04 system to accomplish a task, or is there an easier way. This is a complex system of computers, involving a mix of languages and ...
0
votes
1answer
119 views

Ubuntu terminal automation

Is there a way to run a script by opening a new window and sending inputs to it, so that is looks like someone is typing into the window?
-1
votes
1answer
151 views

How to execute a program when a specific string is entered in a specific window?

I want to write a shell script to automate screenshots using the screenshot program Shutter when some key words are written in a certain app,such as a internet chat room or text messenger service or ...
0
votes
1answer
238 views

How do I autorestart an exited process with exit status 0 in supervisord?

I am executing some PHP script with supervisord. Sometimes one of my processes is stopping with error log: INFO exited: worker_push_notif (exit status 0; expected). I already set in config ...
0
votes
0answers
57 views

How to update Ubuntu server automatically when server is powered on?

I have scenario when Ubuntu 16.04 LTS server is powered on every day for 1 hour. How to setup it in the way, that when started it updates itself automatically with an automatic reboot if needed? ...
8
votes
1answer
419 views

Text Expansion on Ubuntu 17.10 Wayland

Because Autokey, Snippy, and Texpander all rely on the X11 windowing system (or indirectly on xdotool), they do not fully function on Artful's default Wayland session. Is there any alternative ...
1
vote
1answer
389 views

How to start a scan with a hotkey and automatically save the result into a directory?

I have a Canon Lide 120 scanner connected to my Ubuntu computer via standard USB. To scan a document I have to open the scanner app, hit the scan, and then select a directory to save the image into. ...
0
votes
3answers
407 views

Script to move files to new directory periodically

I'm new to Linux, and looking for help with a script. I'm using Resilio to back up photos from our iPhones. They go to '/media/data/phones/myiphone/resilio' unfortunately resilio imports the photos ...
1
vote
0answers
156 views

Automatic Ubuntu 16.04 installation preserving existing partitions

I have seen quite old questions and answers about this subject but the answers were really complicated. So I am hoping that today, we have an easier way to achieve that behavior. I want to create an ...
1
vote
0answers
80 views

Detect media play / pause events

I want to pause playback after headphones have been unplugged, then resume after they were plugged back in. My current solution uses ACPI to detect plug / unplug, as shown here. To play / pause the ...
0
votes
0answers
76 views

Automate Memtest86

I've looked around and haven't seen anything like this so here we go. I want to put Memtest86 on a bootable USB and then have it automatically run through tests 0 and 1. (Preferably I would like to ...
3
votes
2answers
2k views

How to see full cron log (Not of just 1 day or less)?

I want see all the jobs that has been scheduled by using cron for the last 1 week (or certain specified time). I used the command sudo grep CRON /var/log/syslog But it only shows the log for 1 day. ...
0
votes
1answer
50 views

Trigger a program when X wakes up

I want to perform a task when my computer awakens from suspend, and the task involves xcb-randr. I've tried putting a script into /lib/systemd/system-sleep, but randr isn't available at the time that ...
0
votes
0answers
55 views

Global screen between workspaces/ Automatically switch windows' workspace based on screen

Is it possible to set a global screen that does not change between workspace switching or mimic this? For example, If I have three screens, is it possible to switch the workspace, and have all items ...
1
vote
0answers
33 views

Start several SSH on a terminal on start up [duplicate]

Due to work reason, I need to SSH to several servers every morning. Instead of open terminal and key-in several "ssh user@host", any easier method I can make it automatic such that start-up pc auto ...
0
votes
1answer
222 views

Automate MATLAB and LTspice

I'm using MATLAB and LTspice. I have to write a script to automate these two softwares in such a way, 1. Output file of the MATLAB is feed into LTspice. 2. LTspice output results are inserted back ...
3
votes
1answer
499 views

Bash script - delete all files older than, but leave one for safety reasons

I've got written a script: #!/bin/bash dir=/opt/bla/myfiles # Check disk usage usep=$(df -H | grep /dev/sda3 | awk '{print $5}' | cut -d '%' -f1) if [ $usep -ge 90 ]; then echo "$(date) Running ...
1
vote
1answer
73 views

How to automate commands I use very often on VPS?

I have some projects on DigitalOcean VPSs. I deploy parts of code very often. Almost after every upload I have to do multiple commands. For example if I change Django models and add some static files:...