Re: [newbie] Problem with firefox script execution...

2004-02-24 Thread Christophe Rhein
Hello,

I created the firefox file to always opening my links in it.
When I try from as root from a shell konsole to execute the script I get this

[EMAIL PROTECTED] rhein]# chmod 0755 /user/bin firefoxbugfix
chmod: failed to get attributes of `/user/bin': No such file or directory
chmod: failed to get attributes of `firefoxbugfix': No such file or directory
The file and the directory exist what is wrong?
What is the chmod 0755 for?
Thank you
Christophe

Le Dimanche 22 Février 2004 16:41, Todd Slater a écrit :
 On Sun, Feb 22, 2004 at 11:07:08PM -0500, Christophe Rhein wrote:
  How do I do that?
  No idea how to do a script???
  Is it creating a file?
  Thanks and good night!
  Christophe

 Just copy and paste the script into your favorite editor (the script
 starts with #!/bin/bash and ends with exit). Edit paths as necessary.
 Save it and then make it executable by opening a terminal and giving
 the command

 chmod +x scriptname

 where scriptname is whatever name you gave the script when you saved it.

 Todd

  Le Dimanche 22 Février 2004 03:32 PM, Todd Slater a écrit :
   On Sun, Feb 22, 2004 at 07:18:50PM -0500, Christophe Rhein wrote:
Hello,
   
I installed, with your help Firefox but now I have this problem:
When I click on a link I have the Firefox profile manager that opens
(I clicked on the Don't ask at startup) and since firefox is allready
open... I can not open the link (exept pasting it).
Where can I desactivate the profile manager?
Thank you
Christophe
  
   I put this script in /usr/bin and tell all my apps to use it for
   handling Web pages. It opens pages in a new tab, if you want you can
   use new-window instead.
  
   Todd
  
   #!/bin/bash
   browserPath=/usr/local/firefox/firefox
   url=$@
   $browserPath -remote ping()
   # $? = false if running, true if not
   if [ $? = 0 ] ; then
   exec $browserPath -remote openURL($url,new-tab)
   else
   $browserPath $url
   fi
   exit


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


Re: [newbie] Problem with firefox script execution...

2004-02-24 Thread Todd Slater
On Tue, Feb 24, 2004 at 05:24:37PM -0500, Christophe Rhein wrote:
 Hello,
 
 I created the firefox file to always opening my links in it.
 When I try from as root from a shell konsole to execute the script I get this
 
 [EMAIL PROTECTED] rhein]# chmod 0755 /user/bin firefoxbugfix
 chmod: failed to get attributes of `/user/bin': No such file or directory
 chmod: failed to get attributes of `firefoxbugfix': No such file or directory
 The file and the directory exist what is wrong?
 What is the chmod 0755 for?
 Thank you
 Christophe

Do you really have a directory called /user?

You also have to separate directories/files with a slash, i.e.
/user/bin/firefoxbugfix.

Todd

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


Re: [newbie] Problem with firefox script execution...

2004-02-24 Thread Christophe Rhein
Hello,
Here is a snapshot of my directory with the folder... Do you have to put a 
space between 0755 and /user?
Hop I can solve it because I can not open my links strait in firefox!
Bye
Christophe




Le Mardi 24 Février 2004 11:03, Todd Slater a écrit :
 On Tue, Feb 24, 2004 at 05:24:37PM -0500, Christophe Rhein wrote:
  Hello,
 
  I created the firefox file to always opening my links in it.
  When I try from as root from a shell konsole to execute the script I get
  this
 
  [EMAIL PROTECTED] rhein]# chmod 0755 /user/bin firefoxbugfix
  chmod: failed to get attributes of `/user/bin': No such file or directory
  chmod: failed to get attributes of `firefoxbugfix': No such file or
  directory The file and the directory exist what is wrong?
  What is the chmod 0755 for?
  Thank you
  Christophe

 Do you really have a directory called /user?

 You also have to separate directories/files with a slash, i.e.
 /user/bin/firefoxbugfix.

 Todd
attachment: capture1.pngWant to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Problem with firefox script execution...

2004-02-24 Thread Todd Slater
On Tue, Feb 24, 2004 at 06:50:05PM -0500, Christophe Rhein wrote:
 Hello,
 Here is a snapshot of my directory with the folder... Do you have to put a 
 space between 0755 and /user?
 Hop I can solve it because I can not open my links strait in firefox!
 Bye
 Christophe

Argh, I gave you the answer once already:

Open a terminal.
Become root.
Type:

chmod +x /path/to/firefoxbugfix

replacing /path/to with the real path.

Or if you're in the directory where it's located just:

chmod +x firefoxbugfix

If you want to use the numbers then yes, a space between everything

chmod 755 firefoxbugfix

Todd

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


Re: [newbie] Problem with firefox script execution...

2004-02-24 Thread Charlie Mahan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tuesday 24 February 2004 4:50 pm, Christophe Rhein wrote:
 Hello,
 Here is a snapshot of my directory with the folder... Do you have to put a
 space between 0755 and /user?
 Hop I can solve it because I can not open my links strait in firefox!
 Bye
 Christophe

Here's a bit of reading material for you:

Directory of Linux Commands; http://www.onlamp.com/linux/cmd/

You don't _have_ a /user/bin directory, you have a /usr/bin directory.

DON'T try to execute anything with the former, use the latter. If you don't 
have the permissions already so screwed up that the system is locking you out 
of things that should be available to you just follow the syntax you are 
offered by the people on the list and be sure to type URLs as they actually 
appear, not as you *think* they appear.

  Do you really have a directory called /user?
 
  You also have to separate directories/files with a slash, i.e.
  /user/bin/firefoxbugfix.
 
  Todd

I'm not sure why you're trying to change permissions on a file anyway. Let 
alone an entire system directory/partition. I haven't been paying attention.

Then again I'm not the one having so much difficulty, am I? (-:

Regards;
Charlie
- -- 
Edmonton,AB,Canada User #244963 at http://counter.li.org
Mandrake Linux release 10.0 (RC1) for i586 kernel 2.4.25-0.rc4.1mdk
14:07:56 up 1 day, 10 min, 1 user, load average: 0.25, 0.08, 0.09
Lost: grey and white female cat.  Answers to electric can opener.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAO79YZqvqlrLPr5YRAtDQAJ4wDa7jKbhrJ2i4MHi3BAXB0RXxIQCfTAXj
G9y4XqVXIDKEeXhYlEjI7ig=
=EMZK
-END PGP SIGNATURE-

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


Re: [newbie] Problem with firefox script execution...Thanks!

2004-02-24 Thread Christophe Rhein
Thanks for the link I will read it little by little:-)

CHristophe


Le Mardi 24 Février 2004 16:17, Charlie Mahan a écrit :
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Tuesday 24 February 2004 4:50 pm, Christophe Rhein wrote:
  Hello,
  Here is a snapshot of my directory with the folder... Do you have to put
  a space between 0755 and /user?
  Hop I can solve it because I can not open my links strait in firefox!
  Bye
  Christophe

 Here's a bit of reading material for you:

 Directory of Linux Commands; http://www.onlamp.com/linux/cmd/

 You don't _have_ a /user/bin directory, you have a /usr/bin directory.

 DON'T try to execute anything with the former, use the latter. If you don't
 have the permissions already so screwed up that the system is locking you
 out of things that should be available to you just follow the syntax you
 are offered by the people on the list and be sure to type URLs as they
 actually appear, not as you *think* they appear.

   Do you really have a directory called /user?
  
   You also have to separate directories/files with a slash, i.e.
   /user/bin/firefoxbugfix.
  
   Todd

 I'm not sure why you're trying to change permissions on a file anyway. Let
 alone an entire system directory/partition. I haven't been paying
 attention.

 Then again I'm not the one having so much difficulty, am I? (-:

 Regards;
 Charlie
 - --
 Edmonton,AB,Canada User #244963 at http://counter.li.org
 Mandrake Linux release 10.0 (RC1) for i586 kernel 2.4.25-0.rc4.1mdk
 14:07:56 up 1 day, 10 min, 1 user, load average: 0.25, 0.08, 0.09
 Lost: grey and white female cat.  Answers to electric can opener.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.4 (GNU/Linux)

 iD8DBQFAO79YZqvqlrLPr5YRAtDQAJ4wDa7jKbhrJ2i4MHi3BAXB0RXxIQCfTAXj
 G9y4XqVXIDKEeXhYlEjI7ig=
 =EMZK
 -END PGP SIGNATURE-


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