Re: [newbie] Blue Bash

2003-09-10 Per discussione HaywireMac
On Tue, 9 Sep 2003 22:22:38 -0700
Eric Huff [EMAIL PROTECTED] uttered:

 Hah! I've seen titlebars in your screen shots...

those are never on terms, me smarmy bastage!

 And c'mon, admit it:  When it's dark, and no one's lookin, you fire up
 fbpanel...   You sick B*stard!

no way! I never minimize anythin', seein' as I got 8 desktops I flip
through with me mousewheel, LOL! I will admit that I've begun using
idesk, just so's I kin use those loverly Mac icons I went through so
much trouble to convert way back when on Winders.

but, yes, I am a sick bastard. ;-)

 
 You know, pekwm has been so smooth for so long!  I love it.  I don't
 even feel inclined to try other wm's anymore...

I know, I know, I feel like printing up some tracts and going door to
door, that's how bad it gets.

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Getting into trouble is easy.
-- D. Winkel and F. Prosser

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-10 Per discussione Stephen Kuhn
On Wed, 2003-09-10 at 22:21, HaywireMac wrote:

 no way! I never minimize anythin', seein' as I got 8 desktops I flip
 through with me mousewheel, LOL! I will admit that I've begun using
 idesk, just so's I kin use those loverly Mac icons I went through so
 much trouble to convert way back when on Winders.

Only 8. I VNC into the server and have 10 desktops, then have another 10
locally here, and a new PIII-500 running RH that I VNC into with another
6 desktops. You're lagging, mate...badly so...

 but, yes, I am a sick bastard. ;-)

You have a keen passion for restating the obvious.

  
  You know, pekwm has been so smooth for so long!  I love it.  I don't
  even feel inclined to try other wm's anymore...

...because you've never tried XFCE4...or XD2, for that matter...

 I know, I know, I feel like printing up some tracts and going door to
 door, that's how bad it gets.

You should sign up with the Jehovah's Witnesses - they like going door
to door...must be sticklers for punishment...

stephen kuhn - owner
==
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
--
  * This message was composed on a 100% Microsoft free computer *
  We expressly refuse to utilise Microsoft DRM encoded documents
--
You will soon meet a person who will play an important role in your
life.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-10 Per discussione HaywireMac
On Wed, 10 Sep 2003 22:52:42 +1000
Stephen Kuhn [EMAIL PROTECTED] uttered:

 
 Only 8. I VNC into the server and have 10 desktops, then have another
 10 locally here, and a new PIII-500 running RH that I VNC into with
 another 6 desktops. You're lagging, mate...badly so...

Well, I do VNC into my server too, but it only has 4 DT's, so ya, I'm
laggin' mightily.

I need more computers!

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Sometimes you get an almost irresistible urge to go on living.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-10 Per discussione HaywireMac
On Wed, 10 Sep 2003 08:03:37 -0700
Eric Huff [EMAIL PROTECTED] uttered:

 What does it do better?  I'm not trying to bait, i really want to
 know.

It has more eye candy and you don't have to configure it using
inscrutable text files. That would be the way I would look at it coming
from the end-user perspective at least.

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Life sucks, but death doesn't put out at all.
-- Thomas J. Kopp

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione mike
this gives me a blue prompt :

PS1=\[\033[34m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 

this gives me a lighter blue prompt : 

PS1=\[\033[36m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 





HaywireMac wrote:

I want to make my bash prompt blue.

According to the LDP, IIUIC, it should look like this:

PS1=\[\0[0;[EMAIL PROTECTED]:\w$[\0[0m\]

source:

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Bash-Prompt-HOWTO.html#AEN167

but I get an error saying:

bash: /home/joehill/.bashrc: line 39: unexpected EOF while looking for
matching `' bash: /home/joehill/.bashrc: line 40: syntax error:
unexpected end of file
they only show one set of matching quotes, so is the LDP off on this?

It'd be noice if I could see where my last prompt was in the sea of
output, ya get me?
Thanks!

 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
 

--
Mike McNeese Springdale, Arkansas USA
==
Dual booting 98lite;MDK 9.1 stock kernel Kde 3.1
Registered Linux User #248955 liquid/acqua  Theme
==
If obstacles are what you see in your path...
   Then you have lost sight of your goal! 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione JM5379
just a wild guess from looking at what you have listed, it
appears that the part

\w$[\0[0m\]

may have mismatched or misaligned \ since they don't follow the
exact same escape sequences as what comes before.

man bash should cover this pretty good, if i remember correctly.

hth.
joe


--- Original Message ---
From: HaywireMac [EMAIL PROTECTED]
To: Mandrake Newbs [EMAIL PROTECTED]
Subject: [newbie] Blue Bash


I want to make my bash prompt blue.

According to the LDP, IIUIC, it should look like this:

PS1=\[\0[0;[EMAIL PROTECTED]:\w$[\0[0m\]

source:

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Bash-
Prompt-HOWTO.html#AEN167

but I get an error saying:

bash: /home/joehill/.bashrc: line 39: unexpected EOF while
looking for
matching `' bash: /home/joehill/.bashrc: line 40: syntax error:
unexpected end of file

they only show one set of matching quotes, so is the LDP off on
this?

It'd be noice if I could see where my last prompt was in the sea of
output, ya get me?

Thanks!

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
For fast-acting relief, try slowing down.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione HaywireMac
On Tue, 09 Sep 2003 07:54:16 -0500
mike [EMAIL PROTECTED] uttered:

 this gives me a blue prompt :
 
 PS1=\[\033[34m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 
 
 this gives me a lighter blue prompt : 
 
 
 PS1=\[\033[36m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 

ah, I see now, if you use one [], then *all* aspects have to be in [].

no?

anyway, it worked, thank you very muchly.
-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Ninety percent of everything is crap.
-- Theodore Sturgeon

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione HaywireMac
On Tue, 09 Sep 2003 07:54:16 -0500
mike [EMAIL PROTECTED] uttered:

 this gives me a blue prompt :
 
 PS1=\[\033[34m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 
 
 this gives me a lighter blue prompt : 
 
 
 PS1=\[\033[36m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 

and if you want the prompt to be [colour], but not what you type and
such, add [\033[0m\] to the end...cool.

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
God grant us the serenity to accept the things we cannot change, courage
to
change the things we can, and wisdom to know the difference.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione Heather/Femme
On Tue, 09 Sep 2003 07:54:16 -0500
mike [EMAIL PROTECTED] wrote:

 PS1=\[\033[36m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 

second gives me a cyan prompt...but ty.

:D

Femurs

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione Tom Brinkman
On Tuesday September 9 2003 04:56 pm, Heather/Femme wrote:
 On Tue, 09 Sep 2003 07:54:16 -0500

 mike [EMAIL PROTECTED] wrote:
  PS1=\[\033[36m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 

 second gives me a cyan prompt...but ty.

 :D

 Femurs

  PS1= \W \\$just gives ya a good 'ol

 tom $   (as user)
  -or-
 tom #   (as root)   'tom' is the working directory with either.

   if you edit /etc/bashrc, not your local one.

  Femurs, aren't those leg bones?
-- 
Tom Brinkman  Corpus Christi, Texas


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione Eric Huff
Here is another cool thing: you can have the prompt set the title of the
xterm for you.
This way, in the taskbar i see the path 1st, so when there's a bunch of
them open, i know which is which.


#PS1=\[\033]0;\w: \u\007\]   -- sets title     sets prompt --   
#\[\033[33m\]\w \$ 

if test $(tty | grep -c /dev/pts/) != 0 ; then# if in X11
PS1=\[\033]0;\w: \u\007\]\[\033[33m\]\w \$ \[\033[0m\]
else
PS1=\[\033[32m\]\w \$ \[\033[0m\]   # if in text mode,
there is no title
fi

here is the explanation: http://www.tldp.org/HOWTO/Xterm-Title.html 


-- 
Mandrake HowTo's  More:  http://twiki.mdklinuxfaq.org

Join the content organization discussion:
http://mandrake.vmlinuz.ca/bin/view/Main/NewIndex

Join the General Wiki Development discussion:
http://mandrake.vmlinuz.ca/bin/view/Main/DevelopingTheMandrakeCommunity#Discussion

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione HaywireMac
On Tue, 9 Sep 2003 21:50:16 -0700
Eric Huff [EMAIL PROTECTED] uttered:

 Here is another cool thing: you can have the prompt set the title of
 the xterm for you.
 This way, in the taskbar i see the path 1st, so when there's a bunch
 of them open, i know which is which.
 
 
 #PS1=\[\033]0;\w: \u\007\]   -- sets title     sets prompt --  
 #
 #\[\033[33m\]\w \$ 
 
 if test $(tty | grep -c /dev/pts/) != 0 ; then# if in X11
 PS1=\[\033]0;\w: \u\007\]\[\033[33m\]\w \$ \[\033[0m\]
 else
 PS1=\[\033[32m\]\w \$ \[\033[0m\]   # if in text
 mode,
 there is no title
 fi
 
 here is the explanation: http://www.tldp.org/HOWTO/Xterm-Title.html 

assuming you use a taskbar, or even titlebar, you Pekwm traitor! ;-)

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
You have all eternity to be cautious in when you're dead.
-- Lois Platford

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione Heather/Femme
On Tue, 9 Sep 2003 19:00:13 -0400
HaywireMac [EMAIL PROTECTED] wrote:

 On Tue, 9 Sep 2003 15:56:37 -0600
 Heather/Femme [EMAIL PROTECTED] uttered:
 
  second gives me a cyan prompt...but ty.
 
 too bad you couldn't do like in Q3, eh?
 
 ^3H^2a^1y^5w^2i^4r^6e^1M^2a^3c, LOL!
 
 Then we'd have really l33t prompts! ;-)
 
 -- 
 HaywireMac

rofl!

ya... I loved that! :D

heh..used to have rainbow nicks :D

FemmeyNazi

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione Heather/Femme
On Tue, 9 Sep 2003 23:00:56 -0500
Tom Brinkman [EMAIL PROTECTED] wrote:

 On Tuesday September 9 2003 04:56 pm, Heather/Femme wrote:
  On Tue, 09 Sep 2003 07:54:16 -0500
 
  mike [EMAIL PROTECTED] wrote:
   PS1=\[\033[36m\][\$(date +%H%M)[EMAIL PROTECTED]:\w]$ 
 
  second gives me a cyan prompt...but ty.
 
  :D
 
  Femurs
 
   PS1= \W \\$just gives ya a good 'ol
 
  tom $   (as user)
   -or-
  tom #   (as root)   'tom' is the working directory with either.
 
if you edit /etc/bashrc, not your local one.
 
   Femurs, aren't those leg bones?
 -- 
 Tom Brinkman  Corpus Christi, Texas
 


*Gives Tom a kewpie doll*

:)

Pharma-Femme 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Blue Bash

2003-09-09 Per discussione Eric Huff
 assuming you use a taskbar, or even titlebar, you Pekwm traitor! ;-)

Hah! I've seen titlebars in your screen shots...
And c'mon, admit it:  When it's dark, and no one's lookin, you fire up
fbpanel...   You sick B*stard!


You know, pekwm has been so smooth for so long!  I love it.  I don't
even feel inclined to try other wm's anymore...


-- 
Mandrake HowTo's  More:  http://twiki.mdklinuxfaq.org

Join the content organization discussion:
http://mandrake.vmlinuz.ca/bin/view/Main/NewIndex

Join the General Wiki Development discussion:
http://mandrake.vmlinuz.ca/bin/view/Main/DevelopingTheMandrakeCommunity#Discussion

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione Anne Wilson
On Wednesday 02 Apr 2003 10:33 am, Ken Rhodes wrote:
 Hello Everyone,

 I have been using Mandrake since version 6.0 and have continually upgraded
 with no real problems.

 However, after recently upgrading to 9.1, when I use the bash command
 shutdown I get a command not found error message!

 Can anyone tell me what happened and why?  Or what is the best way to
 shutdown and reboot my computer now? ( Formerly, I used shutdown -r now )

 Regards,
 Kenneth Rhodes

Could it be that your system is set to allow only root to shutdown?

Anne
-- 
Registered Linux User No.293302


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione Raffaele Belardi
Same here, had to copy /sbin/shutdown to /bin to make it visible to all 
users, then chmod a+s /bin/shutdown to suid it. I'm using standard 
security level, I wonder if in lower security level it's different.

raffaele

[EMAIL PROTECTED] wrote:
Hello Everyone,

I have been using Mandrake since version 6.0 and have continually upgraded with no real problems.

However, after recently upgrading to 9.1, when I use the bash command shutdown I get a command not found error message!

Can anyone tell me what happened and why?  Or what is the best way to shutdown and reboot my computer now? ( Formerly, I used shutdown -r now )

Regards,
Kenneth Rhodes
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione John Richard Smith
Ken Rhodes wrote:

Hello Everyone,

I have been using Mandrake since version 6.0 and have continually upgraded with no real problems.

However, after recently upgrading to 9.1, when I use the bash command shutdown I get a command not found error message!

Can anyone tell me what happened and why?  Or what is the best way to shutdown and reboot my computer now? ( Formerly, I used shutdown -r now )

Regards,
Kenneth Rhodes
 

Probably the alias is not set,
try,
/sbin/shutdown  -r now ,
or,
/sbin/shutdown -h
John

--
John Richard Smith
[EMAIL PROTECTED] 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione Ken Rhodes
Thanks to all who responded...

logging in as superuser allows me to use shutdown.  I haven't tried the other 
suggestions yet.

Maybe I changed my security level/permissions or something when I upgraded this time.

Regards,
Kenneth Rhodes
-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione Anne Wilson
On Wednesday 02 Apr 2003 12:01 pm, Ken Rhodes wrote:
 Thanks to all who responded...

 logging in as superuser allows me to use shutdown.  I haven't tried the
 other suggestions yet.

 Maybe I changed my security level/permissions or something when I upgraded
 this time.

I know that (under 9.0) there's a setting somewhere for 'allow users to 
shutdown'.  Sorry I can't remember where, but if you dig around you should 
find it.

Anne
-- 
Registered Linux User No.293302


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione G_REEPER
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yours it not the only one.  I found the same problem on my install. It appears 
that it isn't limited to the console. I do have a extra question. If you have 
the X starting when it boots instead of logging into an account click reboot 
and see if your presented with choices or a blank menu.

G_REEPER

On Wednesday 02 April 2003 05:40 am, Anne Wilson wrote:
 On Wednesday 02 Apr 2003 12:01 pm, Ken Rhodes wrote:
  Thanks to all who responded...
 
  logging in as superuser allows me to use shutdown.  I haven't tried the
  other suggestions yet.
 
  Maybe I changed my security level/permissions or something when I
  upgraded this time.

 I know that (under 9.0) there's a setting somewhere for 'allow users to
 shutdown'.  Sorry I can't remember where, but if you dig around you should
 find it.

 Anne
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+itI/6UWsagwteioRAgLnAJ9PfexnLH7VwvZDW5H20XAM/RlrpgCeP4kh
aD/nd/WUFm9Xc8NvgxjgIAU=
=n4U0
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione Stephen Kuhn
On Wed, 2003-04-02 at 19:33, Ken Rhodes wrote:
 Hello Everyone,
 
 I have been using Mandrake since version 6.0 and have continually upgraded with no 
 real problems.
 
 However, after recently upgrading to 9.1, when I use the bash command shutdown I 
 get a command not found error message!
 
 Can anyone tell me what happened and why?  Or what is the best way to shutdown and 
 reboot my computer now? ( Formerly, I used shutdown -r now )
 
 Regards,
 Kenneth Rhodes

It's apparently NOT in your path:

/sbin/shutdown
/sbin/reboot

-- 
Thu Apr  3 04:25:00 EST 2003
 04:25:00 up 12 days, 16:12,  3 users,  load average: 0.63, 0.28, 0.21
--
|____  | kuhn media australia|
|   / ,, /| |'-.   | http://kma.0catch.com   |
|  .\__/ || |   |  |=|
|   _ /  `._ \|_|_.-'  | stephen kuhn|
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED] |
|  |/ ._/  || |  email: [EMAIL PROTECTED]|
|  |'.  `\ | | |icq: 5483808 |
|  ;/ / | | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389|
|  '  `-`'   | Berkeley, New South Wales, AU   |
--
 linux user:267497 * MDK 9.1 * PC/Mac/Linux/Networking/Consulting
 machine no:194239 * RH 7.3 * Sales - Service - Support - Tutor
--
** This messages was composed on a 100% Microsoft free computer **

 Professor: Doomsday device? Ah, now the ball's in Farnsworth's 
 court. I suppose I could part with one and still be feared. 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost bash Shutdown command

2003-04-02 Per discussione Stephen Kuhn
On Wed, 2003-04-02 at 20:08, Raffaele Belardi wrote:
 Same here, had to copy /sbin/shutdown to /bin to make it visible to all 
 users, then chmod a+s /bin/shutdown to suid it. I'm using standard 
 security level, I wonder if in lower security level it's different.
 
 raffaele
 

It would be better to set the path in /etc/profile so that it's visible
to all users on the machine instead of copying the binary to another
directory. If the paths aren't set properly, other utilities, functions
and the likes could also be broken...so in fixing the system-wide path
statement, you avoid future problems...

-- 
Thu Apr  3 04:25:00 EST 2003
 04:25:00 up 12 days, 16:12,  3 users,  load average: 0.63, 0.28, 0.21
--
|____  | kuhn media australia|
|   / ,, /| |'-.   | http://kma.0catch.com   |
|  .\__/ || |   |  |=|
|   _ /  `._ \|_|_.-'  | stephen kuhn|
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED] |
|  |/ ._/  || |  email: [EMAIL PROTECTED]|
|  |'.  `\ | | |icq: 5483808 |
|  ;/ / | | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389|
|  '  `-`'   | Berkeley, New South Wales, AU   |
--
 linux user:267497 * MDK 9.1 * PC/Mac/Linux/Networking/Consulting
 machine no:194239 * RH 7.3 * Sales - Service - Support - Tutor
--
** This messages was composed on a 100% Microsoft free computer **

 Professor: Doomsday device? Ah, now the ball's in Farnsworth's 
 court. I suppose I could part with one and still be feared. 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] OT - bash-how to operate on nested directories

2002-04-07 Per discussione Todd Slater

On Sun, 7 Apr 2002 15:53:07 -0400
Todd Slater [EMAIL PROTECTED] wrote:

 I can generate a playlist using: find /tunes -type f -follow -name
 '*.ogg'-o -name '*.mp3' -o -name '*.MP3'  | sort  myplaylist.m3u. This
 includes all the files in all the folders in /tunes.
 
 But what if I want to generate playlists for each directory under
 /tunes? I've got /tunes/mp3-blues/albert king, /tunes/mp3-blues/freddie
 king etc...
 
 I can generate a list of directories under /tunes, but I don't know how
 to pass that on so I can do something with it. With my limited
 knowledge, I think I'll need to do a for loop (?)

After a little more digging, I managed this:

for folder in `find /tunes -type d`
do
find $folder -type f -follow -name '*.ogg' -o -name '*.mp3' -o
-name '*.MP3' | sort  $folder/playlist.m3u done

It does basically what I want it to do--generates playlists for the mp3s
and oggs in every folder and subfolder. BUT, it would be really cool if I
could get each m3u file to have a more telling name--like
talking_heads_playlist.m3u. I tried doing this with
$folder/$folder_playlist.m3u, but that $folder is the path, and I just
want the name of the current folder. (and it generated
errors--/tunes/talking_heads//tunes/talking_heads file not found)

Is it possible to pull out just the current directory (ignoring the path)
to use in the filename?

Todd (almost there)

-- 
Todd Slater
8:47pm up 11 days, 21:15, 2 users, load average: 0.35, 0.35, 0.28
School days, I believe, are the unhappiest in the whole span of human
existence. They are full of dull, unintelligible tasks, new and unpleasant
ordinances, and brutal violations of common sense and common decency.
(H.L. Mencken)



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie-it] bash: directory o file inesistente

2001-09-19 Per discussione Marco

... il messaggio di errore ti dice che non c'è uno script che si chiama
configure nella directory da dove lanci il comando ... quindi ... parto
dall'inizio e provo ad immaginare:
Credo tu ti riferisca ad un programma sorgente con estensione tar.gz (o
tar.bz2)..
Se è così il primo passo è quello di decomprimere il file con il
comando:
tar xzvf nomedelfile.tar.gz (o tar xjvf nomedelfile.tar.bz2)
a quel punto viene creata una directory (o almeno dovrebbe se il
pacchetto è stato creato con un po' di pietà nei confronti dei poveri
utilizzatori) col nome del file (es. nomedelfile) dove, all'interno
dovrebbe trovarsi il fatidico script configure ...
a quel punto ti devi quindi spostare nella directory con:
cd nomedelfile
e da lì lanciare:
./configure

poi:
make
e quindi
make install

(ovviamente da root)

Ciao

Marco





Re: [newbie] hostname: bash-2.05

2001-09-10 Per discussione antoine rivoire

u'r right jay.
what might be helpful is if someone could mail me a fairly standard 
/etc/bashrc , bashprofile and /home/.bashrc, to see what it looks like and 
does.



On Sunday 09 September 2001 11:55, you wrote:
 The later version of bash does not mess up your bashrc, but it won't
 restore your lost one either, if I understand you correctly.

 Jay

 On Friday 07 September 2001 11:17, I was honored with this communique:
  right, some more interesting facts i have just discovered:
  i have lost the pretty colors in my terminal.
  it doesn't appear to live in /etc, now i dont know if that's bad or not,
  but there is where it lives:
  bash-2.05$ locate bashrc
  /etc/skel/.bashrc
  /home/antoine/.bashrc
  bash-2.05$ cd /
  bash-2.05$ locate bash-2.05
  /var/cache/grpmi/bash-2.05-6mdk.i586.rpm
  /usr/share/doc/bash-2.05
  /usr/share/doc/bash-2.05/README
  /usr/share/doc/bash-2.05/CHANGES
 
  would trying to upgrade it with a later bash-2.05 from mandrake cooker
  possibly solve my probleme?(i suppose i could try, and i will unless
  somebody tells me it's a bad idea)
 
  On Thursday 06 September 2001 20:09, you wrote:
   Well, when I loaded bash-2.05, I didn't have any hostname issues as
   such, but it did rename /etc/bashrc to /etc/bashrc.rpmnew - which
   caused a bit of confusion as my custom prompt was located there. All I
   had to do was change the name of the file back and all was well.
  
   Hope this helps.
   Jay
  
   On Friday 07 September 2001 12:38, I was honored with this communique:
On Thursday 06 September 2001 13:38, you wrote:
 Does the user that you were loged in have permissons on his
 assigned home directory?
 The same happened to my a couple of days before, and I see in
 LunxConf that the home directory of the user I was logging in was
 created by the root and the user ddidn't have permissons . . .

 Maybe it's just a coincidence
   
the user does have permissions to his home directerory, and
furthermore the same thing occurs when logged in as root. when
changing directory, that bash-2.05$
doesn't change to bash -2.05/directory$ or anything, i am baffled
   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of antoine
 rivoire Sent: Thursday, September 06, 2001 7:31 PM
 To: [EMAIL PROTECTED]
 Subject: [newbie] hostname: bash-2.05


 hi
 i think i might have seen somebody emailing about that prob before,
 but i cant find it in the archive:
 in term windows, my hostname has been replaced by
 bash-2.05$
 anybody?
   

Content-Type: text/plain; charset=iso-8859-1; name=message.footer
Content-Transfer-Encoding: 8bit
Content-Description:

  
   
   Content-Type: text/plain; charset=iso-8859-1; name=message.footer
   Content-Transfer-Encoding: 8bit
   Content-Description:
   
 
  
  Content-Type: text/plain; charset=iso-8859-1; name=message.footer
  Content-Transfer-Encoding: 8bit
  Content-Description:
  

 
 Content-Type: text/plain; charset=iso-8859-1; name=message.footer
 Content-Transfer-Encoding: 8bit
 Content-Description:
 


Content-Type: text/plain; charset=iso-8859-1; name=message.footer
Content-Transfer-Encoding: 8bit
Content-Description: 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] hostname: bash-2.05

2001-09-10 Per discussione Tim Holmes

I can't find the original email sent on this topic, but it says that the
hostname was replaced with the bash-2.05$.  Are you simply referring to
the prompt?  Or is the hostname actually saying it's bash-2.05$?

As for the request for a standard /etc/skel/.bashrc and
/etc/skel/.bash_profile, here's what I have.  I have edited mine a bit
since I do have a few users that log on remotely to this machine.

==
[root@r2d2 skel]# less .bashrc

# .bashrc

# Source global definitions
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi
[root@r2d2 skel]# less .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

PATH=$PATH:$HOME/bin
USERNAME=`id -nu`
USERID=`id -nu`

export PATH USERNAME USERID BASH_ENV=$HOME/.bashrc
==

On some of my machines I actually have a simple /etc/skel/.aliases and I
add a line in /etc/skel/.bash_profile that reads:

souce $HOME/.aliases

I'm pretty sure I just misunderstood what you were talking about with
the bash-2.05$ for a hostname, but if that's the case, edit
/etc/sysconfig/network to have all your correct information.

Hope that comes in handy.
tdh

-- 
T. Holmes
-
UNIXTECHS.org
[EMAIL PROTECTED]
-
Real Men Use Vi!

Uptime: 
  
  9:59am  up  1:45,  4 users,  load average: 0.00, 0.00, 0.00
  
| 
| 
| 
| On Thursday 06 September 2001 13:38, you wrote:
|  Does the user that you were loged in have permissons on his assigned home
|  directory?
|  The same happened to my a couple of days before, and I see in LunxConf that
|  the home directory of the user I was logging in was created by the root and
|  the user ddidn't have permissons . . .
| 
|  Maybe it's just a coincidence
| the user does have permissions to his home directerory, and furthermore the 
| same thing occurs when logged in as root. when changing directory, that 
| bash-2.05$ 
| doesn't change to bash -2.05/directory$ or anything, i am baffled
| 
| 
| 
|  -Original Message-
|  From: [EMAIL PROTECTED]
|  [mailto:[EMAIL PROTECTED]]On Behalf Of antoine rivoire
|  Sent: Thursday, September 06, 2001 7:31 PM
|  To: [EMAIL PROTECTED]
|  Subject: [newbie] hostname: bash-2.05
| 
| 
|  hi
|  i think i might have seen somebody emailing about that prob before, but i
|  cant find it in the archive:
|  in term windows, my hostname has been replaced by
|  bash-2.05$
|  anybody?
| 
| 
| Content-Type: text/plain; charset=iso-8859-1; name=message.footer
| Content-Transfer-Encoding: 8bit
| Content-Description: 
| 
| 

| Want to buy your Pack or Services from MandrakeSoft? 
| Go to http://www.mandrakestore.com

  -- 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] hostname: bash-2.05

2001-09-09 Per discussione Jay DeKing

The later version of bash does not mess up your bashrc, but it won't restore 
your lost one either, if I understand you correctly.

Jay

On Friday 07 September 2001 11:17, I was honored with this communique:
 right, some more interesting facts i have just discovered:
 i have lost the pretty colors in my terminal.
 it doesn't appear to live in /etc, now i dont know if that's bad or not,
 but there is where it lives:
 bash-2.05$ locate bashrc
 /etc/skel/.bashrc
 /home/antoine/.bashrc
 bash-2.05$ cd /
 bash-2.05$ locate bash-2.05
 /var/cache/grpmi/bash-2.05-6mdk.i586.rpm
 /usr/share/doc/bash-2.05
 /usr/share/doc/bash-2.05/README
 /usr/share/doc/bash-2.05/CHANGES

 would trying to upgrade it with a later bash-2.05 from mandrake cooker
 possibly solve my probleme?(i suppose i could try, and i will unless
 somebody tells me it's a bad idea)

 On Thursday 06 September 2001 20:09, you wrote:
  Well, when I loaded bash-2.05, I didn't have any hostname issues as such,
  but it did rename /etc/bashrc to /etc/bashrc.rpmnew - which caused a bit
  of confusion as my custom prompt was located there. All I had to do was
  change the name of the file back and all was well.
 
  Hope this helps.
  Jay
 
  On Friday 07 September 2001 12:38, I was honored with this communique:
   On Thursday 06 September 2001 13:38, you wrote:
Does the user that you were loged in have permissons on his assigned
home directory?
The same happened to my a couple of days before, and I see in
LunxConf that the home directory of the user I was logging in was
created by the root and the user ddidn't have permissons . . .
   
Maybe it's just a coincidence
  
   the user does have permissions to his home directerory, and furthermore
   the same thing occurs when logged in as root. when changing directory,
   that bash-2.05$
   doesn't change to bash -2.05/directory$ or anything, i am baffled
  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of antoine rivoire
Sent: Thursday, September 06, 2001 7:31 PM
To: [EMAIL PROTECTED]
Subject: [newbie] hostname: bash-2.05
   
   
hi
i think i might have seen somebody emailing about that prob before,
but i cant find it in the archive:
in term windows, my hostname has been replaced by
bash-2.05$
anybody?
  
   
   Content-Type: text/plain; charset=iso-8859-1; name=message.footer
   Content-Transfer-Encoding: 8bit
   Content-Description:
   
 
  
  Content-Type: text/plain; charset=iso-8859-1; name=message.footer
  Content-Transfer-Encoding: 8bit
  Content-Description:
  

 
 Content-Type: text/plain; charset=iso-8859-1; name=message.footer
 Content-Transfer-Encoding: 8bit
 Content-Description:
 


Content-Type: text/plain; charset=iso-8859-1; name=message.footer
Content-Transfer-Encoding: 8bit
Content-Description: 


-- 
I have misplaced my pants. - Homer J. Simpson



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] hostname: bash-2.05

2001-09-06 Per discussione Lionel Pitaru

Does the user that you were loged in have permissons on his assigned home
directory?
The same happened to my a couple of days before, and I see in LunxConf that
the home directory of the user I was logging in was created by the root and
the user ddidn't have permissons . . .

Maybe it's just a coincidence


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of antoine rivoire
Sent: Thursday, September 06, 2001 7:31 PM
To: [EMAIL PROTECTED]
Subject: [newbie] hostname: bash-2.05


hi
i think i might have seen somebody emailing about that prob before, but i
cant find it in the archive:
in term windows, my hostname has been replaced by
bash-2.05$
anybody?





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] hostname: bash-2.05

2001-09-06 Per discussione antoine rivoire




On Thursday 06 September 2001 13:38, you wrote:
 Does the user that you were loged in have permissons on his assigned home
 directory?
 The same happened to my a couple of days before, and I see in LunxConf that
 the home directory of the user I was logging in was created by the root and
 the user ddidn't have permissons . . .

 Maybe it's just a coincidence
the user does have permissions to his home directerory, and furthermore the 
same thing occurs when logged in as root. when changing directory, that 
bash-2.05$ 
doesn't change to bash -2.05/directory$ or anything, i am baffled



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of antoine rivoire
 Sent: Thursday, September 06, 2001 7:31 PM
 To: [EMAIL PROTECTED]
 Subject: [newbie] hostname: bash-2.05


 hi
 i think i might have seen somebody emailing about that prob before, but i
 cant find it in the archive:
 in term windows, my hostname has been replaced by
 bash-2.05$
 anybody?


Content-Type: text/plain; charset=iso-8859-1; name=message.footer
Content-Transfer-Encoding: 8bit
Content-Description: 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] invoking bash scripts

2001-04-16 Per discussione David E . Fox

On Saturday 14 April 2001 18:28, you wrote:
 I tried ./scriptname and bash reports "No such file or
 directory".  I can ls and it shows scriptname* which should
 indicate that it is executable and in the current directory.

Careful here. Scripts can be confused in the sense that it'll report
'no such file' when in reality it's not looking at your script (which
is there) but at the interpreter in the first line, and complaining
about that.

bash should (and usually is) invoked as '#! /bin/sh' so I'd try that
first. Even so, there should be a symlink in /bin that points 'bash' to 'sh' 
(or vice versa) so that '#! /bin/sh' or '#! /bin/bash' should produce 
equivalent behavior.

 cdrom.  Many of the commands fail (e.g. echo -n "Where do
 you work").

Funny, it prints that text even though I'm not working right now :(.

'echo' is a built in for bash, but there is also a command 'echo'. According
to the echo manpage, -n just doesn't give a trailing new line.


-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---




Re: [newbie] invoking bash scripts

2001-04-14 Per discussione Keith Christian

Hi Dean,

Likely your system is set up (properly so) without the current
directory in the path.

To invoke a shell script named, say, foo.sh, type this:

./foo.sh (Notice the leading dot-slash) and it should run.  This
indicates that the script is in the current directory: dot represents
the current directory, slash is the pathname separator.

Keith


--- Dean Steichen [EMAIL PROTECTED] wrote:
 Is there some option I need to set to invoke a bash script?
 
 I have created a script with the #!/bin/bash as the first
 line and have chmod +x scriptname to make it executable but
 it will not execute unless I issue the "bash scriptname"
 command (preceed the scriptname with the command bash).
 Is this normal?
 
  -- 
 Dean Steichen
 Mandrake 7.1 K-Mail
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re: [newbie] invoking bash scripts

2001-04-14 Per discussione Dean Steichen

I tried ./scriptname and bash reports "No such file or
directory".  I can ls and it shows scriptname* which should
indicate that it is executable and in the current directory.
btw:
I bought the book "LINUX Shells by Example" by Ellie Quigley
and have been trying to run some of the scripts from the
cdrom.  Many of the commands fail (e.g. echo -n "Where do
you work").
Any other ideas?
Thanks in advance.
Dean
***


Keith Christian wrote:
 
 Hi Dean,
 
 Likely your system is set up (properly so) without the current
 directory in the path.
 
 To invoke a shell script named, say, foo.sh, type this:
 
 ./foo.sh (Notice the leading dot-slash) and it should run.  This
 indicates that the script is in the current directory: dot represents
 the current directory, slash is the pathname separator.
 
 Keith
 
 --- Dean Steichen [EMAIL PROTECTED] wrote:
  Is there some option I need to set to invoke a bash script?
 
  I have created a script with the #!/bin/bash as the first
  line and have chmod +x scriptname to make it executable but
  it will not execute unless I issue the "bash scriptname"
  command (preceed the scriptname with the command bash).
  Is this normal?
 
   --
  Dean Steichen
  Mandrake 7.1 K-Mail
  [EMAIL PROTECTED]
 
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/

-- 
Dean Steichen
Linux - Mandrake 7.1 
Netscape Mail
[EMAIL PROTECTED]




Re: [newbie-it] bash

2001-03-12 Per discussione Andrea Celli

"[EMAIL PROTECTED]" wrote:
 
 Ciao a tutti,
 improvvisamente la bash non fa pi il prompt come al solito con il mio
 nome (localhost etc. etc.) ma si presenta solo come "bash-2.04".
 Il problema  che non riconosce pi alcuni comandi nemmeno con il login
 come root, l'unico modo per eseguire lo shutdown, per esempio,  quello
 di terminare la sessione e riaprirne un'altra come root.
 Qualcuno mi pu aiutare?
 Stefano

Hai pasticciato con qualche file di configurazione personale tipo
.bashrc, .bash_profile, .bash_xyz (stanno nella tua home e li
vedi con "ls -a")?

Se root funziona, non dovrebbe essere successo nulla di spiacevole
a quelli "generali", tipo /etc/profile, ...

Forse la cosa piu` semplice e` creare un nuovo utente e poi confontare 
i suoi .bash con i tuoi.


ciao, andrea