LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2006, 09:10 AM   #1
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
BASH: open console on script execution


Hello All.

Imagine you have a bash script and want it to run in a console.
Simply isn't it?

In all other cases i would open up a terminal and execute the script.
Now i want to execute the script through konqueror, but NOT silently.

When i (double-)click my script it executes but without In- and Output.

It should be like: (double-)clicking the script and a console should be opened with the running shell script, so i can make use of the In- and Output Channels.



Does anyone know a solution to this?


thx
 
Old 02-07-2006, 09:17 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i suppose you could write a script that opens a xterm of whatever and divert the output of your script to that psuedo tty. not sure thats so elegant tho...
 
Old 02-07-2006, 09:41 AM   #3
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Original Poster
Rep: Reputation: 15
BASH: open console on script execution[solved]

hey thank you. Works like a charm.


cheers
 
  


Reply



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
BASH Script: variable values referencing for console arguments sadarax Programming 1 11-14-2005 05:23 PM
xset is unable to open display from within bash script copolii Linux - General 3 10-22-2005 06:26 PM
[Req]: How to config WebSvr & DNS Svr from console by Bash shell script CiF Linux - Networking 2 03-22-2005 12:31 AM
change console title in bash script? TLV Linux - Software 18 10-08-2004 11:25 AM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 11:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:27 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