Ubuntu :: Help Building A Startup Shell Script

Apr 18, 2010

I'm looking to make a launching script which launches a program in one of the current directories that the user has open, the problem is I have no idea how to get info about all of the terminals open.I simply want to check which directories the user has open and do a pwd on the terminals, and then use that to cd into the dir before launching. I might be able to use a combo of who,tty, top, and pwd...but I don't know where to go.

View 7 Replies


ADVERTISEMENT

Ubuntu :: Building A Quick Shell Script?

Aug 29, 2010

simple shell script that creates a PC speaker beep when a certain background process or script stops, and possibly reports the run time of that process.

View 6 Replies View Related

Debian :: Failed Building Gnome-shell On Squeeze?

Mar 27, 2011

when i ran jhbuild build as a normal user, i found below messages before it failed

Code:
Please add the files codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4 from the /aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

[Code]...

View 3 Replies View Related

General :: Building Application In Shell Using Make Command

May 26, 2011

Consider that I am building my application in Linux shell using make command but somehow the build fails. Is there any way I can find out that the build has failed (of course looking at shell for error messages will do the job for me but I don't want that). Is there any flag make or shell will set/reset if such failure occurs ?

View 5 Replies View Related

Ubuntu :: Autorun A Shell At / Before Startup?

Nov 20, 2010

I need to run a shell to enable pseudo-multitouch on my touchpad using a shell which automatically configs synclient.I put this file under /home/<username>/, and also put this to the Session manager under system menu. But it doesn't work. I've already used chmod command to make sure that the file is executable.

View 9 Replies View Related

Ubuntu :: Start A Shell Script With Startup?

May 6, 2011

I wrote a script, and what to make it surring with ububtu as startup shell.

View 9 Replies View Related

Red Hat :: Run Shell Script During Startup?

Jul 29, 2009

In bash shell how to run shell script during startup

View 2 Replies View Related

General :: Execute A Shell Script On Startup?

Mar 31, 2010

I have create a script to start a server(my first question). Now I want it to run on the system boot and start the defined server. What should I do to get this done? My findings tell me put this file in /etc/init.d location and it will execute when the system will boot. But I am not able to understand how the first argument on the startup will be start? Is this predefined somewhere to use start as $1? If I want to have a case startall that will start all the servers in the script, then what are the options I can manage.

My Script is like this:

#!/bin/bash
case "$1" in
start)
start

[code]....

View 2 Replies View Related

CentOS 5 :: Run Shell Script At System Startup?

Apr 28, 2011

I use CentOS 5.5 and I've trouble in run shell script after system reboot. That script runs jboss server and it looks that way:

#!/bin/sh
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/tmp/
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/work/
/opt/billing/jboss-6.0.0.M1/bin/run.sh -c default -b 0.0.0.0 -C /opt/billing/jboss-6.0.0.M1/server/default/lib/ > /dev/null &

I've created user account for jboss.

privileges of above script are okay. I've tried so far:

- add command to /etc/rc.local

- add script to /etc/rc3.d/ and create symbolic link to it in /etc/init.d/

- add run script by @reboot annotation in crontab (crond automatically starts with OS)

and jboss still sleeps after reboot. I've noticed that commands which remove directories seem to work when I've added them explictly to /etc/rc.local. But next command which runs jboss hasn't been executed.

View 4 Replies View Related

General :: Running Shell Program On Startup As Root In Terminal

Aug 4, 2010

I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.

View 10 Replies View Related

Slackware :: Unclear Screen - Move Aside All Shell Startup Scripts?

Mar 18, 2010

using any sort of rxvt-based terminal with TERM set to rxvt (or rxvt-unicode) then ^L will not clear the screen, only act as newline. This is not the behavior I see on Debian or CentOS. I have the same user environment at each site. Using urxvt on centos, ^L will clear the screen like readline(3) says it should. If I then ssh to slackware, it won't. exporting TERM=xterm will cause the correct behavior after having logged in to slackware, but I'd rather understand why this is happening. I've tried moving aside all the shell startup scripts, setting clear-screen explicitly in .inputrc, setting stty sane nothing doing. Am I missing something?

View 10 Replies View Related

Ubuntu :: Parallel To USB Printer Cable - Shell Command To "mount" It At Startup

May 5, 2011

what shell command I should look into that will "mount" a printer that is present in lsusb output, but not present in /dev/usb/? I have a working printer connected with a Parallel to USB printer cable, but after I reboot the machine the printer is not "mounted" (for lack of the correct term?) at /dev/usb/lp0 until I unplug the USB cable and plug it back in lsusb sees it always though.

View 1 Replies View Related

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related

Ubuntu :: Switch Desktop Shell From Unity To Gnome-shell?

Apr 14, 2011

Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.

(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)

View 2 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

Fedora :: Stuck With Bash Shell / Changing Default Shell To Tcsh?

Mar 14, 2010

I want to change my default shell to tcsh. I used

Code:
usermod -s /bin/tcsh username
command as given at url

But if I open a new shell, it is still a bash shell.

How do I make my default shell as tcsh?

View 6 Replies View Related

Software :: Export A Variable To Parent Shell In Shell Scripting?

May 21, 2009

Is there a way to export a variable to parent shell in shell scripting ?

View 3 Replies View Related

Programming :: Shell Scripting / Create A Shell Script Similar To Ls?

Jun 5, 2011

I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.

Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....

View 10 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

Programming :: Bash-shell-like Less Functionality In The Python Shell?

Jun 25, 2010

Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?

Example:

Code:

>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...

I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.

View 4 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

Ubuntu :: Building New 10.04 Box (2-3 Grand)?

Jun 27, 2010

I am returning to Ubuntu as my primary OS. For this, I am building a new system (I have a beast of a Windows desktop, but retiring that as an HTPC and building a new desktop). Will be moving some items from the Windows desktop like the speakers, keyboard/mouse, monitors, etc, that will not serve with the HTPC configuration. Basically, this is what I am building (amost identical to my current Windows machine, except it's a Core2Quad and has 12GB of RAM):

i7-860
P55 chipset motherboard
8GB of RAM
system/boot volume volume 2x64GB 2nd gen 64GB SSDs in RAID0 (have hardware garbage collection so will run find in RAID)

[code]....

Video Card: with 10.04, should I go with ATI or nVidia for a card? Am running triple monitors, and will be gaming using Cross-Games and Cedega. Which drivers between the two manufacturers is performing the best and would be best for gaming/multiple monitors.

RAID Card: The 2320 says it has native support in the 2.6.25 kernel. I get good speeds (500-600 MB/sec on both the SSDs and the RAID5) and no troubles with it on the Win Desktop. Should I have any issues with it under 10.04 or would there be a suggestion in the <$350 price range to replace it with? Or, would running the ICH10R off the motherboard work with the alternate CD?

SSD Setup: What partitions would be best to keep off the SSD volume and on the RAID5? I know /tmp, /home, /var, and /swap should be kept off the SSDs to reduce the excessive writes. Any other suggestions? With a 128GB system/boot volume, what would you do for partition sizes there?

Sound Card: Is the Omega supported under 10.04? Or another suggestion for good 7.1 surround sound?

View 5 Replies View Related

Ubuntu :: Building A PBX / Switchboard?

Nov 3, 2010

I run a small business and are right now in the need of a telephone solution to run on my Ubuntu server. Obviously there's some alternatives out there that seems really extensive, maybe too extensive, so if there's anyone here that would like to share their experiences and thoughts in this area

View 1 Replies View Related

Ubuntu :: Building New PC Getting Confused With Motherboards

Jan 13, 2010

I am building new AMD PC and done lot of research on motherboards, now I am getting confused with the two motherboards, ASUS and Gigabyte..I am searching for a board with no integrated VGA and no SLI with 5.1 audio, good price.I heard that some motherboards of Gigabyte caught fire.

View 9 Replies View Related

Ubuntu :: Building A Frontend In BASH?

Jun 8, 2010

I want to be able to create a Dialog (similar to the one for Winetricks, run it without parameters to see it) with a checklist that tells my script to go out and download whatever scripts of mine I've selected. I also wish to make a GUI for some of my more complex scripts, such as my Backup script so I can have a nice looking menu instead of a text based one.Does anybody know a good place to learn how to do this, with lots of explanations and breakdowns of each part of the script?

View 4 Replies View Related

Ubuntu :: Building New 64bit System

Jan 30, 2011

I've decided to build a new system. I been doing a lot of compatibility searches with little luck. I don't have a bunch of money to put into it but here is what I've been looking at. I have been very happy with Ubuntu 10.04 lts Lucid 32-bit version and thought I would install the 64-bit version on this. I would like your input on this system. Are there any compatibility problems here?

ASUS M4A785-M AM3/AM2+/AM2 AMD 785G HDMI Micro ATX AMD Motherboard
Model #:M4A785-M
Item #:N82E16813131595
XFX PVT94GYAJG GeForce 9400 GT 512MB 64-bit DDR2 PCI Express 2.0 x16 HDCP Ready Video Card
Model#: PVT94GYAJG
Item #:N82E16814150488
AMD Athlon II X4 640 Propus 3.0GHz Socket AM3 95W Quad-Core Desktop Processor ADX640WFGMBOX
Model #:ADX640WFGMBOX
Item #:N82E16819103871
Kingston HyperX 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 Desktop Memory Model KHX8500D2K2/4G
Model #:KHX8500D2K2/4G
Item #:N82E16820104073

Along with this I have 1-Sata 500G and a 1-Sata 250G hard drives that will be installed.

View 9 Replies View Related

Programming :: Prevent "leak" Into Shell From A Customized Shell Menu Script?

Dec 15, 2009

I've created a simple script based menu. This menu will be accessed by only a certain users via ssh.When user logs in, the menu will automatically run. (configured at user's .bash_profile).How do I force the session to close when user hits Ctrl-C or Ctrl-Break ?In a nutshell, I don't want user to have access to shell.

View 11 Replies View Related

Ubuntu Multimedia :: Building A Media Center PC?

Jan 31, 2010

So I've got old components from my previous computer I'd like to use to build a media center. Here's what I have:

Case
550W PSU
MSI K8NEO 4 Platinum MOBO

[code]...

View 3 Replies View Related

Ubuntu :: Building Multiple Versions Of One Software?

May 26, 2010

I am not sure if this is the right section to ask this question (sorry if it isnt). Anyway, I want to build and install 3 different softwares:OpenCV, Player, Stage. These are required for my school projects and research etc. Now, I need to install them in this manner:
Opencv-2.0.0, player-2.1.3 and stage-2.1.1 and Opencv-2.1.0, player-3.0.1 and stage-3.2.2

The reason for this is, these are the sets of versions that talk to each other without problems. And I need the older versions for a project that I'm currently working on and its always nice to have the newest version installed on the system. If its only a single version install, its pretty easy and I can do it.Since I want to install multiple versions of the same software I could use some help. I am not sure whether I can install all of the them in the default directory (/usr/local/). So, I can set up a separate directory on my home folder. But thats as far as I've gotten to. I am particularly concerned whether one version would break another. Is there anything that I can do to avoid this?

View 3 Replies View Related

Ubuntu :: Conifgure Error While Building Empathy

Jul 13, 2010

I recently wanted to build Empathy 2.31 from a source tarball (after having installed all the dependencies listed on the Empathy website).I got the following error while launching ./autogen.sh:

Code:configure: error: glib-compile-schemas not found.After some googling to try to fix this problem, I've found a thread on these forums. It was saying install libglib2.0-dev an then install (or remove) gnome-shell.I tried every solution I've found but nothing works, still got the error.Does anyone here succeded in compiling Empathy from source please?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved