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

learn more… | top users | synonyms (1)

2
votes
0answers
63 views

Startup script to unmount and re-mount a USB device

I have a Microsoft wireless mouse and it has a scrolling issue in Ubuntu. The scrolling is too sensitive. I've read in other threads that the solution to this is unplugging the USB receiver of the ...
2
votes
0answers
125 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
947 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
174 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
167 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
138 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
31 views

Script for hiding files

I recently found a script for hiding desktop files and folders. The following is the script: #!/bin/bash # cd /home/ramvignesh/Desktop for f in `ls`; do mv "$f" ".$f" done The script isn't working ...
1
vote
0answers
44 views

How do I open an URL from a bash script?

I have a simple script to start a node.js webserver and open the URL in a browser. However the last part doesn't seem to work, it wont open the URL in a browser (or anywhere else). This is the code I ...
1
vote
0answers
77 views

How can I draw selection rectangle on screen for my script?

I am trying to make a simple screencasting bash script. I want to get screen selection coordinates by drawing a red rectangle with mouse. I can use xdotools to get coordinates but how can I draw ...
1
vote
0answers
32 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 ...
1
vote
0answers
109 views

Can you use gnome keyring in bash script, if yes then how?

I am developing a automated mounting script for Windows shares. I have finished the script and it works just fine, but is it possible to add Gnome Keyring to the bash so once user writes hes/hers ...
1
vote
0answers
51 views

Using a keyboard shortcut to execute a script

Hello I am a linux newbie trying to set up a keyboard shortcut to execute a script I have. The script functions as desired, and is #!/bin/bash livestreamer twitch.tv/arteezy best This opens up ...
1
vote
0answers
27 views

Automatically detecting and outputing to s-video at startup

After combing the Internet I have developed a script that is capable of checking whether I have a monitor connected to my VGA port and switching to my s-video port if not #!/bin/bash # if no vga then ...
1
vote
0answers
22 views

Detect file size decrease

I am saving streams from browser cache into my home folder. I wrote a script that takes the specific data type and saves them into disk, and names them as data.1, data.2 , data.3 and so on, creating ...
1
vote
0answers
74 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
30 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
218 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
50 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
74 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
101 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
180 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
104 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
90 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
35 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
302 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
62 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
447 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
181 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
225 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
70 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
90 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 ...
0
votes
0answers
17 views

Bash Script for adding Keyboard Layout to available Layouts

I am writing a bash script to add a layout (Urdu as input language) to the available keyboard layouts. The current status is: script automatically detects the current layout, as a string. adds te ...
0
votes
0answers
24 views

CGI script seems to run but output file is not stdout but name of script file

I have the latest version of Ubuntu 14.04 installed on my laptop. I have installed the LAMP server via tasksel. I followed the instructions for Apache 2.4 from Apache's httpd.apache.org website on ...
0
votes
0answers
10 views

SOHO Network Scripts

I have a trying to develop two simple scripts to automate the set up of a small office with a Ubuntu server and workstations. I am likely in way over my head, but I am trying to do it anyways. The ...
0
votes
0answers
20 views

Script to monitor Internet connection stability

guys. I'm an unexperienced Ubuntu user and I need your help. I would like to be reporteded everytime that the my router loses its internet connection. I mean, I would like to have my Ubuntu send me ...
0
votes
0answers
31 views

How to use folder with wildcards and spaces in find command in script

I want to use find to find files in a set of folders restricted by wildcards, but where there are spaces in the path name. From the command line, this is easy. The following examples all work. find ...
0
votes
0answers
46 views

How to run correctly bash script from another script?

I want to run sqldeveloper on Ubuntu Gnome 14.04. I created some symbolic link and tried to call from one script file another. And it fail with message: /usr/local/bin/sqldeveloper: line 2: ...
0
votes
0answers
51 views

Get file created by a program launched by a bash script

I have the next scripts: | base_dir/ | - test.sh | | tests/ | | - elaborato.sh test.sh run elaborato.sh elaborato.sh could create a file (not always it create a file). I need : to know the ...
0
votes
0answers
29 views

Permissions when running second level script

Evening Everyone, I have 1 bash script that starts the program Motion (some may be familiar with). Motion links to a script in the motion.conf upon picture save or file save to a perl script that ...
0
votes
0answers
17 views

Ubuntu crashing on purple loading screen

I've done something which unfortunately seems to have caused Ubuntu 14.04 to fail at start up and was wondering whether I could get some guidance about debugging the issue. It started when I rebooted ...
0
votes
0answers
22 views

Script runs program instead of just running script

I want to make a script to run the following command with a double click. My script is: cpufreq-selector -c 4 -g performance Manually running it in terminal is fine but if I use a .sh file it ...
0
votes
0answers
30 views

Scanning a folder for new files, and then running them trough cuckoo

I want to create a folder, where I throw in all the malwares I discover. In that folder, I want to run a script that recognize a new file (the malware) and when he discovers a new file, he will submit ...
0
votes
0answers
55 views

Lost graphical login after automating script command

I'm running Ubuntu 12.04 LTS and I want to log all input/output from users. I've simply tried adding script -a -f /LOG_files/Log_file.txt to users ~/.profile. The logging works just fine, but ...
0
votes
0answers
86 views

GRUB2 /etc/grub.d/ 40_custom multi-boot

I am adding GoBoLinux to Windows Vista and Ubuntu 12.04 with GRUB2 on the MBR but I am not clear on the script or how to devise a script to replace 40_Custom. Loading the GoBo GRUB to it's own root ...
0
votes
0answers
28 views

How do I start a tmux window on startup and execute a scrips

I would like to be able to start my server and have a detached tmux window with a script running. So then I can attach with ssh and be able to work with the script. Thanks, Anthony
0
votes
0answers
29 views

Issues with Grep

Why does the bottom line output "0" into the "AD-Results-$month-$Y" file? First grep command fgrep "$month $D $i:" $Filetmp > TempOutput Grep command to read "allows" from tail of ...
0
votes
0answers
32 views

Disabling sticky edges for multiple users at one time

I am trying to disable sticky edges for multiple users across multiple machines. Currently I am using the following code in a script I use for setting up a new machine. dconf write ...
0
votes
0answers
24 views

cron to email when a psql stops recording data

I have a PSQL setup and records data every 10 minute or less. The connection sometimes dies and it results is logging failure and I have no idea when that happens. I want to create a cron job to email ...
0
votes
0answers
22 views

Send invites email to people in this file

For example we have a file and in this file we have email addresses to some people. Is it possible to make script which will take this file and mail to all people in this file and with info about ...