General :: Alternative To $0 In Bourne Shell?
Aug 25, 2010
I am looking for an alternative to using $0 in bourne shell. I am in the process of migrating all my production shell scripts to a new tool that will automate execution and release of "jobs" in my production system. And this tool does not like the usage of $0. Which means echo $0 or "basename $0" returns null.
View 2 Replies
ADVERTISEMENT
Jun 30, 2011
I just upgraded my OS and find that I have a generic type terminal.How would I go about getting the Bourne again shell?
View 14 Replies
View Related
May 5, 2011
I have a program that I run from the terminal that requires manual input (it's matlab in mex debugging mode, matlab -Dgdb, which starts the GNU C debugger with its own custom settings).
Every time I run this program I always type in the same few commands in the program's interactive shell before I actually start working (for example: run -nojvm; stop at mexFunction; continue). I want to avoid typing these commands and I thought I could do this with shell scripting, saving the commands in the mycommands file, then running: myprogram < mycommands
The problem is that this runs all the commands and then exits the program. I want it to run the commands and return control to me so I can run my commands. Is there a way to tell the shell to use a file or a string as the input to a program then immediately return control to the user without the exiting the program?
View 3 Replies
View Related
Oct 6, 2010
I have a question about using bourne for a shell script. I have a script that at the moment performs a logical dump of my database, backups up the physical files of the database, and backs up everything within /var/www
I want to be able to copy the files over ssh to a remote server. However, the only way I am able to find examples of doing this is when you exchange keys and do not need to provide a password. How can you write a script that requires a password, not key exchange? I was told I specifically have to do it this way.
View 3 Replies
View Related
May 30, 2011
So, is there anyway to install Bourne shell in ubuntu? How can we bring Bourne shell to ubuntu?which Linux distro uses Bourne shell.? Is there anyway to use it via VirtualBox?
View 2 Replies
View Related
Jan 8, 2010
I want to suppress the output resulting from the commands in my scripts, when writing batch commands in dos I would just use @Echo Off.
I have written an example of what I want to achieve
Code:
#!/bin/bash
clear
@Echo off
[Code]....
View 8 Replies
View Related
May 3, 2011
Just as the topic.How to install the extension alternative-status-menu?I would like the option "Power off " always have a visible, without the need to hold down the key "Alt".
View 1 Replies
View Related
Mar 24, 2011
There are a lot of tutorials online for getting at individual features in AWN (or DockBarX), and I understand that not every feature I'm making use of here is necessarily going to be useful to every user - this is an interface tailored to my workflow. Still, if you're new to AWN, here's a quick tutorial on some of the features you'll want to know about to be able to take full advantage of it. The goal here is to configure AWN as an alternative shell to Unity that retains all the same basic features (and a few extra.)
In this tutorial, despite the default settings on everything else, I'm using the (very trendy, I know) Orta theme and Faenza icons. I don't think it's without reason that these are becoming Gnome's Aqua. They're very readable and clean, and they both include a lot of special features (like Orta's extensive appearance configuration options and Faenza's inclusion of special notification tray icons for common apps like Dropbox and Tomboy.)
Although I know there are perfectly good reasons for both options, I'm going to be assuming in this tutorial that you're using a theme with the window buttons on the left, as this is needed for the Unity-style workflow presented. If you don't know how to change this feature, I'll explain it when I mention gconf-editor below.
Ingredients:
We'll need to add two PPAs to your system - one for AWN and one for DockBarX.
Code:
sudo add-apt-repository ppa:awn-testing/ppa
sudo add-apt-repository ppa:dockbar-main/ppa
After that, we'll update the package lists, then install these packages.
Code:
sudo apt-get update
sudo apt-get install avant-window-navigator-trunk dockbarx awn-applet-dockbarx xfce4-utils ccsm gconf-editor
[code]....
We're most of the way to a functional-looking desktop, but there's still no Run Dialog when you press Alt+F2, because this is actually a dialog provided by Gnome Panel.Instead, we'll use the one provided by xfce-utils.From the Main Menu at the left, go to Preferences -> Compiz Config Settings Manager (ccsm), then click the Commands tile.
Enter "xfrun4" as Command 0, then click the keybindings tab. Enter whatever keystroke you like, although you might want to make it something other than Alt+F2 to avoid possible conflicts. You could use something like Synapse instead of xfrun4, although xfrun4 will allow you to run more complex commands. Either one will appear when you select Launch from the Main Menu.
View 9 Replies
View Related
Feb 13, 2010
I have a command which generates the following output:
Code:
$ sudo vnconfig -l
vnd0: not in use
[code]...
View 6 Replies
View Related
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
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
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
Feb 14, 2011
I am tired of watching fsck check my filesystem when my eeepc 901 shuts down abruptly due to a crash. I know that with a journaling filesystem, I won't have to wait for a check. However, I am well aware of the poor I/O performance of the SSD, so I can imagine using a journaling filesystem being even more frustrating, since there will be constant writes to the journal? I will buy a new laptop without such a crummy ssd someday but, is there anything I can do now, on the software side of things?
View 3 Replies
View Related
Mar 7, 2010
Recently alt-ctrl-F1-6 to drop into a VT stopped working. I don't use that everyday so cannot really isolate why it may have happened (investigating WM rebuild).
Could something in a kernel rebuild do those? I don't recall seeing such an option.
Anyway, does anyone know of another way to get into a VT from X?
View 2 Replies
View Related
Apr 27, 2010
Looking to get some input on finding a distribution to move to from Ubuntu.Overall, there's some changes--mostly unimportant overall, but stick in my craw--on the horizon, and I'm looking for alternatives. I'm a casual user, only one using my machine, don't need anything extra-special...something that isn't extremely utilitarian from the get-go, and doesn't come loaded with a boatload of things I'll never use. I enjoy putzing around in a CLI, and I'm not opposed to having to get used to slightly different commands when using it (though I expect that, on the whole, most things will be the same).I know, a little vague on what I'm looking for...best put, a stable system that doesn't require me to do TOO much, but lets me do what I want even if it means breaking things every once in a while.
View 6 Replies
View Related
May 10, 2011
Given the recent dealings between Skype and Microsoft (here), one can guess that Linux support will be dropped. It wasn't amazing, but it ran. Moreover, security of transmitted data, in my own opinion, will be more questionable as of this acquisition.
What are the alternatives? If there are no full solutions - I propose the unification of several partial solutions into a merged FOSS project. I recommend a secure chat/video client with SIP capabilities and native ports for Linux Console, X, and FreeDos.
View 7 Replies
View Related
May 27, 2010
I like how iftop shows at a glance and in real time where my bandwidth is going. It requires root privileges, however. Is there a similar command or tool that a regular user can use to visualize bandwidth use? Say the kind of user who shouldn't be given the keys to the kingdom?
View 3 Replies
View Related
Jun 21, 2011
Apart from lynx, which other linux command can I use for browsing the web incase I don't have lynx installed?
View 6 Replies
View Related
Jun 26, 2011
Can anyone recommend a good alternative to uTorrent to run on Ubuntu 11.04? I've tried running two versions of uTorrent in wine and the result were less than impressive to say the least. I also downloaded uTorrent for linux from there site but can't get either package manager to see or access the .tar.gz archive or any extracted files?
View 4 Replies
View Related
Jun 11, 2011
What is the Visio alternative in linux if there is one?
View 6 Replies
View Related
Jan 27, 2010
Is there a Linux alternative for AutoHotkeys? (or something to create hotkeys and text expansion?)
View 2 Replies
View Related
Nov 19, 2010
I would especially appreciate notes import from OneNote, some notes sync option and gtk base.
Or maybe it is not an overkill to run OneNote on Wine?
View 2 Replies
View Related
Apr 19, 2011
I don't know if I saw this minimize effect in ubuntu but definitely have seen it on other nix systems. It's basically a little button in the menu bar that when clicked, "minimizes" the window so that only the menubar shows.how to get it working on ubuntu.
View 1 Replies
View Related
May 5, 2011
my use for fiddler is completely different; Fiddler2 is my example.In Fiddler2 I can download streams from websites ; for example if I stream a video or listen to music I can download the entire stream from Fiddler.In linux is there something similar? I compare to fiddler because it acts as a proxy and allows me to download these streams in windows quite easily.would be can I download a full stream from Wireshark?
View 1 Replies
View Related
Jul 22, 2011
On windows I have an autohotkey script which:
- Only works when caps lock is on
- Generates left, middle and right mouse button events when left control, menu and alt keys are pressed
- Allows holding the keys down (for dragging objects)
Is there an easy way of duplicating this functionality in linux?
View 2 Replies
View Related
Aug 24, 2011
/proc/bus/usb/devices should not be used anymore (and can't be mounted anymore on Ubuntu 11.04) But what is an alternative to it, for use in a terminal? I could easily grep that output to look for a certain device, but I'm lost in all the /sys/ entries...
View 1 Replies
View Related
May 19, 2011
What is the best way to familiarize myself with the functionality of this OS? Are there any free alternatives to it? Is CentOS similar?
View 2 Replies
View Related
Feb 10, 2010
I want to look into disabling things like chargen, chargen-udp, daytime, daytime-udp, echo etc...I have found a manual at:which points me towards the xinetd.conf file. I cant seem to find it, im using ubuntu 8.10 LTS. Should I be looking else where?
View 2 Replies
View Related
Aug 16, 2010
was wondering if there is an alternative method to using udev rules in order to get access to the USB serial ports. Is there a command to check the names and give them to you? I'm looking for something along the lines of "ttyUSB".
View 3 Replies
View Related
Jul 4, 2011
I just found out about Linux and well I love it, it's fast, sleek and easy to use design make it rise above the competitors. So this is where I'm at. I have the latest version of Fedora on a thumbdrive and I when the thumbdrive is plugged in and I turn it on it boots up Fedora, but everytime I turn it off I lose all data and I start a fresh session. So when I got to instal Fedora to my hard drive. [URL]
Now I read a few articles on how to do partitions but, all of them want me to put in the original windows 7 instal cd/dvd into my laptop and somehow partition. But here's the thing I'm on a Compaq Mini real solid computer I love it but thats beside the point. What it really comes down to is how I do I get this dual boot working without having to reset everything and pretty much is there alternative for partitioning.
View 14 Replies
View Related