Script is series of instructions written in plain text file. The script interpreter (i.e. shell, Python, Ruby, etc.) can read this file and act on the instructions as if they were typed at the command prompt. The interpreter also provides a variety of useful programming features to make your scripts ...

learn more… | top users | synonyms (3)

3
votes
0answers
2k views

How to transfer an iPhoto Library to a file based structure and how to manage them properly?

I need to export my old iPhoto Library to a file based structure similar to the format of shotwell. There are some possiblities: Just use the iPhoto Master folder Use Shotwell to import the photos ...
2
votes
0answers
32 views

Script crashes when starting from .desktop file

When I execute script from terminal by hand, it runs without problems: gksudo /path/to/module.sh But when I use .desktop file to run script on startup: [Desktop Entry] Type=Application Exec=gksudo ...
2
votes
0answers
42 views

Cannot run make - Bash vs Dash

I am on Ubuntu 14.04. 64 bit. I have a C++ source code with a makefile. As per the provider of the code, all I am supposed to do is to go to root directory for the code and type make, which is ...
2
votes
0answers
23 views

Submitting serial jobs

I want to submit a serial job on my ubuntu desktop (PC), not on any HPC cluster. I am working with genomic data and have several runs to do. I want to complete job#1 which creates certain files the ...
2
votes
0answers
48 views

How to automatically run a script once, after installing lubuntu from a pen drive?

I've got this usb stick I'll send to my sister, and I couldn't put int Ubuntu in it (just little less than 1 gb and few MB short of fitting in 14.04). So I decided to go with Lubuntu. Then, I've ...
2
votes
0answers
150 views

preseed file and installation script

I am using a preseed file to auto install ubuntu 12.04. I create a normal user account (able to use sudo), I skip the creation of a root account. At the end of the file I have put this (seen it from ...
2
votes
0answers
679 views

rc.local doesn't run on startup

I know this question has been asked a lot of times already, and I think I might have tried everything suggested on the internet, but I just can't get it running /etc/rc.local: #!/bin/sh -e while : ...
2
votes
0answers
82 views

error insserv with script

I try to install Unbound with the following website: http://www.unix-tutorials.com/go.php?id=3681 I copied the script : #!/bin/sh # # unbound This shell script takes care of starting and ...
2
votes
0answers
140 views

solaris tail on ubuntu

Is there a way to make linux tail understand the Solaris tail syntax (precisely like tail +2)? The short story is that I have some update scripts written for Solaris on the repo and I cannot modify ...
2
votes
0answers
312 views

How do I force nmcli to reconnect to different uuid?

I have a bash script that checks my network environment and mounts shares accordingly. If I'm at work and have a hard-wire connection to the LAN, then I'd like to activate a hotspot connection for ...
2
votes
0answers
66 views

Upstart - unable to read /etc/shadow unless sudo

In the following script in Upstart, I'm unable to read /etc/shadow in pre-script phase, unless I use $(echo mypass | sudo -S cat /etc/shadow | grep myusername) The script works fine if I provide my ...
2
votes
0answers
534 views

Port redirection for a specific (dynamic) IP using iptables script

What I want: Incoming TCP and UDP connections on port 900 from the resolving IP address of myip.dyndns.org (dynamic IP) should redirect to port 5050 on the local machine. All other IP addresses ...
2
votes
0answers
61 views

suppress all interaction while installing apt-fast

I want to ask whether there is any method to suppress any interaction while installing apt-fast using apt-get. I add the ppa source and then use the next command to install apt-fast: sudo apt-get -y ...
2
votes
0answers
512 views

How to persistently maintain cloned mac address on Network Manager?

I'm on Gnome 3, and it seems like I'm able to add cloned mac address to my network interfaces from the GUI wizard of Network Manager. The catch is, every time I reboot my computer the cloned mac ...
2
votes
0answers
213 views

Activating USB audio with /etc/pm/sleep.d script that runs pacmd commands

Ubuntu annoyingly switches the device for audio input and output from my USB headset to the built-in sound card every time I log out, hibernate, or shut down my computer. This takes place even though ...
2
votes
0answers
302 views

Block unauthorized usb device. Disable automount

I wrote a bash script that checks every second for new mounted USB devices. When a new device is mounted, my script gets its serial number and compares it with the serials I wrote in a text file, ...
1
vote
0answers
27 views

Thunderbird does not preserve profile's language packs enabled status

I need to access the same Thunderbird profile from both Windows and Ubuntu. On Windows 7, it's Thunderbird version 38 (I think?) whereas the Ubuntu version is 44 (from the thunderbird-next PPA). ...
1
vote
0answers
20 views

script to open terminal with multiple tabs and different directories

I find myself opening the same set of terminals every time I startup. I have 3 tabs in a certain directory, all with python venv's activated, and then one extra tab for ssh'ing if I need to. It ...
1
vote
0answers
9 views

Nautilus scripts not showing up (although on the right folder and executable)

I just installed ubuntu 14.04 and I'm setting everything up. I wanted to add a couple of scripts to the right click menu. Putted them on ~/.local/share/nautilus/scripts . Made them executable. ...
1
vote
0answers
15 views

App/Script consumes too much memory. Ubuntu may be killing it. How do I verify/check this assumption?

Hosted on Digital Ocean Ubuntu 14.04 1GB RAM, 30GB HDD I am running a python script that is reading a 200MB+ file line by line. Each line is parsed into a JSON object and then appended to an ...
1
vote
0answers
24 views

How to make a key stroke recorder (for non-malicious purposes)?

When you first look at this question and its title you are going to assume that I want this for malicious purposes, however that is not the case, it is because I type a lot of things, and sometimes ...
1
vote
0answers
62 views

Creating an upstart service for dumping and uploading a mysql database on shutdown

I am running Ubuntu Server 14.04 LTS x64. I have two KVM guests. One is a file server and another runs mysql server. I have a script that I run on the file server. The script connects via ssh to the ...
1
vote
0answers
31 views

Are there any basic templating preprocessors that I can use for nginx configuration files?

I've been using nginx variables to simplify my templates for a few years now. It turns out this is apparently a "rather slow" way of doing things and that my static configuration should be static. ...
1
vote
0answers
22 views

init: Failed to spawn telnetd main process: unable to execute: No such file or directory

kernel: [ 43.208320] init: Failed to spawn telnetd main process: unable to execute: No such file or directory I get this message several times at start up on Ubuntu 14.04. telnetd is a script which ...
1
vote
0answers
14 views

Update apache/admin password in multpile folder

This is great work very well done. I have a problem too it is requested that you inform me how can do this. Let say i have folders named Folder1/apache/users/admin Folder2/apache/users/admin ...
1
vote
0answers
11 views

How to redirect sound file output to computer sound input while still able to hear other input?

I have a sound file with some music, and I want to call someone on qTox and play it to them so that they can hear me, but also the sound file. However as I only have a built-in laptop microphone it ...
1
vote
0answers
34 views

Access to a service hosted on multiple AP with the same IP/domain

I have a pretty strange problem to solve here. I need to connect to three Access Points at the same time from a single machine with a single WiFi adapter. As you can see here I've done it with a very ...
1
vote
0answers
87 views

fswatch | while read | xargs running command twice

Thanks in advance for any advice I'm working on an fswatch command to launch a script when files hit the Downloads folder. fswatch --event Created Downloads/ | (while read x; do echo $x | xargs -0 ...
1
vote
0answers
49 views

How can simulate mouse clicks in a cron job on a headless machine?

I have a headless machine running Ubuntu 14.04 LTS. I'd like to set up a cron job to daily click some buttons on a web page. I often use X2Go, and I know I could manually open an X session and use ...
1
vote
0answers
31 views

bash script: gnome-terminal does not parse arguments

Using 14.04. I read several posts here and changed the command; however gnome-terminal comes with an error: Failed to parse arguments: Cannot open display: I have a bash script in which several ...
1
vote
0answers
46 views

Need Help Getting Script to Run At Boot (Ubuntu 14.04 LTS Headless)

I've searched everywhere and done my homework before posting, but still can't get one thing to work. I have an Ubunutu 14.04 server (headless) and am trying to figure out what I'd think would be a ...
1
vote
0answers
31 views

Making ruby script into .exe

Is there a way to make a windows executable from a ruby script on Ubuntu ? I've tried to achive that with ocra gem but I constantly getting this error : ...
1
vote
0answers
44 views

How to plug and play/unload and load a hidraw device/module such as touchscreen automatically

I've bought a cheap touchscreen (lcd LS-7T) for my project but when I attach it to my computer (it's a NUC - intel) system fails to load it as a hidraw device and I have to plug and play it every time ...
1
vote
0answers
42 views

sudoers problem

I'm using Ubuntu Mate for my raspy. I'm using my raspy to run a program 24/7, which requires to be started with sudo. Because I don't want to do this manually, I added a script to "startup ...
1
vote
0answers
235 views

batch conversion with avidemux

I managed to convert avi files to mp4 using avidemux and the result is fully satisfactory. Since I have many files to convert, I would like to batch convert them using the terminal. I found the script ...
1
vote
0answers
358 views

shell file to open multiple terminal tabs, change locations, run commands

I've never written a shell script before, but I have a web app that needs a whole bunch of things running at once, and it's irritating to have to open each tab, change directories, start my processes, ...
1
vote
0answers
26 views

How to tab a window to another via command line?

I have a program that opens a number of windows, which I want to attach as tabs to a main window. The program doesn't understand the KDE window tabs concept, so I would like to tab the windows ...
1
vote
0answers
37 views

Managing Running Scripts in the Background after logging out and logging in

I know how I can use CTRL-Z and bg to run a script in the background, and then fg <number> to bring it back by its number in jobs. However, after logging out and logging back in, jobs does not ...
1
vote
0answers
114 views

Run konsole script opening php script from python

I've written a python script, which runs, and upon closure I want it to open a shell script, that opens a php script. Python script directory: /home/user/test/a named: python1.py Shell script ...
1
vote
0answers
14 views

How to create a condition based keybinding?

At first, as a sort of prologue, lets say that this is not a question for faint hearted. Meaning, that I'm not a beginner with configuring Ubuntu MATE. I have created a script which I launch with ...
1
vote
0answers
35 views

ssh hangs if remote machine is switched off

I want to log the status of a particular interface in my remote machine periodically. The following code does the job. #!/bin/bash while [ "1" ] do ifconfig usb0 &>/dev/null if [ ...
1
vote
0answers
51 views

Testing post-install scripts

I love to experiment with my Ubuntu GNOME 14.04, so there are many mistakes to be made and things to learn. Often I want a clean install, so I made post-install script. Question is: what is the best ...
1
vote
0answers
22 views

Need help writing a script to re-pair with a Bluetooth Mouse

I'm having a bit of trouble with my htpc setup, the bluetooth keyboard connects automatically and works, but the mouse doesn't and has to be re-paired for it to work. It also keeps disconnecting. I'm ...
1
vote
0answers
23 views

Where are the default hardware button (ie. volume increase, screen brightness, play/stop music) scripts

I have installed Ubuntu 15.04 on my Thinkpad x220t and was pleasantly surprised to find that the tablet button for rotating the screen works out of box. However, while it does rotate the screen it ...
1
vote
0answers
50 views

Bash script sends mail from one server but not the other

I have a bash script that is running on two, virtually identical servers. This script sends email essentially like this: ( commands that generate some output ) | /usr/bin/mailx -s 'Some subject line' ...
1
vote
0answers
36 views

Job on Upstart not started

I'm trying to start my application at boot, but I can not ... the script in upstart calls another script, I'm not getting or whether the 2nd script is called, follows the two scripts: 1º Script ...
1
vote
0answers
18 views

Automatic software management for user groups

When adding new users, is it possible to install software based on their user groups? For example a Netbeans IDE for say a 'Java development' group or a LAMP stack for a 'web development' group. ...
1
vote
0answers
25 views

Seamless slideshow transition with this script

I am looking to make this script seamlessly change files without flashing to the desktop in the transition process. Whether It be just a blank black screen, or it fades in and out of files, I don't ...
1
vote
0answers
297 views

How to run program/application in full screen mode

I am running my program/application from command line like sudo ./MyApp and some of programs I run like sudo ./MyShFile.sh ( in .sh file I just call/run my programs). But I want that my program ...
1
vote
0answers
114 views

Automatically switch to Singstar Microphones when they're plugged in

I am running a media computer for my sharehouse and since singstar has been so popular I want to run Ultrastar for everyone too. The problem is that getting the microphones set up can be finicky and ...