A shell script is a script written for the shell, or command line interpreter, of an operating system.
0
votes
0answers
9 views
Unable to launch vmware-view client at startup
I have written a script to launch vmware-view client at start-up and have followed the below steps and still it wouldn't launch. Please suggest. Please note that I am able to launch the app by adding ...
0
votes
0answers
9 views
powertop script problem
I made this script according to my powertop report:
echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy';
echo 'auto' > ...
1
vote
2answers
24 views
Run a script on startup to periodically disable the keyboard
I have the following script
while [ true ]
do
gnome-screensaver-command -l
xinput set-int-prop 10 "Device Enabled" 8 0
sleep 1m
xinput set-int-prop 10 "Device Enabled" 8 ...
1
vote
3answers
69 views
Bash script to determine ip address
Is it possible to determine the ip address of systems within a network using a bash script. And how.
0
votes
2answers
24 views
run Smartgit in Ubuntu 13.04
I have downloaded a Smartgit 4.5.5 and trying to use in Ubuntu 13.04. But the problem is when i double click on the script smartgithg.sh it opens on the Gedit. On the previous versions of ubuntu i did ...
0
votes
0answers
13 views
xgamma run on cron
I am trying to set a cron job to run every minute. I have a script in a directory in my home directory. Inside the script is:
#!/bin/bash
/usr/bin/xgamma -gamma 2.0
I actually prefer 0.65, but I'm ...
0
votes
0answers
15 views
restart lightdm after gnome-session-quit
We are using a login script to refresh a profile from a saved state every time a user logs in. When they log out our script calls for gnome-session-quit --no-prompt and brings them back to the login ...
0
votes
1answer
14 views
Run script at boot/startup in Ubuntu 12.04 x64 Server
I am trying to start the RoR application named fedena.
What I generally do is SSH login as rootand hit these commands
root@cloud:~# cd fedena
root@cloud:~/fedena# script/server
=> Booting WEBrick
...
0
votes
1answer
18 views
How to run a script after or before hibernate
I want to run a 4 commands before a hibernate and another 2 commands after update. Is it also possible to arrange the time/squence of each commands,if yes then could you explain how?
8
votes
2answers
405 views
Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin
I'm running an Ubuntu Server 13.04, but I see the same on a 12.04: I have six directories with command files. These are:
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin
What are the ...
3
votes
2answers
69 views
Can I run command-line commands within a python script?
Sorry I'm kind of a noob at this:
Basically I've downloaded this package that deals with text files that is run from the terminal, but the command I need takes in two arguments. I also need to do ...
1
vote
2answers
41 views
Simple shell script
I am quite inexperienced when it comes to Linux and now I am setting up the system. What I want to do is to write a shell script, that will do two things:
Start i2prouter - as I do not want it to ...
0
votes
0answers
27 views
Has anybody this Chromium Nightly install script available?
I used a script in the past to install the latest nightly binary in Ubuntu.
The original source from Rui Oliveira is here
...
2
votes
3answers
69 views
How to execute sudo commands with Expect & send commands in bash script?
Can any body let me know how to execute sudo commands with expect. I tried the following but this is not working. Can anyone give me suggestion please?
set login "sasuke"
set addr "hostname"
set pw ...
4
votes
2answers
49 views
A script to monitor new files in folder so I can add them to an external XML files
I want to monitor (by cron, I got that part covered :P) new audio files in folders so I can add them toa separate XML files which act as an podcast RSS feed. The file structure looks like this:
- ...
0
votes
1answer
20 views
Hide desktop startup screen
I am working on a hardware device running on Ubuntu. One of the most important features is good presentation - in my case not showing the OS startup screen etc. Currently I am using upstart to start ...
0
votes
2answers
39 views
How to Import a Variable from a Script?
I want to get a variable from another script, as demonstrated in
http://stackoverflow.com/questions/5228345/bash-script-how-to-reference-a-file-for-variables
However, the answer uses source command ...
1
vote
1answer
22 views
How do I read this “install Script”? SpotifyController
Spotify Controller.
I downloaded the files from the Ubuntu link provided in the aforementioned. Within was an instillation file with instructions, but i have no idea how to read it! Yes, I'm a ...
1
vote
0answers
16 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 ...
0
votes
2answers
45 views
Problem on running shell script (how to NOT make it run from gedit) - Ubuntu 12.04
I want to run shell script or at least run it from terminal. I tried going to home folder/edit/preferences/behaviour and set executable text files to 'ask each time' but it doesn't even give the ...
1
vote
0answers
33 views
How to monitor a local file for changes, apply a RegEx replace on it and save/overwrite to a destination file?
I'm running Lubuntu 13.04 (Raring Ringtail).
I'd like to start a script or something that watches a text file for changes. When the file changes I want to run it through a RegEx parser to replace ...
4
votes
5answers
182 views
Not able to execute a .sh file: /bin/bash^M: bad interpreter
I wanted to execute a shell script:
-rwxr-x--x 1 root root 17234 Jun 6 18:31 create_mgw_3shelf_6xIPNI1P.sh
I was trying to do by a standard procedure . But I am getting this error:
...
0
votes
1answer
28 views
How to insert parameter into command in bash script?
I have a bash script called "startserver.sh".
I call it from another file like this:
sudo sh /opt/startserver.sh 400
I want to use the parameter "400" in startserver.sh like this:
java -Xmx400MB -jar ...
0
votes
1answer
41 views
Script to turn off Wacom Bamboo touch randomly stops working
I've created a script to turn off the Wacom Bamboo touch.
#!/bin/bash
xsetwacom set "Bamboo 16 FG 4x5 Finger touch" touch off
xsetwacom set "Wacom Bamboo 16FG 4x5 Pen eraser" touch off
xsetwacom set ...
0
votes
0answers
37 views
Run script at startup for all LDAP user
I'm building a LDAP network and I want to execute some command after login for all LDAP users. More, in my scripts I have to run some command as superuser with SUDO like the command MOUNT.
What can I ...
1
vote
1answer
50 views
Problem running a script after resume
I am trying to run a script after resuming from suspend. I need this script to disable the right click in the touchpad and to fix a problem of my wifi. Accordingly to How to run script after resume ...
0
votes
0answers
15 views
Oh-My-ZSH Autocomplete Script append '/' (Forward-Slash) to completion
I'm trying to create an autocomplete plugin for Oh-My-ZSH, everything works fine except on hitting TAB the completion is followed by numbers of / .
Here are the codes that I currently have:
local ...
2
votes
1answer
68 views
bash script source: No such file or directory
I have a script that begin like this
#!/bin/bash
VALKYRIE=~/myProjects/valkyrie
source $VALKYRIE/cluster.conf
but when I run it it returns
line 2: ~/myProjects/valkyrie/cluster.conf: No such file ...
1
vote
1answer
47 views
Upstart job fails to respawn and hangs when tried to stop/restart it
I'm using Upstart 1.5 in Ubuntu 12.04 to manage a process created by some user but needs to be managed as system job as starting on boot, respawning if it fails and we been able to start/stop it at ...
1
vote
1answer
48 views
Is it possible to make scripts to automatically install programs?
I have some programs that I like in Ubuntu and some that I don't like. Is it possible to make a script to my memory stick such that it removes those programs I don't need and installs those I do need? ...
0
votes
0answers
12 views
shell script error ( java related) [duplicate]
I am attempting to simplify a question I asked earlier since no one seemed to be interested in it. I am hoping by simplifying it more people will look at it. Here is the original post. when I try to ...
0
votes
2answers
48 views
Testing my system, I need a script that will use as much ram and swap as possible
I'm testing my system with zram, I need a script that will use as much ram as possible. This script should fill up my ram with random stuff not just zeros.
0
votes
1answer
50 views
Spotify-nonify.py script doesn`t work in Ubuntu 13.04
When I was on Ubuntu 12.10 I was using spotify-notify.py script which make spotify compatible with media buttons and there is a notifications showing when playing a song
but on Ubuntu 13.04 is no ...
2
votes
2answers
72 views
Detecting if folder exists and renaming by pattern
Me again with another command-line script question :)
I made a helper script that looks like this
echo 'target.bak -> target.old_bak'
mv target.bak target.old_bak
echo 'target -> target.bak'
...
0
votes
1answer
36 views
How to modify an input in bash script?
I want to do the following on a bash script:
I want the user to enter a file name and the bash script must move the file to another file as follows. If the user enters input.tex, I want to move this ...
1
vote
1answer
129 views
Why is the command in /etc/rc.local not executed during startup?
I have a single command in my /etc/rc.local script that is supposed to start the update daemon for Tiny Tiny RSS during startup, but the script is not executed during startup. Why?
The entire ...
9
votes
5answers
305 views
How to use wildcards for string conditionals using bash?
I want to see if a string is inside a portion of another string.
e.g.:
'ab' in 'abc' -> true
'ab' in 'bcd' -> false
How can I do this in a conditional of a bash script?
0
votes
1answer
34 views
dconf usage in shell scripts for GVariant
I get an error when using "dconf write" to value a key with a [] list from a bash shell script
The script below works as expected :
#!/bin/bash
echo "dconf write <PATH> \"['val1','val2']\""
...
0
votes
1answer
44 views
Can't seem to get script/cron job to work?
ive written a ffmpeg script to mass convert mkv into mp4. when i run the script as my user, and enter my password for sudo privileges it works very well from the command line. the script is:
#! ...
1
vote
0answers
45 views
Run configuration script at X session resume
On Ubuntu 13.04 I have to manually configure the touchpad since a bug prevents me using the standard configuration tool (changes don't save). However I created a script that sets up velocity, ...
0
votes
1answer
375 views
Wi-FI not working on ASUS U56E on Ubuntu 13.04
I don't think this is a huge problem because it seemed to be an easy fix for Ubuntu 11 and 12 so now I'm using 13.03 and cannot find a solution to my Wi-Fi problem.
My lap-top can find all the ...
0
votes
2answers
48 views
Archive manager started instead of executing a shell-script
When I double click on a .sh (the file is executable) file in Nautilus the archive manager is started instead of executing the script. How can I make Nautilus show the dialog (execute/edit/...) again?
...
1
vote
1answer
44 views
remove completed downoads from rutorrent
I just setup rutorrent after being a long time rtorrent user.
I want to remove the completed downloads. When I use a .torrent file i just have .rtorrnt.rc remove the file and rtorrent removes it from ...
0
votes
2answers
31 views
How do I run a script on startup as superuser?
I want to run a command on startup on my Ubuntu Server. Does anyone know how to do this? Does /etc/rc.local run as superuser? Any help will be appreciated. Thanks!
1
vote
0answers
130 views
Crontab not running a script
I have set my crontab to run 2 script.
the first script is not running.
I set up on the crontab -e not sudo crontab -e
The error i have is this
...
0
votes
0answers
11 views
Log file trigger execution of script [duplicate]
If there is an bad login to Mysql it is logged with the IP in /var/log/mysql/error.log. While that happens, I want a script starts with the log line as input parameter to the script.
I was hoping to ...
0
votes
1answer
122 views
Run script on remote machine via telnet (not SSH)
I need to somehow run a script which resides on a remote machine running Ubuntu.
SSH or any other connection type that requires complex encryption is not possible.
The client that will connect to the ...
1
vote
0answers
49 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
3answers
43 views
Beginner question: Put script in start up? [duplicate]
I'd like to put this basic script:
#!/bin/bash
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger touch" touch off
xsetwacom set "Wacom Bamboo 16FG 4x5 Pen eraser" touch off
xsetwacom set "Wacom Bamboo 16FG ...
2
votes
1answer
100 views
Change Gsetting with script on Logout
System :
Ubuntu Raring Ringtail (13.04) from fresh installation.
Purpose :
Main : Change gsetting (desktop wallpaper) with script on user logout.
What's I've Done : (carefully read)
I try to stop ...





