LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2006, 05:03 AM   #1
sunpascal
Member
 
Registered: Jan 2005
Distribution: Debian
Posts: 104

Rep: Reputation: 15
Kde: open konsole window when running script


hi,

I have a script that I wrote in sh, that I'd like to execute when I click it in Konqueror. Currently, it seems to be running, altough I can't see the output (nor any sign that it is running). I have to open konsole first and type the name of the script each time.
Is there a way to start it by clicking the icon in konqueror file manager?
Some scripts seem to have a gui (not a native kde gui, though, but that's fine). How does that work anyways?

-sunpascal
 
Old 04-11-2006, 05:31 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Mmmm, not 100% sure what you mean but I'll take a stab here. If you want a script to run every time Konsole then if it were me, I'd put it in my ~/.$SHELLrc file. For most standard installs it'd be ~/.bashrc so try there.

Second, that GUI thing you're talking about. Sounds to me like Xdialog which is nice enough but if it's for your own personal use then go Kdialog, then all the widgets will look native Xdialog would be installed on more distros by default though so if you're planning on sharing your script then use Xdialog. If you want you could even be tricky and test to see if Kdialog is installed, if it is use that else use Xdialog. They're made to be compatible so it shouldn't be too hard.
 
Old 04-11-2006, 06:20 AM   #3
sunpascal
Member
 
Registered: Jan 2005
Distribution: Debian
Posts: 104

Original Poster
Rep: Reputation: 15
sorry for not being specific...

I simply want a konsole window to pop up when I click my script so that I can see its output.
For example in Windows XP a window pops up that shows the output. In kde nothing seems to happen.

-sunpascal
 
Old 04-11-2006, 10:45 AM   #4
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
right click the file and hit run in terminal.

...drkstr
 
Old 04-12-2006, 02:49 AM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Or associate scripts in Konqueror with 'konsole -e %s' where I'm just assuming -e behaves the same as xterm which the KDE devs *should* have done.
 
Old 04-14-2006, 09:43 PM   #6
sunpascal
Member
 
Registered: Jan 2005
Distribution: Debian
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by drkstr
right click the file and hit run in terminal.

...drkstr
hm... there is no "run in terminal"....

"konsole -e %s" doesn't work either, it just opens konsole but does not run my script...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla Firefox open new window script Pathian Linux - Software 17 08-12-2004 12:37 PM
Mozilla (official) Open New Window script tuxq Linux - Software 1 08-10-2004 07:43 PM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 11:16 AM
running emacs in su mode wont open x window true_atlantis Linux - Software 2 05-05-2004 12:05 AM
Running X applications from the Konsole (under KDE) ganninu Linux - General 9 01-17-2004 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration