Re: Getting a prompt to show directory path under RH 9.0 bash shell

2003-09-02 Thread bfd
Sean Estabrooks wrote: You can try to track this down further or simply move the setting of PS1 to the very last line of your .bashrc This worked after moving the global definitions to the top of the file. Thanx. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.re

Re: Getting a prompt to show directory path under RH 9.0 bash shell

2003-09-02 Thread bfd
Sean Estabrooks wrote: On Mon, 01 Sep 2003 16:20:53 -0600 bfd <[EMAIL PROTECTED]> wrote: Hello, I want my prompt, both in the text console and X-windows shell console, to show the path to the current directory, e.g., [/usr/local/mozilla/icons]$ Under RH 7.3, I could get this by adding to

Re: Getting a prompt to show directory path under RH 9.0 bash shell

2003-09-02 Thread Sean Estabrooks
On Mon, 01 Sep 2003 22:49:48 -0600 bfd <[EMAIL PROTECTED]> wrote: > >>When adding these lines into .bashrc under RH 9.0, after typing > >>"startx", I get a black screen with a black X indicating the mouse > >>cursor. I believe that X is loading but KDE never loads. > >> [...snip...] > I've used

Getting a prompt to show directory path under RH 9.0 bash shell

2003-09-01 Thread bfd
Hello, I want my prompt, both in the text console and X-windows shell console, to show the path to the current directory, e.g., [/usr/local/mozilla/icons]$ Under RH 7.3, I could get this by adding to my .bashrc file the lines PS1=[\\w]\\$ export PS1 When adding these lines into .bash

Re: basic bash shell ?

2003-08-02 Thread Bob Hartung
Rus, Thanks! Bob Rus Foster wrote: Hi, I am trying to learn a little more about the bash shell so I can figure out some of the script files that I see all the time. Is there a way to run bash scripts or a single line of a script in an interactive mode from the command line and echo the

Re: basic bash shell ?

2003-08-02 Thread Rus Foster
> Hi, >I am trying to learn a little more about the bash shell so I can figure > out some of the script files that I see all the time. Is there a way to > run bash scripts or a single line of a script in an interactive mode from > the command line and echo the output back to

basic bash shell ?

2003-08-02 Thread Bob Hartung
Hi, I am trying to learn a little more about the bash shell so I can figure out some of the script files that I see all the time. Is there a way to run bash scripts or a single line of a script in an interactive mode from the command line and echo the output back to the shell so I can work

Re: BASH Shell Scripting Question

2003-06-27 Thread Richard Crawford
Thanks to everyone who replied to this question. I wound up doing it in Perl. ;-) Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye."

Re: BASH Shell Scripting Question

2003-06-27 Thread pnelson
On Fri, 2003-06-27 at 09:43, Richard Crawford wrote: > Greetings, > > I have a shell script which duplicates a file and then renames the > duplicate file; the trick is that the duplicate file needs to have the > same permissions as the original file. For example: > > 1. Open file A.txt > 2.

Re: BASH Shell Scripting Question

2003-06-27 Thread Gordon Messmer
Richard Crawford wrote: ... 5. Give B.txt the same permissions as A.txt I assume that there is some set of variables I can look at to find various attributes of A.txt, so that $APerm = permissions(A.txt) or something, so I can do chmod $APerm B.txt in step 5. From the "setfacl" man page:

Re: BASH Shell Scripting Question

2003-06-27 Thread Bret Hughes
On Fri, 2003-06-27 at 11:43, Richard Crawford wrote: > Greetings, > > I have a shell script which duplicates a file and then renames the > duplicate file; the trick is that the duplicate file needs to have the > same permissions as the original file. For example: > > 1. Open file A.txt > 2.

BASH Shell Scripting Question

2003-06-27 Thread Richard Crawford
Greetings, I have a shell script which duplicates a file and then renames the duplicate file; the trick is that the duplicate file needs to have the same permissions as the original file. For example: 1. Open file A.txt 2. Manipulate A.txt 3. Save A.txt as A.txt.tmp 4. Rename A.txt.tmp t

Re: bash-shell

2002-12-16 Thread Gordon Messmer
On Mon, 2002-12-16 at 20:03, Jianping Zhu wrote: > > After I change .bash_profile, how I can let it take effect? > is there some command for bash shell like source for csh? Yes, "source" is also present in bash: source .bash_profile -- redhat-list mailing list unsubs

Re: bash-shell

2002-12-16 Thread Mike Burger
logout and log back in. Or, you could try "reset" On Mon, 16 Dec 2002, Jianping Zhu wrote: > > After I change .bash_profile, how I can let it take effect? > is there some command for bash shell like source for csh? > > > &g

Re: bash-shell

2002-12-16 Thread Roger
Around Mon,Dec 16 2002, at 11:03, Jianping Zhu, wrote: > > After I change .bash_profile, how I can let it take effect? > is there some command for bash shell like source for csh? > I think it's designed to be read at login, but you could source it like: . .bash_profile ^-sin

bash-shell

2002-12-16 Thread Jianping Zhu
After I change .bash_profile, how I can let it take effect? is there some command for bash shell like source for csh? Jianping Zhu Department of Computer Science Univerity of Georgia Athens, GA 30602 Tel 706 5423900

Bash Shell Script Complier

2002-11-26 Thread Kevin - KD Micro Software
Hello all, I'm just wondering if any of you know of any "compilers" for shell scripts. I've been using Francisco Rosales' one ( http://www.datsi.fi.upm.es/~frosal/frosal.html ) for quite some time, but it appears to have issues with Red Hat 8.0 so I'm looking for alternatives. If anyone knows of

Re: Bash Shell Scripting Question

2002-10-28 Thread Todd A. Jacobs
On Sat, 26 Oct 2002, MET wrote: > if[ $MANPATH ] ; then It's telling you it can't tokenize the expressions, right? Spacing and quoting are not optional for this construct. And where is the test condition? How about changing all your tests to something like: if [ -n "$MANPATH" ]; then

Re: Bash Shell Scripting Question

2002-10-26 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 26 Oct 2002 16:42:34 -0400, MET wrote: > I'm trying to start using Qt and I'm having problems setting up the > environmental variables so I guess I'm off to a pretty bad start. > Below is what I have included in my /etc/profile minus the defa

Bash Shell Scripting Question

2002-10-26 Thread MET
I'm trying to start using Qt and I'm having problems setting up the environmental variables so I guess I'm off to a pretty bad start. Below is what I have included in my /etc/profile minus the defaults and the export commands. My export commands are fine as the rest of my variables work except fo

RE: Bash Shell login script

2002-10-13 Thread MET
D] Subject: Re: Bash Shell login script On Fri, Oct 11, 2002 at 03:35:52PM -0700, Todd A. Jacobs wrote: > Use .bash_profile. If you use .bashrc instead, it will cause all sorts > of grief if the user opens any xterms. ... Well, not really--you just make sure that .bashrc is sufficiently pa

Re: Bash Shell login script

2002-10-13 Thread Dave Ihnat
On Fri, Oct 11, 2002 at 03:35:52PM -0700, Todd A. Jacobs wrote: > Use .bash_profile. If you use .bashrc instead, it will cause all sorts of > grief if the user opens any xterms. ... Well, not really--you just make sure that .bashrc is sufficiently paranoid about its environment that it doesn't ru

Re: Bash Shell login script

2002-10-12 Thread Anthony E. Greene
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11-Oct-2002/17:46 -0400, MET <[EMAIL PROTECTED]> wrote: >What is the script that gets for the bash shell on login for a user. >Not the default wide file, but the user specified one. Basically, I >want to set it up so that when 1 o

Re: Bash Shell login script

2002-10-12 Thread Todd A. Jacobs
On Fri, 11 Oct 2002, MET wrote: > What is the script that gets for the bash shell on login for a user. Not > the default wide file, but the user specified one. Basically, I want to > set it up so that when 1 of my users logs on it automatically runs the > command 'startx'

Bash Shell login script

2002-10-12 Thread MET
What is the script that gets for the bash shell on login for a user. Not the default wide file, but the user specified one. Basically, I want to set it up so that when 1 of my users logs on it automatically runs the command 'startx' to load of KDE. I'm doing it this way becau

Re: Bash shell error interpretation

2001-04-03 Thread Harry Putnam
Cameron Simpson <[EMAIL PROTECTED]> writes: [...] > Pretty much only things explicitly opening /dev/tty. > > You may also get it if some clueless piece of code assumes it's talking > to a tty and does a stty or something like that. I've written many cluesless pieces of code..But missed this on

Re: Bash shell error interpretation

2001-04-03 Thread Cameron Simpson
On Tue, Apr 03, 2001 at 09:25:26AM -0700, Harry Putnam <[EMAIL PROTECTED]> wrote: | > Another possibility is that your script is dependent upon running on | > a terminal. Cron jobs do not have a controlling terminal, nor do they | > have a tty attached to any inputs or outputs. | | What kind of t

Re: [shell] Bash shell error interpretation

2001-04-03 Thread Harry Putnam
Cameron Simpson <[EMAIL PROTECTED]> writes: > Another possibility is that your script is dependent upon running on > a terminal. Cron jobs do not have a controlling terminal, nor do they > have a tty attached to any inputs or outputs. What kind of things would do that. Do you mean something lik

Re: [shell] Bash shell error interpretation

2001-04-03 Thread Cameron Simpson
On Mon, Apr 02, 2001 at 10:58:23PM -0700, Harry Putnam <[EMAIL PROTECTED]> wrote: | I'm getting an error message from a shell script that has been working | for a long time. Tinkered with it and now get an error message I | don't understand. | I'm not going to post the whole script, its a bit lon

[shell] Bash shell error interpretation

2001-04-02 Thread Harry Putnam
I'm getting an error message from a shell script that has been working for a long time. Tinkered with it and now get an error message I don't understand. I'm not going to post the whole script, its a bit long and I know this works when run from the command line. However when run from cron I ge

Re: Bash shell scripts: Where do the "echos" go?

1999-11-17 Thread Rick L. Mantooth
Jerry, echo will send its output to wherever the "stdout" is at the specific portion of your script. Here is a quickie to demonstrate: #!/bin/sh echo "line 1" echo line 2 ( echo "Testing echo line 3" ) >/dev/null echo "Number 4" # end quickie And the output is: line 1 line 2 Number 4 We'd have

Bash shell scripts: Where do the "echos" go?

1999-11-17 Thread Jerry Keene
I ran a bash script with quite a few informative "Echo" lines embedded on a linux 5.2 box. No possibility that some of them wouldn't have been part of the script execution regardless of branching. Evidence suggested that the script ran properly and accomplished all goals. However, there was

Re: Bash shell scripts: Where do the "echos" go?

1999-01-16 Thread Jerry Keene
Rick: Thanks; belive I've got a clue now. //jrkeene On 17 Nov 99, at 20:02, Rick L. Mantooth wrote: > Jerry, > echo will send its output to wherever the "stdout" is at the > specific portion of your script. > Here is a quickie to demonstrate: > > #!/bin/sh > echo "line 1" > echo line 2 > ( >