This might work better:
This is the code, rename it to your script name and make it accessable
(backup your old one)
Also, make sure the path to perl is correct.  To see type:
'which perl'
 |
\/
#!/usr/bin/perl -w

###
# perl script to start netscape
###

# this may need quotes around the path, use double quotes
system (/usr/bin/netscape);

#end of code

the script calls the system to execute the command.
It should work, let me know if it doesn't.  If you want to learn more about
perl go to www.perl.com

-----Original Message-----
From: Brian T. Schellenberger <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, April 10, 2000 2:48 PM
Subject: [expert] Netscape from KDE


>
>I have a very simple "browse" command, like this:
>
> #! /bin/csh -f
>
> cd /home/bts/xfer
> /usr/bin/netscape $*
>
>If I type it in in a shell, it works fine.
>If I type it in the pop-up KDE command window, it works fine.
>But from my panel, it doesn't work fine.
>
>Under execute I have this:
>
>/home/bts/bin/browse
>
>Now, here's the weird part . . .
>
>If I already have a Netscape window up, it works fine from kpanel, so
>I *know* that netscape is getting executed--it can hook up to an
>already-existant netscape process without trouble.
>
>But my "browse" command fails from kpanel if there's no netscape up
>already.
>
>Any ideas?
>
>
>
>--
>"Brian, the man from babbleon-on"               [EMAIL PROTECTED]
>Brian T. Schellenberger                         http://www.babbleon.org
>Support http://www.eff.org.                     Support decss defendents.
>Support http://www.programming-freedom.org.     Boycott amazon.com.
>

Reply via email to