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
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
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
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
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
> 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
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
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."
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.
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:
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.
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
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
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
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
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
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
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
-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
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
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
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
-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
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'
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
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
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
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
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
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
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
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
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
> (
>
33 matches
Mail list logo