LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 07-01-2005, 06:53 AM   #1
cheema
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 50

Rep: Reputation: 15
Script File: Parsing command sent to shell


Hi all,

I use Konsole and open a whole lot of shells while programming at the same time. I'm planning to make a utility which would parse the command which is sent to the shell and then rename the shell title accordingly. I know Konsole automatically renames the shell title based on the host computer and the pwd. But I would also like the title to indicate which particular file has been opened(using vim) in that shell. Any ideas how to get about it?

Thnx in advance
 
Old 07-01-2005, 12:54 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
You could do it via dcop:
dcop konsole-KonsolePID session-SessionNum renameSession "New Session Name"
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing a File in a Bash Script TGWDNGHN Programming 4 12-02-2005 02:38 PM
(shell script) string parsing kuru Programming 4 09-12-2005 07:59 PM
Executing a shell script command!! vishamr2000 Programming 4 08-15-2005 12:33 AM
Command in shell script Grassie Coetzee Linux - Software 1 03-13-2005 11:42 AM
File Parsing using a Shell Script yasir15 Programming 5 08-22-2003 12:17 PM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration