A shell script is a script written for the shell, or command line interpreter, of an operating system.

learn more… | top users | synonyms (1)

4
votes
0answers
223 views

NetworkManager run script before connection based on SSID

Is it possible to have NetworkManager run a script before it connects to a wifi network and pass the SSID of the network to the script (or just execute a script based on SSID)? I'm switching back from ...
2
votes
0answers
98 views

How can I run a script when I unmount a particular usb drive?

I am trying to sync between a folder and usb drive, so that a) when I plug in a particular usb drive, a script runs to copy any newer files from the usb to the folder; and b) when I unmount the ...
2
votes
0answers
664 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
161 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
158 views

How do I upload pictures to picasa using Nautilus scripts?

I'm looking for a Nautilis script to upload a picture to a Picasa Album using GoogleCL Here is my script : zenity --info --title "File" --text "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" --height 18 ...
2
votes
0answers
122 views

Simple program like ratmenu/9menu that can use images as menu items

I'd like to be able to select an album by looking through album covers and launch any mp3 player on it or select an image album by scrolling through sample thumbnails and launch any image viewer on ...
1
vote
0answers
22 views

Make right+left click emulate middle click on wireless mouse

Anybody have or know of a sweet little workaround script I can set to running at startup that would allow my dilapidated mouse to keep providing me with middleclick functionality even though the ...
1
vote
0answers
43 views

Can I open a new terminal with a new binary executing in it?

I tried to write a script that opens a new xterminal with some binary file(not command) running in it.The whole script looks like this: #!/bin/bash XTERM="/usr/bin/xterm -bg WHITE -e ...
1
vote
0answers
25 views

Moving files to usb stick and virus scan

I have the task of moving a single file to 50+ usb sticks and then virus scan them with clam-AV. I have a 6 way usb hub that I can use to speed things up. I am after running a script that prompts for ...
1
vote
0answers
88 views

cannot execute script with sudo no password

I would like to create a batch file that will connect via ssh to my ubuntu server and run a script. My batch file works by using plink, I can see that the call to my script is ran but then I'm asked ...
1
vote
0answers
30 views

Script to be run on WOL (wake on lan)

If you add @reboot xyz to your crontab xyz will be run on every reboot. Is there any way to run a script on WOL (wake on lan)? Any tip is appreciated Håkan
1
vote
0answers
47 views

acpi-support script missing in rc.d

I've just had a look inside the directories /etc/init.d and /etc/rc.d . I have a 13.10 machine, upgraded from 13.04. Then I saw that this link was missing. S99acpi-support -> ...
1
vote
0answers
58 views

Lubuntu: script starting during lxsession for every users

i'm trying this, but in Lubuntu 13.10, the same script 1) in /home/user/.config/lxsession/Lubuntu/autostart works 2) in /etc/xdg/lxsession/Lubuntu/autostart does not works How can (and where) i can ...
1
vote
0answers
157 views

How to use debcondf Show results with debconf-set-selections?

I'd like to know in common how to use the results of debconf-show with debconf set selections to precvonfigure deb packages with teh command line or within a shell script For example If I use sudo ...
1
vote
0answers
67 views

Why won't cron run my sh script?

Used gnome-schedule to create a script to set my headset as the fallback audio device because it keeps unsetting it when the headset gets disconnected or pc goes into sleep mode. Anyway, crontab is ...
1
vote
0answers
72 views

Keyboard shortcut script not working

I finally gave up on getting my FN+up and FN+down keys to change my screen brightness on my laptop. I took a brightnessup.sh and brightnessdown.sh script and put them in /etc/acpi and then went to ...
1
vote
0answers
29 views

Does anyone know of a Linux tool which converts hyper-v snapshots to full memory dump files?

hyper-v snapshots are comprised of a .vsv file and a .bin file, and I need to convert these in a full memory dump file. I essentially need this tool: http://archive.msdn.microsoft.com/vm2dmp ...
1
vote
0answers
34 views

Can't boot anymore, get a message on ubuntu purple screen

A friend has a Compaq laptop with a broken screen, so he use an external screen with HDMI and use Ubuntu 12.04 LTS. But after a while after he started the computer, the screen finally show up with ...
1
vote
0answers
215 views

xfce4 - 'Run Program' dialogue box does not appear when double clicking script

Ubuntu 12.04 > Xfce4 On my previous Ubuntu distro, when I double clicked scripts I got a little dialogue window that asked me if I wanted to run the script as a program or run it in terminal. ...
1
vote
0answers
52 views

how to list opened nautilus tabs with qdbus?

I am trying to dig into qdbus for nautilus to get a list of opened tabs; I managed to do this so far: sites=(`qdbus |grep nautilus -i`); for siteSrc in ${sites[@]};do list=(`qdbus $siteSrc`); for ...
1
vote
0answers
58 views

How do you run a programme from a script.sh

What I'm Trying To Achieve I have to start somewhere, so here goes. I am trying to start two programmes at Startup and I would like to learn how to write a script.sh file at the same time. Question ...
1
vote
0answers
230 views

apachectl configtest shows Syntax ok even errors are there in the configuration file

Given below is one of my apache configuration files: <VirtualHost *:80> ServerName testeight.qburst.uws DocumentRoot /home/testeight/public_html/testeight1 ...
1
vote
0answers
174 views

Continue script in terminal after pkill fullscreen program

I'm running a fullscreen program and i'm using pkill to close it by a keyboard shortcut. Killing the program works but my kill script also contains some other code. The rest of the script isn't being ...
1
vote
0answers
170 views

Is it possible to use the conditional arguments in a preseed?

I am trying to create a preseed.cfg that is usable for a CD based installation and a network based installation. I figured the easiest way to do this would be to use a bash conditional "if". As part ...
1
vote
0answers
58 views

How to kill a java process which is configured in /etc/init.d using normal user via batch file

I have a script which is located in /etc/init.d to run a jar program. I need a batch file to kill this jar program after login, is there anyone know how to do it?
1
vote
0answers
201 views

Screen (command-line program) bug?

fired up my Minecraft server again after about a year off. My server used to run 11.04, which has since been upgraded to 12.04; I lost my management scripts in the upgrade (thought I'd backed up the ...
1
vote
0answers
65 views

How to run script when locking screen and end it when user type in password?

What I am trying to do is to run a script while screen is locked. Can somebody guide me through it?
1
vote
0answers
86 views

Ubuntu Upgrade Issue - ISO Files

Earlier ISO files downloaded from the Ubuntu Websites contained an upgrade script. Thus the ISO image could be mounted and the upgrade command issued. Current ISO images seem to miss that command ...
1
vote
0answers
166 views

How can I create a simple fogger script?

I recently created a fog app (using fogger) for mightytext.net and it works great. I want to create a script that will show notifications with notify-osd instead of the Javascript notification I ...
1
vote
0answers
70 views

How to detect “ghost” X sessions?

The trouble is that, sometimes, the X session stay open after that the user is disconnected (such as when the network link is disconnected) It occurs in many ways, such as via ltsp or via ...
0
votes
0answers
8 views

Start a PHP Script from Startmenu (Lubuntu)

I try to start a PHP script directly from the start menu of Lubuntu. But it doesn't work the only thing who's happening is that it starts a Terminal. I setted the permissions with chmod a+x. Hers my ...
0
votes
0answers
8 views

how to write a shell script which gets notified when an avi file is played from terminal?

For my project purpose I want to write a shell script program which runs in the background and acts as a listener to a specified avi file. When that avi file is played from terminal my script file ...
0
votes
0answers
10 views

Recompile package (with applied .diff file) after every update

I have a .diff file which I use to patch unity source code and then recompile it, so I can remove trash icon from unity panel which is important to me. However after every update of Unity, the patched ...
0
votes
0answers
35 views

Run multiple scripts using one script on boot?

I need help. I've tried several methods to get this to work. Basically, I home host a server on my PC, the problem is, I want it to be online when logged in as every user on the computer. It uses ...
0
votes
0answers
34 views

How to shutdown Ubuntu after (2 hours) of idle?

Running: Xubuntu 14.04 32bit. I have read several outdated, not working, working different that I want answers here and elsewhere. I had a script that resulted in shutting my Laptop down at boot time ...
0
votes
0answers
26 views

shell script + mutt: mutt terminating while loop

I am having a problem with mutt exiting my while loop prematurely in my shell script. The while read MAILTO loop of my function sendFiles will only process (send) the first file and then returns. ...
0
votes
0answers
13 views

Startup script for pxeboot

I am working on pxeboot. Now i want to do startup script in pxeboot server and whenever client started the startup script will run on the client machine. How to do that. ?
0
votes
0answers
35 views

Java -jar arguments being ignored

I'm using Ubuntu 13.10 and Oracle Java 1.6.0_45 (need the oracle version for some development work I'm doing). I can recreate this problem with nearly any jar file but the specific one is with a ...
0
votes
0answers
22 views

Hibernation fails, after trying to repair no-WLAN-problem

After noticing that my Ubuntu 13.04 had no WLAN function after resuming from hibernation, I tried the sudo restart network-manager as explained in this question: No wlan after standby . It brought ...
0
votes
0answers
107 views

Preseeding/Kickstart Ubuntu install

I am trying to achieve the following: I have created a kickstart script as adviced here: Automatic Installation - help.ubuntu.com and want to run it from the live session, without passing a boot ...
0
votes
0answers
27 views

A script which can be run from a flash drive and modify startup applications

So I have created a script I would like to run on computers at startup on the network I manage. Each is unique, so merging settings accross the network would be problematic. I could change each ...
0
votes
0answers
42 views

Kubuntu: open application on specific monitor using bash script

I use two monitors and i want to write a bash script which opens applications on my second monitor (thunderbird for example). I use conky which is also on my second monitor. I want to define the size ...
0
votes
0answers
24 views

Does anyone know how to connect to network Drives using scripts?

I've looked around, but I couldn’t find anything that worked. I'm trying to create a script that runs at startup which connects to my colleges network folder(smb://stuff/stuff). This script would ...
0
votes
0answers
44 views

How can I fix this vncserver startup script?

I've been working on getting multiple remote desktops up-and-running on my new installation of Ubuntu 12.04.3 by following this guide: ...
0
votes
0answers
30 views

Notify me when a LTSP client inserts a USB

I want a script/software to notify when an USB is connected to LTSP client machines. How to show notification when a usb device is inserted? This question has an answer but for Ubuntu version <12. ...
0
votes
0answers
11 views

How do I write an LSB header?

I used these instructions to try to make a script run at startup. I got the error "missing LSB information. See http://wiki.debian.org/LSBInitScripts" So I did. I sort of get what's going on, but ...
0
votes
0answers
56 views

Is it ok if rc.local calls script with infinite loop? and some rc.local basics

I'm running 12.04, and I've never really messed with rc.local. First, when I source myscript.sh in rc.local, should it be /path/to/myscript.sh or sh /path/to/myscript.h or does it even matter? Can ...
0
votes
0answers
17 views

How to create a script to play a sound when F12 is pressed?

I would like to listen a sound when Yakuake terminal is displayed this happens pressing F12, but I would like to listen a sound at the same time. Any suggestion is more than welcome.
0
votes
0answers
25 views

Need a shell script to loop launching a connection to a thin client, waiting, logging off, then connecting to a windows 7vm

I'm very new to Ubuntu and I need to have a shell script to do what the title says. I used: xfreerdp -u [uname] -p [password] -o --plugin drdynvc --data rdpeusb -g 1280x1024 -- [vm's ip] to make ...
0
votes
0answers
56 views

hostapd run as service/startup

I have installed and configured hostapd in ubuntu and everything works as expected. However, I would like to start the associated config/scripts files automatically. I have created one script file ...