General :: Getting The Bourne Again Shell?
Jun 30, 2011I 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 RepliesI 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 RepliesI 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 View RelatedI 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?
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.
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 RelatedI have a command which generates the following output:
Code:
$ sudo vnconfig -l
vnd0: not in use
[code]...
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 RelatedI would like know when it is necessary or advisable to write a shell script instead of shell function ?
View 3 Replies View RelatedI 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 RelatedI 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?
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 RelatedIs 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.)
Is there a way to export a variable to parent shell in shell scripting ?
View 3 Replies View RelatedI 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....
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.
I am using Red Hat Linux Enterprise version 5. I've noticed people sometimes running commands with a couple of & options. For example, in the below command, there are two & signs. What is the purpose of them? Are they always used together with nohup?
nohup foo.sh <script parameters> >& <log_file_name> &
I was working on a shell and got some weird exceptions in my program.Just as a reference, I want to save all that is there on my shell to a text file. I do not just want the command history but also all the results that those commands produced at the shell.Is there some built-in utility to do this? I have kept the shell open for now, so that I can take the backup. Also, I am using xterm and it does not allow selecting all the way upto the top of the shell, so the ultimate way is to take the backup one screen at a time.
View 2 Replies View RelatedI was wondering if it is somehow technologically possible for Windows to add some sort of Linux interface? I think it would win over many programmers to develop on Windows.
View 4 Replies View RelatedI have achieved the following in the terminal:-
ftp> open <name of server>
name <insert log in>
password: <password>
[code]...
I've had my prompt change whenever I :sh (:shell) out of VIM, but can't for the life of me remember how?. The idea is to change the prompt to something like [SH] <your usual prompt here>, so that I know that VIM is running in the background.. I often logout of the shell, because I think VIM is open.
View 3 Replies View Relatedill have this question on the test maybe : In dir00 directory create files year01.txt, year02, ...year05.txt with January calendar for 2001-2005 years in it.-i'm lost. i execute this : cat | cal 01 2001 > year01.txt
View 12 Replies View Relatedhow to write own shell in linux?i want to know procedure of shell programming.
View 5 Replies View RelatedWhat is shell scripting? what is 'bash'?
View 14 Replies View RelatedI'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 RelatedHello.I am using Opensuse 11.1 (just installed),gnome-based .My problem is,I can only login as root,cos the tty's attached to my normal user(non-privileged)keep crashing(I checked this with last).Is there any way I can fix this?I reinstalled several times,nothing to do.
View 9 Replies View RelatedHow to login as root in linux shell?
View 3 Replies View RelatedI occasionally use screen within linux. Every now and then my connection plays up and I lose access to the ssh shell, when I try to reattach myself to the screen instance this is what I get:
There is a screen on:
2690.pts-0.localhost (09/03/10 12:56:08) (Attached)
There is no screen to be resumed. What I could do in this case? I guess screen believes I'm still attached, while I'm not.
is there any good way to encrypt a bash script to make no one view its contents & so cant edit it
View 14 Replies View Relatedin gnuplot it's possible to set the value of a variable via linux shell command.or instance we can do
Code:
a="`echo 1`"
b="`echo 2`"
[code]...
Im want to know the command to add a user with no shell access so they cannot log onto the system, but there a user on there so for example they can be part of the email server.
View 2 Replies View Related